@dartcom/ui-kit 3.7.3 → 3.7.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,SAAS,EAAE;KACrB,CAAC,IAAI,kBAAkB,GAAG,MAAM;CAMlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA2F3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBA2DlE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBA0KlE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,QAAQ,kBAAkB,yBA+BnE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAwB9D,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,SAAS,EAAE;KACrB,CAAC,IAAI,kBAAkB,GAAG,MAAM;CAMlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA2F3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBAyDlE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBA6NlE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,QAAQ,kBAAkB,yBA+BnE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAwB9D,CAAC"}
@@ -2,6 +2,9 @@ import { LayerProps, TangramCustomLayer, TangramPointLayer, TangramSourceNames }
2
2
  export declare const getDefaultPOI: (cat_id: number) => {
3
3
  [x: string]: LayerProps;
4
4
  };
5
- export declare const getPOITypeLayer: (texture: string) => TangramPointLayer;
5
+ export declare const getPOITypeLayer: ({ texture, size, }: {
6
+ texture: string;
7
+ size?: TangramPointLayer["size"];
8
+ }) => TangramPointLayer;
6
9
  export declare const getPOILayers: (source: TangramSourceNames) => TangramCustomLayer[];
7
10
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/POI/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM;;CAsI3C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,sBAS9C,CAAC;AAUF,eAAO,MAAM,YAAY,GAAI,QAAQ,kBAAkB,yBA8BtD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/layers/POI/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAIrC,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM;;CAmJ3C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,oBAG7B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;CAClC,sBASA,CAAC;AAUF,eAAO,MAAM,YAAY,GAAI,QAAQ,kBAAkB,yBA8BtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/utils.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,YAAY,GAAI,kCAG1B,kBAAkB,WAIpB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mBAG3B;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,uBA0FA,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,kBAAkB,yBA2C7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAoC9D,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBAY3D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,kBAAkB,yBA6CtD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/utils.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,YAAY,GAAI,kCAG1B,kBAAkB,WAIpB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mBAG3B;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,uBA6FA,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,kBAAkB,yBA2C7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAoC9D,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBAY3D,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,kBAAkB,yBA6CtD,CAAC"}
package/dist/index.cjs CHANGED
@@ -43635,47 +43635,45 @@ const getLaneMarkingPolyLayers = (source) => {
43635
43635
  source,
43636
43636
  layer: '"LaneMarkingPoly"',
43637
43637
  };
43638
- const layer__1_26 = {
43638
+ const layer__1_14_1 = {
43639
43639
  id: uuid(),
43640
43640
  data,
43641
43641
  filter: `function() {
43642
43642
  const { poly_number } = feature;
43643
43643
 
43644
- const isFilter = poly_number === '1.26';
43644
+ const isFilter = poly_number === '1.14.1';
43645
43645
 
43646
43646
  return isFilter;
43647
43647
  }`,
43648
43648
  draw: {
43649
43649
  styles: {
43650
- 'diagonal-grid': {
43651
- color: 'yellow',
43650
+ zebra_crossing: {
43651
+ attributes: {
43652
+ a_angle: `function() {
43653
+ return feature.angle;
43654
+ }`,
43655
+ },
43652
43656
  },
43653
43657
  },
43654
43658
  },
43655
43659
  };
43656
- const layer__1_14_1 = {
43660
+ const layer__1_18 = {
43657
43661
  id: uuid(),
43658
43662
  data,
43659
43663
  filter: `function() {
43660
43664
  const { poly_number } = feature;
43661
43665
 
43662
- const isFilter = poly_number === '1.14.1';
43666
+ const isFilter = poly_number === '1.18';
43663
43667
 
43664
43668
  return isFilter;
43665
43669
  }`,
43666
43670
  draw: {
43667
- styles: {
43668
- zebra_crossing: {
43669
- attributes: {
43670
- a_angle: `function() {
43671
- return feature.angle;
43672
- }`,
43673
- },
43674
- },
43671
+ polygons: {
43672
+ color: 'white',
43675
43673
  },
43676
43674
  },
43677
43675
  };
43678
- layers.push(layer__1_26, layer__1_14_1);
43676
+ layers.push(layer__1_18, layer__1_14_1);
43679
43677
  return layers;
43680
43678
  };
43681
43679
  const getLaneMarkingLineLayers = (source) => {
@@ -43756,6 +43754,21 @@ const getLaneMarkingLineLayers = (source) => {
43756
43754
  },
43757
43755
  },
43758
43756
  },
43757
+ '1.16.1': {
43758
+ filter: `function () {
43759
+ const { lane_number } = feature;
43760
+
43761
+ const isFilter = lane_number === '1.16.1';
43762
+
43763
+ return isFilter;
43764
+ }`,
43765
+ draw: {
43766
+ lines: {
43767
+ color,
43768
+ width,
43769
+ },
43770
+ },
43771
+ },
43759
43772
  '1.7': {
43760
43773
  filter: `function () {
43761
43774
  const { lane_number } = feature;
@@ -43819,6 +43832,36 @@ const getLaneMarkingLineLayers = (source) => {
43819
43832
  },
43820
43833
  },
43821
43834
  },
43835
+ '1.17.1': {
43836
+ filter: `function () {
43837
+ const { lane_number } = feature;
43838
+
43839
+ const isFilter = lane_number === '1.17.1';
43840
+
43841
+ return isFilter;
43842
+ }`,
43843
+ draw: {
43844
+ lines: {
43845
+ color: 'yellow',
43846
+ width,
43847
+ },
43848
+ },
43849
+ },
43850
+ '1.26': {
43851
+ filter: `function () {
43852
+ const { lane_number } = feature;
43853
+
43854
+ const isFilter = lane_number === '1.26';
43855
+
43856
+ return isFilter;
43857
+ }`,
43858
+ draw: {
43859
+ lines: {
43860
+ color: 'yellow',
43861
+ width,
43862
+ },
43863
+ },
43864
+ },
43822
43865
  },
43823
43866
  };
43824
43867
  layers.push(layer);
@@ -43949,7 +43992,9 @@ const getDefaultPOI = (cat_id) => {
43949
43992
  return isFilter;
43950
43993
  }`,
43951
43994
  draw: {
43952
- points: getPOITypeLayer(`POI_${cat_id}(metro)`),
43995
+ points: getPOITypeLayer({
43996
+ texture: `POI_${cat_id}(metro)`,
43997
+ }),
43953
43998
  },
43954
43999
  };
43955
44000
  defaultPOI[`_${cat_id}-diameter`] = {
@@ -43965,7 +44010,10 @@ const getDefaultPOI = (cat_id) => {
43965
44010
  return isFilter;
43966
44011
  }`,
43967
44012
  draw: {
43968
- points: getPOITypeLayer(`POI_${cat_id}(diameter)`),
44013
+ points: getPOITypeLayer({
44014
+ texture: `POI_${cat_id}(diameter)`,
44015
+ size: [41, 15],
44016
+ }),
43969
44017
  },
43970
44018
  };
43971
44019
  break;
@@ -43984,7 +44032,9 @@ const getDefaultPOI = (cat_id) => {
43984
44032
  return isFilter;
43985
44033
  }`,
43986
44034
  draw: {
43987
- points: getPOITypeLayer(`POI_${cat_id}(Mail)`),
44035
+ points: getPOITypeLayer({
44036
+ texture: `POI_${cat_id}(Mail)`,
44037
+ }),
43988
44038
  },
43989
44039
  };
43990
44040
  defaultPOI[`_${cat_id}-delivery`] = {
@@ -44000,7 +44050,9 @@ const getDefaultPOI = (cat_id) => {
44000
44050
  return isFilter;
44001
44051
  }`,
44002
44052
  draw: {
44003
- points: getPOITypeLayer(`POI_${cat_id}(Delivery)`),
44053
+ points: getPOITypeLayer({
44054
+ texture: `POI_${cat_id}(Delivery)`,
44055
+ }),
44004
44056
  },
44005
44057
  };
44006
44058
  break;
@@ -44026,7 +44078,9 @@ const getDefaultPOI = (cat_id) => {
44026
44078
  return isFilter;
44027
44079
  }`,
44028
44080
  draw: {
44029
- points: getPOITypeLayer(`POI_${cat_id}(${subcat_name})`),
44081
+ points: getPOITypeLayer({
44082
+ texture: `POI_${cat_id}(${subcat_name})`,
44083
+ }),
44030
44084
  },
44031
44085
  };
44032
44086
  });
@@ -44042,18 +44096,20 @@ const getDefaultPOI = (cat_id) => {
44042
44096
  return isFilter;
44043
44097
  }`,
44044
44098
  draw: {
44045
- points: getPOITypeLayer(`POI_${cat_id}`),
44099
+ points: getPOITypeLayer({
44100
+ texture: `POI_${cat_id}`,
44101
+ }),
44046
44102
  },
44047
44103
  };
44048
44104
  }
44049
44105
  }
44050
44106
  return defaultPOI;
44051
44107
  };
44052
- const getPOITypeLayer = (texture) => {
44108
+ const getPOITypeLayer = ({ texture, size = '20px', }) => {
44053
44109
  const typeLayer = {
44054
44110
  texture,
44111
+ size,
44055
44112
  sprite: 'base',
44056
- size: '20px',
44057
44113
  placement: 'midpoint',
44058
44114
  };
44059
44115
  return typeLayer;
@@ -44776,7 +44832,7 @@ const zLvlOrders = [
44776
44832
  '1.5',
44777
44833
  '2.0',
44778
44834
  ];
44779
- const functionInterval = [[5], [3, 4], [1, 2]];
44835
+ const functionInterval = [[1, 2], [3, 4], [5]];
44780
44836
  const colorFunction = `function() {
44781
44837
  const { functional_class, tunnel, tollway } = feature;
44782
44838
 
@@ -44935,7 +44991,7 @@ const getLinkLayers = (source) => {
44935
44991
  };
44936
44992
  zLvlOrders.forEach((zLvl) => {
44937
44993
  const filter = `function() {
44938
- const { z_lvl = '0.0' } = feature;
44994
+ const { z_lvl } = feature;
44939
44995
 
44940
44996
  const isFilter = z_lvl === '${zLvl}';
44941
44997
 
@@ -44970,7 +45026,7 @@ const getLinkLayers = (source) => {
44970
45026
  id: uuid(),
44971
45027
  data,
44972
45028
  filter: `function() {
44973
- const { functional_class, z_lvl = '0.0' } = feature;
45029
+ const { functional_class, z_lvl } = feature;
44974
45030
 
44975
45031
  const isFilter = z_lvl === '${zLvl}' && functional_class === ${functionClass};
44976
45032
 
@@ -45018,7 +45074,7 @@ const getLinkLayers = (source) => {
45018
45074
  id: uuid(),
45019
45075
  data,
45020
45076
  filter: `function() {
45021
- const { functional_class, z_lvl = '0.0' } = feature;
45077
+ const { functional_class, z_lvl } = feature;
45022
45078
 
45023
45079
  const isFilter = z_lvl === '${zLvl}' && functional_class === ${functionClass} && !global.links.getIsConstruction(feature) && !global.links.getIsFunctionalClass(feature);
45024
45080
 
@@ -45038,7 +45094,7 @@ const getLinkLayers = (source) => {
45038
45094
  },
45039
45095
  },
45040
45096
  };
45041
- layers.push(baseLayer, borderLayer);
45097
+ layers.push(borderLayer, baseLayer);
45042
45098
  });
45043
45099
  });
45044
45100
  break;
@@ -45056,7 +45112,7 @@ const getLinkLayers = (source) => {
45056
45112
  filter,
45057
45113
  draw: getBorderLayerDraw(),
45058
45114
  };
45059
- layers.push(baseLayer, borderLayer);
45115
+ layers.push(borderLayer, baseLayer);
45060
45116
  }
45061
45117
  }
45062
45118
  });
@@ -45146,16 +45202,22 @@ const setLayerOrder = ({ layer, order, }) => {
45146
45202
  if (draw) {
45147
45203
  const { points, lines, polygons } = draw;
45148
45204
  if (points) {
45149
- points.order = order;
45150
- draw.points = points;
45205
+ draw.points = {
45206
+ ...structuredClone(points),
45207
+ order,
45208
+ };
45151
45209
  }
45152
45210
  if (lines) {
45153
- lines.order = order;
45154
- draw.lines = lines;
45211
+ draw.lines = {
45212
+ ...structuredClone(lines),
45213
+ order,
45214
+ };
45155
45215
  }
45156
45216
  if (polygons) {
45157
- polygons.order = order;
45158
- draw.polygons = polygons;
45217
+ draw.polygons = {
45218
+ ...structuredClone(polygons),
45219
+ order,
45220
+ };
45159
45221
  }
45160
45222
  sublayer.draw = structuredClone(draw);
45161
45223
  }