ol 10.3.2-dev.1734966512329 → 10.3.2-dev.1735323678164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/style/webgl.js DELETED
@@ -1,133 +0,0 @@
1
- /**
2
- * WebGL style objects slightly differ from standard flat styles for certain properties
3
- * @module ol/style/webgl
4
- */
5
-
6
- /**
7
- * @typedef {import("../expr/expression.js").ExpressionValue} ExpressionValue
8
- */
9
- /**
10
- * @typedef {import("../color.js").Color|string|Array<ExpressionValue>} ColorExpression
11
- */
12
-
13
- /**
14
- * @typedef {Object} BaseProps
15
- * @property {ExpressionValue} [filter] Filter expression. If it resolves to a number strictly greater than 0, the
16
- * point will be displayed. If undefined, all points will show.
17
- */
18
-
19
- /**
20
- * @typedef {Object} FillProps
21
- * @property {ColorExpression} [fill-color] Fill color.
22
- * @property {string} [fill-pattern-src] Fill pattern image source URI. If `fill-color` is defined as well, it will be used to tint this image.
23
- * @property {Array<number>|ExpressionValue} [fill-pattern-offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
24
- * sub-rectangle to use from the original fill pattern image.
25
- * @property {import("./Icon.js").IconOrigin} [fill-pattern-offset-origin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
26
- * `top-left` or `top-right`.
27
- * @property {ExpressionValue|import("../size.js").Size} [fill-pattern-size] Fill pattern image size in pixel. Can be used together with `fill-pattern-offset` to define the
28
- * sub-rectangle to use from the origin (sprite) fill pattern image.
29
- */
30
-
31
- /**
32
- * @typedef {Object} StrokeProps
33
- * @property {ColorExpression} [stroke-color] The stroke color.
34
- * @property {number|ExpressionValue} [stroke-width] Stroke pixel width.
35
- * @property {number|ExpressionValue} [stroke-offset] Stroke offset in pixel. A positive value offsets the line to the right, relative to the direction of the line.
36
- * @property {CanvasLineCap|ExpressionValue} [stroke-line-cap='round'] Line cap style: `butt`, `round`, or `square`.
37
- * @property {CanvasLineJoin|ExpressionValue} [stroke-line-join='round'] Line join style: `bevel`, `round`, or `miter`.
38
- * @property {Array<number>|Array<ExpressionValue>} [stroke-line-dash] Line dash pattern.
39
- * @property {number|ExpressionValue} [stroke-line-dash-offset=0] Line dash offset.
40
- * @property {number|ExpressionValue} [stroke-miter-limit=10] Miter limit.
41
- * @property {string} [stroke-pattern-src] Stroke pattern image source URI. If `stroke-color` is defined as well, it will be used to tint this image.
42
- * @property {Array<number>|ExpressionValue} [stroke-pattern-offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
43
- * sub-rectangle to use from the original fill pattern image.
44
- * @property {import("./Icon.js").IconOrigin} [stroke-pattern-offset-origin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
45
- * `top-left` or `top-right`.
46
- * @property {ExpressionValue|import("../size.js").Size} [stroke-pattern-size] Stroke pattern image size in pixel. Can be used together with `stroke-pattern-offset` to define the
47
- * sub-rectangle to use from the origin (sprite) fill pattern image.
48
- * @property {number|ExpressionValue} [stroke-pattern-spacing] Spacing between each pattern occurrence in pixels; 0 if undefined.
49
- */
50
-
51
- /**
52
- * @typedef {Object} IconProps
53
- * @property {string} [icon-src] Image source URI.
54
- * @property {Array<number>|ExpressionValue} [icon-anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
55
- * @property {import("./Icon.js").IconOrigin} [icon-anchor-origin='top-left'] Origin of the anchor: `bottom-left`, `bottom-right`,
56
- * `top-left` or `top-right`.
57
- * @property {import("./Icon.js").IconAnchorUnits} [icon-anchor-x-units='fraction'] Units in which the anchor x value is
58
- * specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
59
- * the x value in pixels.
60
- * @property {import("./Icon.js").IconAnchorUnits} [icon-anchor-y-units='fraction'] Units in which the anchor y value is
61
- * specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
62
- * the y value in pixels.
63
- * @property {ColorExpression} [icon-color] Color to tint the icon. If not specified,
64
- * the icon will be left as is.
65
- * @property {ExpressionValue|number} [icon-opacity=1] Opacity of the icon.
66
- * @property {null|string} [icon-cross-origin] The `crossOrigin` attribute for loaded images. Note that you must provide a
67
- * `icon-cross-origin` value if you want to access pixel data with the Canvas renderer.
68
- * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
69
- * @property {Array<number>|ExpressionValue} [icon-displacement=[0,0]] Displacement of the icon.
70
- * @property {ExpressionValue|number|import("../size.js").Size} [icon-scale=1] Scale.
71
- * @property {ExpressionValue|number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
72
- * with `scale`.
73
- * @property {ExpressionValue|number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
74
- * with `scale`.
75
- * @property {ExpressionValue|number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
76
- * @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
77
- * @property {Array<number>|ExpressionValue} [icon-offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
78
- * sub-rectangle to use from the original icon image.
79
- * @property {import("./Icon.js").IconOrigin} [icon-offset-origin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
80
- * `top-left` or `top-right`.
81
- * @property {ExpressionValue|import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
82
- * sub-rectangle to use from the origin (sprite) icon image.
83
- */
84
-
85
- /**
86
- * @typedef {Object} ShapeProps
87
- * @property {ExpressionValue|number} [shape-points] Number of points for stars and regular polygons. In case of a polygon, the number of points
88
- * is the number of sides.
89
- * @property {ColorExpression} [shape-fill-color] The fill color.
90
- * @property {ColorExpression} [shape-stroke-color] The stroke color.
91
- * @property {ExpressionValue|number} [shape-stroke-width] Stroke pixel width.
92
- * @property {ExpressionValue|number} [shape-opacity] Shape opacity.
93
- * @property {ExpressionValue|number} [shape-radius] Radius of a regular polygon.
94
- * @property {ExpressionValue|number} [shape-radius2] Second radius to make a star instead of a regular polygon.
95
- * @property {ExpressionValue|number} [shape-angle=0] Shape's angle in radians. A value of 0 will have one of the shape's point facing up.
96
- * @property {Array<ExpressionValue>|Array<number>} [shape-displacement=[0,0]] Displacement of the shape
97
- * @property {ExpressionValue|number} [shape-rotation=0] Rotation in radians (positive rotation clockwise).
98
- * @property {boolean} [shape-rotate-with-view=false] Whether to rotate the shape with the view.
99
- * @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [shape-scale=1] Scale. Unless two dimensional scaling is required a better
100
- * result may be obtained with appropriate settings for `shape-radius` and `shape-radius2`.
101
- */
102
-
103
- /**
104
- * @typedef {Object} CircleProps
105
- * @property {ExpressionValue|number} [circle-radius] Circle radius.
106
- * @property {ColorExpression} [circle-fill-color] The fill color.
107
- * @property {ColorExpression} [circle-stroke-color] The stroke color.
108
- * @property {ExpressionValue|number} [circle-stroke-width] Stroke pixel width.
109
- * @property {ExpressionValue|number} [circle-opacity] Circle opacity.
110
- * @property {Array<ExpressionValue>|Array<number>} [circle-displacement=[0,0]] displacement
111
- * @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [circle-scale=1] Scale. A two dimensional scale will produce an ellipse.
112
- * Unless two dimensional scaling is required a better result may be obtained with an appropriate setting for `circle-radius`.
113
- * @property {ExpressionValue|number} [circle-rotation=0] Rotation in radians
114
- * (positive rotation clockwise, meaningful only when used in conjunction with a two dimensional scale).
115
- * @property {boolean} [circle-rotate-with-view=false] Whether to rotate the shape with the view
116
- * (meaningful only when used in conjunction with a two dimensional scale).
117
- */
118
-
119
- // FIXME Present in flat style but not implemented in webgl style:
120
- // - icon declutter mode
121
- // - circle line cap/join/miter limit
122
- // - circle dash pattern/offset
123
- // - circle declutter mode
124
- // - shape line cap/join/miter limit
125
- // - shape dash pattern/offset
126
- // - shape declutter mode
127
- // - text style
128
-
129
- /**
130
- * @typedef {BaseProps & IconProps & StrokeProps & FillProps & CircleProps & ShapeProps} WebGLStyle
131
- */
132
-
133
- export {};