Adjust indent

This commit is contained in:
Tim Schaub
2018-03-17 14:24:22 -06:00
parent 0ddd5622ec
commit 25da233921
3 changed files with 4 additions and 8 deletions

View File

@@ -30,8 +30,7 @@ const styleFunction = function(feature) {
scale = size / 10; scale = size / 10;
let style = styleCache[size]; let style = styleCache[size];
if (!style) { if (!style) {
const canvas = const canvas = /** @type {HTMLCanvasElement} */ (document.createElement('canvas'));
/** @type {HTMLCanvasElement} */ (document.createElement('canvas'));
const vectorContext = toContext( const vectorContext = toContext(
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d')), /** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d')),
{size: [size, size], pixelRatio: 1}); {size: [size, size], pixelRatio: 1});

View File

@@ -146,8 +146,7 @@ const Overlay = function(options) {
* @protected * @protected
* @type {module:ol/Overlay~OverlayPanOptions} * @type {module:ol/Overlay~OverlayPanOptions}
*/ */
this.autoPanAnimation = options.autoPanAnimation || this.autoPanAnimation = options.autoPanAnimation || /** @type {module:ol/Overlay~OverlayPanOptions} */ ({});
/** @type {module:ol/Overlay~OverlayPanOptions} */ ({});
/** /**
* @protected * @protected

View File

@@ -825,8 +825,7 @@ function polyStyleParser(node, objectStack) {
if (fill !== undefined) { if (fill !== undefined) {
styleObject['fill'] = fill; styleObject['fill'] = fill;
} }
const outline = const outline = /** @type {boolean|undefined} */ (object['outline']);
/** @type {boolean|undefined} */ (object['outline']);
if (outline !== undefined) { if (outline !== undefined) {
styleObject['outline'] = outline; styleObject['outline'] = outline;
} }
@@ -1432,8 +1431,7 @@ function simpleDataParser(node, objectStack) {
const name = node.getAttribute('name'); const name = node.getAttribute('name');
if (name !== null) { if (name !== null) {
const data = readString(node); const data = readString(node);
const featureObject = const featureObject = /** @type {Object} */ (objectStack[objectStack.length - 1]);
/** @type {Object} */ (objectStack[objectStack.length - 1]);
featureObject[name] = data; featureObject[name] = data;
} }
} }