Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corr JsDoc
Browse files Browse the repository at this point in the history
ftoromanoff committed Oct 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2ec88d6 commit e930367
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/Converter/Feature2Texture.js
Original file line number Diff line number Diff line change
@@ -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) {
10 changes: 5 additions & 5 deletions src/Core/Style.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e930367

Please sign in to comment.