@expofp/wayfinding 3.37.1 → 3.38.0
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.
|
@@ -9,6 +9,9 @@ import { Rect } from '@expofp/geometry';
|
|
|
9
9
|
*/
|
|
10
10
|
export function rescaleIcon(def, pixelSize) {
|
|
11
11
|
const bounds = def.bounds;
|
|
12
|
+
// `ImageSource` also covers a `Blob`, which holds bytes and reports no pixel size. Every icon def
|
|
13
|
+
// is built from `IconConfig.canvas` in `createIcon`, so the source here is always a canvas, and a
|
|
14
|
+
// canvas reports its own size.
|
|
12
15
|
const source = def.source;
|
|
13
16
|
const width = source.width * pixelSize;
|
|
14
17
|
const height = source.height * pixelSize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/wayfinding",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.38.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ExpoFP SDK internal: framework-neutral wayfinding (routing, snapping, scene rendering)",
|
|
6
6
|
"homepage": "https://developer.expofp.com/",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ngraph.graph": "^19.1.0",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
|
-
"@expofp/geometry": "3.
|
|
37
|
+
"@expofp/geometry": "3.38.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@expofp/renderer": "3.
|
|
40
|
+
"@expofp/renderer": "3.38.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@expofp/renderer": "3.
|
|
43
|
+
"@expofp/renderer": "3.38.0"
|
|
44
44
|
}
|
|
45
45
|
}
|