ol 7.0.0-dev.1660254591300 → 7.0.0-dev.1660257062197
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/package.json +1 -1
- package/style/Icon.d.ts +4 -4
- package/style/Icon.js +2 -2
- package/util.js +1 -1
package/package.json
CHANGED
package/style/Icon.d.ts
CHANGED
|
@@ -82,8 +82,8 @@ export type Options = {
|
|
|
82
82
|
*/
|
|
83
83
|
size?: import("../size.js").Size | undefined;
|
|
84
84
|
/**
|
|
85
|
-
* Image size in pixels. Only required if `img` is set and `src` is not
|
|
86
|
-
*
|
|
85
|
+
* Image size in pixels. Only required if `img` is set and `src` is not.
|
|
86
|
+
* The provided `imgSize` needs to match the actual size of the image.
|
|
87
87
|
*/
|
|
88
88
|
imgSize?: import("../size.js").Size | undefined;
|
|
89
89
|
/**
|
|
@@ -133,8 +133,8 @@ export type Options = {
|
|
|
133
133
|
* @property {number} [rotation=0] Rotation in radians (positive rotation clockwise).
|
|
134
134
|
* @property {import("../size.js").Size} [size] Icon size in pixel. Can be used together with `offset` to define the
|
|
135
135
|
* sub-rectangle to use from the origin (sprite) icon image.
|
|
136
|
-
* @property {import("../size.js").Size} [imgSize] Image size in pixels. Only required if `img` is set and `src` is not
|
|
137
|
-
*
|
|
136
|
+
* @property {import("../size.js").Size} [imgSize] Image size in pixels. Only required if `img` is set and `src` is not.
|
|
137
|
+
* The provided `imgSize` needs to match the actual size of the image.
|
|
138
138
|
* @property {string} [src] Image source URI.
|
|
139
139
|
* @property {"declutter"|"obstacle"|"none"|undefined} [declutterMode] Declutter mode
|
|
140
140
|
*/
|
package/style/Icon.js
CHANGED
|
@@ -49,8 +49,8 @@ import {getUid} from '../util.js';
|
|
|
49
49
|
* @property {number} [rotation=0] Rotation in radians (positive rotation clockwise).
|
|
50
50
|
* @property {import("../size.js").Size} [size] Icon size in pixel. Can be used together with `offset` to define the
|
|
51
51
|
* sub-rectangle to use from the origin (sprite) icon image.
|
|
52
|
-
* @property {import("../size.js").Size} [imgSize] Image size in pixels. Only required if `img` is set and `src` is not
|
|
53
|
-
*
|
|
52
|
+
* @property {import("../size.js").Size} [imgSize] Image size in pixels. Only required if `img` is set and `src` is not.
|
|
53
|
+
* The provided `imgSize` needs to match the actual size of the image.
|
|
54
54
|
* @property {string} [src] Image source URI.
|
|
55
55
|
* @property {"declutter"|"obstacle"|"none"|undefined} [declutterMode] Declutter mode
|
|
56
56
|
*/
|
package/util.js
CHANGED