@dartcom/ui-kit 3.9.5 → 3.9.6
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":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EAEpB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,kBAAkB,GAAI,oBAEhC;IACD,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C;;;;8BA0BkB,mBAAmB;4BAwBrB,mBAAmB,CAAC,MAAM,CAAC;;;;;+BAa1B,mBAAmB,CAAC,MAAM,CAAC,UAC/B,mBAAmB,CAAC,KAAK,CAAC;sBAwB5B,kBAAkB;yBAqDlB,kBAAkB;gCA2BR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;gCAqBzC,kBAAkB;gDAgBL;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;;;;CAsRvE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -12,7 +12,6 @@ var styles$2 = require('@mui/material/styles');
|
|
|
12
12
|
var Typography = require('@mui/material/Typography');
|
|
13
13
|
var Autocomplete = require('@mui/material/Autocomplete');
|
|
14
14
|
var reactDom = require('react-dom');
|
|
15
|
-
var sceneTiles = require('@/../scene.yaml');
|
|
16
15
|
var xDatePickers = require('@mui/x-date-pickers');
|
|
17
16
|
var AdapterDateFns = require('@mui/x-date-pickers/AdapterDateFns');
|
|
18
17
|
|
|
@@ -17112,6 +17111,257 @@ const getParkingLineLayers = (source) => {
|
|
|
17112
17111
|
return layers;
|
|
17113
17112
|
};
|
|
17114
17113
|
|
|
17114
|
+
var data = { global:{ links:{ getIsConstruction:"function (feature) {\n const { construction } = feature;\n\n return construction;\n}\n",
|
|
17115
|
+
getIsFunctionalClass:"function (feature) {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",
|
|
17116
|
+
getIsLowMobility:"function (feature) {\n const { functional_class, low_mobility } = feature;\n\n return functional_class === 5 && low_mobility === 1;\n}\n" } },
|
|
17117
|
+
cameras:{ camera1:{ type:"perspective",
|
|
17118
|
+
vanishing_point:[ 0,
|
|
17119
|
+
-500 ] } },
|
|
17120
|
+
textures:{ arrow:{ url:"https://dalganmap.ru/api-image/images/arrow-20.png",
|
|
17121
|
+
sprites:{ base:[ 0,
|
|
17122
|
+
0,
|
|
17123
|
+
20,
|
|
17124
|
+
20 ] } },
|
|
17125
|
+
"traffic-signal":{ url:"https://dalganmap.ru/api-image/images/conditions/traffic-signal.png",
|
|
17126
|
+
filtering:"mipmap",
|
|
17127
|
+
sprites:{ base:[ 0,
|
|
17128
|
+
0,
|
|
17129
|
+
20,
|
|
17130
|
+
20 ] } },
|
|
17131
|
+
pedestrian_crossing:{ url:"https://dalganmap.ru/api-image/images/conditions/pedestrian_crossing.png",
|
|
17132
|
+
filtering:"mipmap",
|
|
17133
|
+
sprites:{ base:[ 0,
|
|
17134
|
+
0,
|
|
17135
|
+
20,
|
|
17136
|
+
20 ] } },
|
|
17137
|
+
physical:{ url:"https://dalganmap.ru/api-image/images/conditions/physical.png",
|
|
17138
|
+
filtering:"mipmap",
|
|
17139
|
+
sprites:{ base:[ 0,
|
|
17140
|
+
0,
|
|
17141
|
+
20,
|
|
17142
|
+
20 ] } },
|
|
17143
|
+
gate:{ url:"https://dalganmap.ru/api-image/images/conditions/gate.png",
|
|
17144
|
+
filtering:"mipmap",
|
|
17145
|
+
sprites:{ base:[ 0,
|
|
17146
|
+
0,
|
|
17147
|
+
20,
|
|
17148
|
+
20 ] } },
|
|
17149
|
+
POI_3578:{ url:"https://dalganmap.ru/api-image/images/POI/3578.png",
|
|
17150
|
+
filtering:"mipmap",
|
|
17151
|
+
sprites:{ base:[ 0,
|
|
17152
|
+
0,
|
|
17153
|
+
20,
|
|
17154
|
+
20 ] } },
|
|
17155
|
+
POI_5813:{ url:"https://dalganmap.ru/api-image/images/POI/5813.png",
|
|
17156
|
+
filtering:"mipmap",
|
|
17157
|
+
sprites:{ base:[ 0,
|
|
17158
|
+
0,
|
|
17159
|
+
20,
|
|
17160
|
+
20 ] } },
|
|
17161
|
+
POI_5541:{ url:"https://dalganmap.ru/api-image/images/POI/5541.png",
|
|
17162
|
+
filtering:"mipmap",
|
|
17163
|
+
sprites:{ base:[ 0,
|
|
17164
|
+
0,
|
|
17165
|
+
20,
|
|
17166
|
+
20 ] } },
|
|
17167
|
+
POI_5540:{ url:"https://dalganmap.ru/api-image/images/POI/5540.png",
|
|
17168
|
+
filtering:"mipmap",
|
|
17169
|
+
sprites:{ base:[ 0,
|
|
17170
|
+
0,
|
|
17171
|
+
20,
|
|
17172
|
+
20 ] } },
|
|
17173
|
+
"POI_9530(Mail)":{ url:"https://dalganmap.ru/api-image/images/POI/mail.png",
|
|
17174
|
+
filtering:"mipmap",
|
|
17175
|
+
sprites:{ base:[ 0,
|
|
17176
|
+
0,
|
|
17177
|
+
20,
|
|
17178
|
+
20 ] } },
|
|
17179
|
+
"POI_9530(Delivery)":{ url:"https://dalganmap.ru/api-image/images/POI/delivery.png",
|
|
17180
|
+
filtering:"mipmap",
|
|
17181
|
+
sprites:{ base:[ 0,
|
|
17182
|
+
0,
|
|
17183
|
+
20,
|
|
17184
|
+
20 ] } },
|
|
17185
|
+
POI_5400:{ url:"https://dalganmap.ru/api-image/images/POI/5400.png",
|
|
17186
|
+
filtering:"mipmap",
|
|
17187
|
+
sprites:{ base:[ 0,
|
|
17188
|
+
0,
|
|
17189
|
+
20,
|
|
17190
|
+
20 ] } },
|
|
17191
|
+
POI_6000:{ url:"https://dalganmap.ru/api-image/images/POI/6000.png",
|
|
17192
|
+
filtering:"mipmap",
|
|
17193
|
+
sprites:{ base:[ 0,
|
|
17194
|
+
0,
|
|
17195
|
+
20,
|
|
17196
|
+
20 ] } },
|
|
17197
|
+
POI_9565:{ url:"https://dalganmap.ru/api-image/images/POI/9565.png",
|
|
17198
|
+
filtering:"mipmap",
|
|
17199
|
+
sprites:{ base:[ 0,
|
|
17200
|
+
0,
|
|
17201
|
+
20,
|
|
17202
|
+
20 ] } },
|
|
17203
|
+
POI_9583:{ url:"https://dalganmap.ru/api-image/images/POI/9583.png",
|
|
17204
|
+
filtering:"mipmap",
|
|
17205
|
+
sprites:{ base:[ 0,
|
|
17206
|
+
0,
|
|
17207
|
+
20,
|
|
17208
|
+
20 ] } },
|
|
17209
|
+
POI_8060:{ url:"https://dalganmap.ru/api-image/images/POI/8060.png",
|
|
17210
|
+
filtering:"mipmap",
|
|
17211
|
+
sprites:{ base:[ 0,
|
|
17212
|
+
0,
|
|
17213
|
+
20,
|
|
17214
|
+
20 ] } },
|
|
17215
|
+
POI_5511:{ url:"https://dalganmap.ru/api-image/images/POI/5511.png",
|
|
17216
|
+
filtering:"mipmap",
|
|
17217
|
+
sprites:{ base:[ 0,
|
|
17218
|
+
0,
|
|
17219
|
+
20,
|
|
17220
|
+
20 ] } },
|
|
17221
|
+
POI_5512:{ url:"https://dalganmap.ru/api-image/images/POI/5512.png",
|
|
17222
|
+
filtering:"mipmap",
|
|
17223
|
+
sprites:{ base:[ 0,
|
|
17224
|
+
0,
|
|
17225
|
+
20,
|
|
17226
|
+
20 ] } },
|
|
17227
|
+
POI_5800:{ url:"https://dalganmap.ru/api-image/images/POI/5800.png",
|
|
17228
|
+
filtering:"mipmap",
|
|
17229
|
+
sprites:{ base:[ 0,
|
|
17230
|
+
0,
|
|
17231
|
+
20,
|
|
17232
|
+
20 ] } },
|
|
17233
|
+
POI_5999:{ url:"https://dalganmap.ru/api-image/images/POI/5999.png",
|
|
17234
|
+
filtering:"mipmap",
|
|
17235
|
+
sprites:{ base:[ 0,
|
|
17236
|
+
0,
|
|
17237
|
+
20,
|
|
17238
|
+
20 ] } },
|
|
17239
|
+
POI_7011:{ url:"https://dalganmap.ru/api-image/images/POI/7011.png",
|
|
17240
|
+
filtering:"mipmap",
|
|
17241
|
+
sprites:{ base:[ 0,
|
|
17242
|
+
0,
|
|
17243
|
+
20,
|
|
17244
|
+
20 ] } },
|
|
17245
|
+
POI_7389:{ url:"https://dalganmap.ru/api-image/images/POI/7389.png",
|
|
17246
|
+
filtering:"mipmap",
|
|
17247
|
+
sprites:{ base:[ 0,
|
|
17248
|
+
0,
|
|
17249
|
+
20,
|
|
17250
|
+
20 ] } },
|
|
17251
|
+
POI_7832:{ url:"https://dalganmap.ru/api-image/images/POI/7832.png",
|
|
17252
|
+
filtering:"mipmap",
|
|
17253
|
+
sprites:{ base:[ 0,
|
|
17254
|
+
0,
|
|
17255
|
+
20,
|
|
17256
|
+
20 ] } },
|
|
17257
|
+
POI_7929:{ url:"https://dalganmap.ru/api-image/images/POI/7929.png",
|
|
17258
|
+
filtering:"mipmap",
|
|
17259
|
+
sprites:{ base:[ 0,
|
|
17260
|
+
0,
|
|
17261
|
+
20,
|
|
17262
|
+
20 ] } },
|
|
17263
|
+
POI_7990:{ url:"https://dalganmap.ru/api-image/images/POI/7990.png",
|
|
17264
|
+
filtering:"mipmap",
|
|
17265
|
+
sprites:{ base:[ 0,
|
|
17266
|
+
0,
|
|
17267
|
+
20,
|
|
17268
|
+
20 ] } },
|
|
17269
|
+
POI_7999:{ url:"https://dalganmap.ru/api-image/images/POI/7999.png",
|
|
17270
|
+
filtering:"mipmap",
|
|
17271
|
+
sprites:{ base:[ 0,
|
|
17272
|
+
0,
|
|
17273
|
+
20,
|
|
17274
|
+
20 ] } },
|
|
17275
|
+
POI_8410:{ url:"https://dalganmap.ru/api-image/images/POI/8410.png",
|
|
17276
|
+
filtering:"mipmap",
|
|
17277
|
+
sprites:{ base:[ 0,
|
|
17278
|
+
0,
|
|
17279
|
+
20,
|
|
17280
|
+
20 ] } },
|
|
17281
|
+
POI_9517:{ url:"https://dalganmap.ru/api-image/images/POI/9517.png",
|
|
17282
|
+
filtering:"mipmap",
|
|
17283
|
+
sprites:{ base:[ 0,
|
|
17284
|
+
0,
|
|
17285
|
+
20,
|
|
17286
|
+
20 ] } },
|
|
17287
|
+
POI_9718:{ url:"https://dalganmap.ru/api-image/images/POI/9718.png",
|
|
17288
|
+
filtering:"mipmap",
|
|
17289
|
+
sprites:{ base:[ 0,
|
|
17290
|
+
0,
|
|
17291
|
+
20,
|
|
17292
|
+
20 ] } },
|
|
17293
|
+
"POI_9992(mosque)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_mosque.png",
|
|
17294
|
+
filtering:"mipmap",
|
|
17295
|
+
sprites:{ base:[ 0,
|
|
17296
|
+
0,
|
|
17297
|
+
20,
|
|
17298
|
+
20 ] } },
|
|
17299
|
+
"POI_9992(church)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_church.png",
|
|
17300
|
+
filtering:"mipmap",
|
|
17301
|
+
sprites:{ base:[ 0,
|
|
17302
|
+
0,
|
|
17303
|
+
20,
|
|
17304
|
+
20 ] } },
|
|
17305
|
+
"POI_9992(temple)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_temple.png",
|
|
17306
|
+
filtering:"mipmap",
|
|
17307
|
+
sprites:{ base:[ 0,
|
|
17308
|
+
0,
|
|
17309
|
+
20,
|
|
17310
|
+
20 ] } },
|
|
17311
|
+
"POI_9992(davidStar)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_davidStar.png",
|
|
17312
|
+
filtering:"mipmap",
|
|
17313
|
+
sprites:{ base:[ 0,
|
|
17314
|
+
0,
|
|
17315
|
+
20,
|
|
17316
|
+
20 ] } },
|
|
17317
|
+
"POI_9992(mortar)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_mortar.png",
|
|
17318
|
+
filtering:"mipmap",
|
|
17319
|
+
sprites:{ base:[ 0,
|
|
17320
|
+
0,
|
|
17321
|
+
20,
|
|
17322
|
+
20 ] } },
|
|
17323
|
+
"POI_4100(metro)":{ url:"https://dalganmap.ru/api-image/images/POI/4100_metro.png",
|
|
17324
|
+
filtering:"mipmap",
|
|
17325
|
+
sprites:{ base:[ 0,
|
|
17326
|
+
0,
|
|
17327
|
+
20,
|
|
17328
|
+
20 ] } },
|
|
17329
|
+
"POI_4100(diameter)":{ url:"https://dalganmap.ru/api-image/images/POI/4100_diameter.png",
|
|
17330
|
+
filtering:"mipmap",
|
|
17331
|
+
sprites:{ base:[ 0,
|
|
17332
|
+
0,
|
|
17333
|
+
41,
|
|
17334
|
+
15 ] } },
|
|
17335
|
+
POI_4013:{ url:"https://dalganmap.ru/api-image/images/POI/4013.png",
|
|
17336
|
+
filtering:"mipmap",
|
|
17337
|
+
sprites:{ base:[ 0,
|
|
17338
|
+
0,
|
|
17339
|
+
20,
|
|
17340
|
+
20 ] } },
|
|
17341
|
+
"lane-marking":{ url:"https://dalganmap.ru/api-image/images/msk/lane-marking.svg",
|
|
17342
|
+
filtering:"mipmap",
|
|
17343
|
+
sprites:{ base:[ 0,
|
|
17344
|
+
0,
|
|
17345
|
+
11,
|
|
17346
|
+
35 ] } } },
|
|
17347
|
+
layers:null,
|
|
17348
|
+
styles:{ buildings:{ base:"polygons",
|
|
17349
|
+
shaders:{ blocks:{ color:"color.rgb;\n" } } } },
|
|
17350
|
+
lights:{ light1:{ type:"directional",
|
|
17351
|
+
direction:[ 0.1,
|
|
17352
|
+
0.5,
|
|
17353
|
+
-1 ],
|
|
17354
|
+
diffuse:0.7,
|
|
17355
|
+
ambient:0.5 } },
|
|
17356
|
+
sources:null };
|
|
17357
|
+
data.global;
|
|
17358
|
+
data.cameras;
|
|
17359
|
+
data.textures;
|
|
17360
|
+
data.layers;
|
|
17361
|
+
data.styles;
|
|
17362
|
+
data.lights;
|
|
17363
|
+
data.sources;
|
|
17364
|
+
|
|
17115
17365
|
const getBuiltupAreaLayers = (source) => {
|
|
17116
17366
|
const layers = [];
|
|
17117
17367
|
const data = {
|
|
@@ -19041,7 +19291,7 @@ const useGetLeafletLayer = ({ eventHandlers, }) => {
|
|
|
19041
19291
|
Promise.resolve().then(function () { return tangram_min; }).then(() => {
|
|
19042
19292
|
if (window.Tangram) {
|
|
19043
19293
|
const leafletLayer = window.Tangram.leafletLayer({
|
|
19044
|
-
scene:
|
|
19294
|
+
scene: data,
|
|
19045
19295
|
});
|
|
19046
19296
|
const { scene } = leafletLayer;
|
|
19047
19297
|
setLayer(leafletLayer);
|