From e930367fafffe137ae9e882a152ace5f330d6c4d Mon Sep 17 00:00:00 2001 From: ftoromanoff Date: Tue, 17 Oct 2023 12:01:35 +0200 Subject: [PATCH] Corr JsDoc --- src/Converter/Feature2Texture.js | 10 +++++----- src/Core/Style.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Converter/Feature2Texture.js b/src/Converter/Feature2Texture.js index 45c3176776..ebece626fb 100644 --- a/src/Converter/Feature2Texture.js +++ b/src/Converter/Feature2Texture.js @@ -9,15 +9,15 @@ import Style from 'Core/Style'; * using the given style(s). Several styles will re-draws the polygon each one with * a different style. * @param {CanvasRenderingContext2D} ctx - canvas' 2D rendering context. - * @param {number[]} vertices - All the vertices of the Feature. + * @param {Number[]} vertices - All the vertices of the Feature. * @param {Object[]} indices - Contains the indices that define the geometry. * Objects stored in this array have two properties, an `offset` and a `count`. * The offset is related to the overall number of vertices in the Feature. * @param {Object} style - object defining the style of the polygon. - * @param {number} size - The size of the feature. - * @param {number} extent - The extent. - * @param {number} invCtxScale - to scale line width and radius circle - * @param {boolean} canBeFilled - true if feature.type == FEATURE_TYPES.POLYGON + * @param {Number} size - The size of the feature. + * @param {Number} extent - The extent. + * @param {Number} invCtxScale - The ration to scale line width and radius circle. + * @param {Boolean} canBeFilled - true if feature.type == FEATURE_TYPES.POLYGON */ function drawPolygon(ctx, vertices, indices = [{ offset: 0, count: 1 }], style = {}, size, extent, invCtxScale, canBeFilled) { if (vertices.length === 0) { diff --git a/src/Core/Style.js b/src/Core/Style.js index 41ac859859..6db260fa83 100644 --- a/src/Core/Style.js +++ b/src/Core/Style.js @@ -777,11 +777,11 @@ class Style { } /** - * Applies the style.fill to a polygon of the texture canvas - * @param {CanvasRenderingContext2D} txtrCtx The Context 2D of the texture canvas - * @param {Path2D} polygon The current texture canvas polygon - * @param {DOMMatrix} invCtxScale The DOM matrix scaled to generate pattern (if any) - * @param {boolean} canBeFilled - true if feature.type == FEATURE_TYPES.POLYGON + * Applies the style.fill to a polygon of the texture canvas. + * @param {CanvasRenderingContext2D} txtrCtx The Context 2D of the texture canvas. + * @param {Path2D} polygon The current texture canvas polygon. + * @param {Number} invCtxScale The ratio to scale line width and radius circle. + * @param {Boolean} canBeFilled - true if feature.type == FEATURE_TYPES.POLYGON. */ applyToCanvasPolygon(txtrCtx, polygon, invCtxScale, canBeFilled) { // draw line or edge of polygon