@dartcom/ui-kit 10.0.4 → 10.0.5
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/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts +5 -2
- package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/traffic-sign/index.d.ts +1 -0
- package/dist/components/layers/leaflet/layers/traffic-sign/index.d.ts.map +1 -1
- package/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const trafficSignNumbers: string[];
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const trafficSignWidths: {
|
|
3
|
+
map: number;
|
|
4
|
+
preview: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const trafficSignExtension = "svg";
|
|
4
7
|
export declare const trafficSignNumbersSizes: Map<string, {
|
|
5
8
|
width: number;
|
|
6
9
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UA8W9B,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UA8W9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C,eAAO,MAAM,uBAAuB;WAGzB,MAAM;YACL,MAAM;EAEf,CAAC;AAEJ,eAAO,MAAM,kBAAkB;;;;;;CAoX9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/traffic-sign/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -18971,8 +18971,11 @@ const trafficSignNumbers = [
|
|
|
18971
18971
|
'8.9.2',
|
|
18972
18972
|
'8.9.3',
|
|
18973
18973
|
];
|
|
18974
|
-
const
|
|
18975
|
-
|
|
18974
|
+
const trafficSignWidths = {
|
|
18975
|
+
map: 20,
|
|
18976
|
+
preview: 40,
|
|
18977
|
+
};
|
|
18978
|
+
const trafficSignExtension = 'svg';
|
|
18976
18979
|
const trafficSignNumbersSizes = new Map();
|
|
18977
18980
|
const trafficSignHeights = {
|
|
18978
18981
|
20: [
|
|
@@ -19346,7 +19349,7 @@ const trafficSignHeights = {
|
|
|
19346
19349
|
Object.entries(trafficSignHeights).forEach(([height, trafficSignNumbers]) => {
|
|
19347
19350
|
trafficSignNumbers.forEach((trafficSignNumber) => {
|
|
19348
19351
|
trafficSignNumbersSizes.set(trafficSignNumber, {
|
|
19349
|
-
width,
|
|
19352
|
+
width: trafficSignWidths.map,
|
|
19350
19353
|
height: +height,
|
|
19351
19354
|
});
|
|
19352
19355
|
});
|
|
@@ -19366,7 +19369,7 @@ const getTrafficSignLayers = (source) => {
|
|
|
19366
19369
|
const size = trafficSignNumbersSizes.get(trafficSignNumber);
|
|
19367
19370
|
if (size) {
|
|
19368
19371
|
const { width, height } = size;
|
|
19369
|
-
const textureUrl = `${imagesPath}/msk/${layerName}_${width}/${trafficSignNumber}.${
|
|
19372
|
+
const textureUrl = `${imagesPath}/msk/${layerName}_${width}/${trafficSignNumber}.${trafficSignExtension}`;
|
|
19370
19373
|
textures[texture] = {
|
|
19371
19374
|
url: textureUrl,
|
|
19372
19375
|
filtering: 'mipmap',
|
|
@@ -28933,6 +28936,11 @@ exports.rootStore = rootStore;
|
|
|
28933
28936
|
exports.sourceUrl = sourceUrl;
|
|
28934
28937
|
exports.text_source = text_source;
|
|
28935
28938
|
exports.tile_size = tile_size;
|
|
28939
|
+
exports.trafficSignExtension = trafficSignExtension;
|
|
28940
|
+
exports.trafficSignHeights = trafficSignHeights;
|
|
28941
|
+
exports.trafficSignNumbers = trafficSignNumbers;
|
|
28942
|
+
exports.trafficSignNumbersSizes = trafficSignNumbersSizes;
|
|
28943
|
+
exports.trafficSignWidths = trafficSignWidths;
|
|
28936
28944
|
exports.useFormContext = useFormContext;
|
|
28937
28945
|
exports.useGetLeafletLayer = useGetLeafletLayer;
|
|
28938
28946
|
exports.useGetUser = useGetUser;
|