@aibee/crc-bmap 0.14.20 → 0.14.22

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/lib/meta.json CHANGED
@@ -386,7 +386,7 @@
386
386
  "format": "esm"
387
387
  },
388
388
  "../lib/src/utils/road2.js": {
389
- "bytes": 55766,
389
+ "bytes": 56334,
390
390
  "imports": [
391
391
  {
392
392
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -477,7 +477,7 @@
477
477
  "format": "esm"
478
478
  },
479
479
  "../lib/src/factory/unique-key.js": {
480
- "bytes": 933,
480
+ "bytes": 999,
481
481
  "imports": [
482
482
  {
483
483
  "path": "core-js/modules/es.set.difference.v2.js",
@@ -1062,7 +1062,7 @@
1062
1062
  "format": "esm"
1063
1063
  },
1064
1064
  "../lib/src/factory/text-texture.js": {
1065
- "bytes": 28925,
1065
+ "bytes": 28929,
1066
1066
  "imports": [
1067
1067
  {
1068
1068
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -2176,7 +2176,7 @@
2176
2176
  "format": "esm"
2177
2177
  },
2178
2178
  "../src/utils/road2.ts": {
2179
- "bytes": 54042,
2179
+ "bytes": 54590,
2180
2180
  "imports": [
2181
2181
  {
2182
2182
  "path": "../../../node_modules/.pnpm/node-dijkstra@2.5.0/node_modules/node-dijkstra/libs/Graph.js",
@@ -2212,7 +2212,7 @@
2212
2212
  "format": "esm"
2213
2213
  },
2214
2214
  "../src/factory/unique-key.ts": {
2215
- "bytes": 486,
2215
+ "bytes": 556,
2216
2216
  "imports": [
2217
2217
  {
2218
2218
  "path": "<runtime>",
@@ -2596,7 +2596,7 @@
2596
2596
  "format": "esm"
2597
2597
  },
2598
2598
  "../src/factory/text-texture.ts": {
2599
- "bytes": 25837,
2599
+ "bytes": 25841,
2600
2600
  "imports": [
2601
2601
  {
2602
2602
  "path": "three",
@@ -3167,7 +3167,7 @@
3167
3167
  "format": "esm"
3168
3168
  },
3169
3169
  "../lib/src/elements/base-svg.js": {
3170
- "bytes": 1807,
3170
+ "bytes": 2455,
3171
3171
  "imports": [
3172
3172
  {
3173
3173
  "path": "three",
@@ -3183,7 +3183,7 @@
3183
3183
  "format": "esm"
3184
3184
  },
3185
3185
  "../lib/src/elements/svg-line.js": {
3186
- "bytes": 4321,
3186
+ "bytes": 4339,
3187
3187
  "imports": [
3188
3188
  {
3189
3189
  "path": "core-js/modules/es.array.push.js",
@@ -3209,7 +3209,7 @@
3209
3209
  "format": "esm"
3210
3210
  },
3211
3211
  "../lib/src/elements/svg-polygon.js": {
3212
- "bytes": 5848,
3212
+ "bytes": 5866,
3213
3213
  "imports": [
3214
3214
  {
3215
3215
  "path": "core-js/modules/es.array.push.js",
@@ -5494,7 +5494,7 @@
5494
5494
  "format": "esm"
5495
5495
  },
5496
5496
  "../lib/src/plugins/nav-path/nav-path.js": {
5497
- "bytes": 3784,
5497
+ "bytes": 3921,
5498
5498
  "imports": [
5499
5499
  {
5500
5500
  "path": "three",
@@ -6115,7 +6115,7 @@
6115
6115
  "format": "esm"
6116
6116
  },
6117
6117
  "../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
6118
- "bytes": 16529,
6118
+ "bytes": 17854,
6119
6119
  "imports": [
6120
6120
  {
6121
6121
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -6186,8 +6186,29 @@
6186
6186
  "imports": [],
6187
6187
  "format": "esm"
6188
6188
  },
6189
+ "../lib/src/plugins/recommend-parking-space/recommend-core.js": {
6190
+ "bytes": 11349,
6191
+ "imports": [
6192
+ {
6193
+ "path": "core-js/modules/es.array.push.js",
6194
+ "kind": "import-statement",
6195
+ "external": true
6196
+ },
6197
+ {
6198
+ "path": "../lib/src/utils/road2.js",
6199
+ "kind": "import-statement",
6200
+ "original": "../../utils/road2"
6201
+ },
6202
+ {
6203
+ "path": "<runtime>",
6204
+ "kind": "import-statement",
6205
+ "external": true
6206
+ }
6207
+ ],
6208
+ "format": "esm"
6209
+ },
6189
6210
  "../lib/src/plugins/recommend-parking-space/recommand-parking-space.js": {
6190
- "bytes": 1523,
6211
+ "bytes": 2467,
6191
6212
  "imports": [
6192
6213
  {
6193
6214
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -6209,6 +6230,11 @@
6209
6230
  "kind": "import-statement",
6210
6231
  "original": "../../utils"
6211
6232
  },
6233
+ {
6234
+ "path": "../lib/src/plugins/recommend-parking-space/recommend-core.js",
6235
+ "kind": "import-statement",
6236
+ "original": "./recommend-core"
6237
+ },
6212
6238
  {
6213
6239
  "path": "<runtime>",
6214
6240
  "kind": "import-statement",
@@ -6498,8 +6524,137 @@
6498
6524
  ],
6499
6525
  "format": "esm"
6500
6526
  },
6527
+ "../lib/src/plugins/graphic-draw/svg-drawer.js": {
6528
+ "bytes": 7303,
6529
+ "imports": [
6530
+ {
6531
+ "path": "core-js/modules/es.array.push.js",
6532
+ "kind": "import-statement",
6533
+ "external": true
6534
+ },
6535
+ {
6536
+ "path": "../lib/src/elements/base-svg.js",
6537
+ "kind": "import-statement",
6538
+ "original": "../../elements/base-svg"
6539
+ },
6540
+ {
6541
+ "path": "../lib/src/utils/svg.js",
6542
+ "kind": "import-statement",
6543
+ "original": "../../utils/svg"
6544
+ }
6545
+ ],
6546
+ "format": "esm"
6547
+ },
6548
+ "../lib/src/plugins/graphic-draw/transform-box.js": {
6549
+ "bytes": 11494,
6550
+ "imports": [
6551
+ {
6552
+ "path": "core-js/modules/es.array.push.js",
6553
+ "kind": "import-statement",
6554
+ "external": true
6555
+ },
6556
+ {
6557
+ "path": "../lib/src/elements/base-svg.js",
6558
+ "kind": "import-statement",
6559
+ "original": "../../elements/base-svg"
6560
+ },
6561
+ {
6562
+ "path": "../lib/src/utils/svg.js",
6563
+ "kind": "import-statement",
6564
+ "original": "../../utils/svg"
6565
+ },
6566
+ {
6567
+ "path": "three",
6568
+ "kind": "import-statement",
6569
+ "external": true
6570
+ }
6571
+ ],
6572
+ "format": "esm"
6573
+ },
6574
+ "../lib/src/plugins/graphic-draw/types.js": {
6575
+ "bytes": 325,
6576
+ "imports": [],
6577
+ "format": "esm"
6578
+ },
6579
+ "../lib/src/plugins/graphic-draw/graphic-draw.js": {
6580
+ "bytes": 27821,
6581
+ "imports": [
6582
+ {
6583
+ "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
6584
+ "kind": "import-statement",
6585
+ "original": "@swc/helpers/_/_extends"
6586
+ },
6587
+ {
6588
+ "path": "core-js/modules/es.array.push.js",
6589
+ "kind": "import-statement",
6590
+ "external": true
6591
+ },
6592
+ {
6593
+ "path": "core-js/modules/web.dom-collections.iterator.js",
6594
+ "kind": "import-statement",
6595
+ "external": true
6596
+ },
6597
+ {
6598
+ "path": "core-js/modules/es.array.reverse.js",
6599
+ "kind": "import-statement",
6600
+ "external": true
6601
+ },
6602
+ {
6603
+ "path": "three",
6604
+ "kind": "import-statement",
6605
+ "external": true
6606
+ },
6607
+ {
6608
+ "path": "../lib/src/plugins/base.js",
6609
+ "kind": "import-statement",
6610
+ "original": "../base"
6611
+ },
6612
+ {
6613
+ "path": "../lib/src/elements/graphic.js",
6614
+ "kind": "import-statement",
6615
+ "original": "../../elements/graphic"
6616
+ },
6617
+ {
6618
+ "path": "../lib/src/plugins/graphic-draw/svg-drawer.js",
6619
+ "kind": "import-statement",
6620
+ "original": "./svg-drawer"
6621
+ },
6622
+ {
6623
+ "path": "../lib/src/plugins/graphic-draw/transform-box.js",
6624
+ "kind": "import-statement",
6625
+ "original": "./transform-box"
6626
+ },
6627
+ {
6628
+ "path": "../lib/src/plugins/graphic-draw/types.js",
6629
+ "kind": "import-statement",
6630
+ "original": "./types"
6631
+ },
6632
+ {
6633
+ "path": "../lib/src/factory/unique-key.js",
6634
+ "kind": "import-statement",
6635
+ "original": "../../factory/unique-key"
6636
+ }
6637
+ ],
6638
+ "format": "esm"
6639
+ },
6640
+ "../lib/src/plugins/graphic-draw/index.js": {
6641
+ "bytes": 99,
6642
+ "imports": [
6643
+ {
6644
+ "path": "../lib/src/plugins/graphic-draw/graphic-draw.js",
6645
+ "kind": "import-statement",
6646
+ "original": "./graphic-draw"
6647
+ },
6648
+ {
6649
+ "path": "../lib/src/plugins/graphic-draw/types.js",
6650
+ "kind": "import-statement",
6651
+ "original": "./types"
6652
+ }
6653
+ ],
6654
+ "format": "esm"
6655
+ },
6501
6656
  "../lib/src/plugins/index.js": {
6502
- "bytes": 559,
6657
+ "bytes": 591,
6503
6658
  "imports": [
6504
6659
  {
6505
6660
  "path": "../lib/src/plugins/equipment/index.js",
@@ -6585,6 +6740,11 @@
6585
6740
  "path": "../lib/src/plugins/heatmap/index.js",
6586
6741
  "kind": "import-statement",
6587
6742
  "original": "./heatmap"
6743
+ },
6744
+ {
6745
+ "path": "../lib/src/plugins/graphic-draw/index.js",
6746
+ "kind": "import-statement",
6747
+ "original": "./graphic-draw"
6588
6748
  }
6589
6749
  ],
6590
6750
  "format": "esm"
@@ -9094,6 +9254,11 @@
9094
9254
  "kind": "import-statement",
9095
9255
  "external": true
9096
9256
  },
9257
+ {
9258
+ "path": "core-js/modules/es.array.push.js",
9259
+ "kind": "import-statement",
9260
+ "external": true
9261
+ },
9097
9262
  {
9098
9263
  "path": "core-js/modules/es.json.stringify.js",
9099
9264
  "kind": "import-statement",
@@ -9164,6 +9329,41 @@
9164
9329
  "kind": "import-statement",
9165
9330
  "external": true
9166
9331
  },
9332
+ {
9333
+ "path": "three",
9334
+ "kind": "import-statement",
9335
+ "external": true
9336
+ },
9337
+ {
9338
+ "path": "core-js/modules/es.array.push.js",
9339
+ "kind": "import-statement",
9340
+ "external": true
9341
+ },
9342
+ {
9343
+ "path": "core-js/modules/web.dom-collections.iterator.js",
9344
+ "kind": "import-statement",
9345
+ "external": true
9346
+ },
9347
+ {
9348
+ "path": "core-js/modules/es.array.reverse.js",
9349
+ "kind": "import-statement",
9350
+ "external": true
9351
+ },
9352
+ {
9353
+ "path": "three",
9354
+ "kind": "import-statement",
9355
+ "external": true
9356
+ },
9357
+ {
9358
+ "path": "core-js/modules/es.array.push.js",
9359
+ "kind": "import-statement",
9360
+ "external": true
9361
+ },
9362
+ {
9363
+ "path": "core-js/modules/es.array.push.js",
9364
+ "kind": "import-statement",
9365
+ "external": true
9366
+ },
9167
9367
  {
9168
9368
  "path": "three",
9169
9369
  "kind": "import-statement",
@@ -9190,6 +9390,7 @@
9190
9390
  "Floor",
9191
9391
  "GlbModel",
9192
9392
  "Graphic",
9393
+ "GraphicDraw",
9193
9394
  "GraphicLayer",
9194
9395
  "GroundTexture",
9195
9396
  "Heatmap",
@@ -9270,6 +9471,7 @@
9270
9471
  "createThreeLine",
9271
9472
  "darkenColor",
9272
9473
  "defaultConfig",
9474
+ "defaultGraphicDrawOptions",
9273
9475
  "defaultGraphicOptions",
9274
9476
  "defaultOptions",
9275
9477
  "defaultTextTextureOptions",
@@ -9361,7 +9563,7 @@
9361
9563
  "bytesInOutput": 208
9362
9564
  },
9363
9565
  "../lib/src/bmap.js": {
9364
- "bytesInOutput": 11140
9566
+ "bytesInOutput": 11141
9365
9567
  },
9366
9568
  "../lib/src/context/context.js": {
9367
9569
  "bytesInOutput": 9423
@@ -9388,7 +9590,7 @@
9388
9590
  "bytesInOutput": 212
9389
9591
  },
9390
9592
  "../lib/src/utils/svg.js": {
9391
- "bytesInOutput": 870
9593
+ "bytesInOutput": 869
9392
9594
  },
9393
9595
  "../lib/src/utils/sleep.js": {
9394
9596
  "bytesInOutput": 255
@@ -9421,10 +9623,10 @@
9421
9623
  "bytesInOutput": 5426
9422
9624
  },
9423
9625
  "../lib/src/utils/road2.js": {
9424
- "bytesInOutput": 17294
9626
+ "bytesInOutput": 17440
9425
9627
  },
9426
9628
  "../lib/src/factory/unique-key.js": {
9427
- "bytesInOutput": 733
9629
+ "bytesInOutput": 774
9428
9630
  },
9429
9631
  "../lib/src/utils/string.js": {
9430
9632
  "bytesInOutput": 423
@@ -9466,13 +9668,13 @@
9466
9668
  "bytesInOutput": 3434
9467
9669
  },
9468
9670
  "../lib/src/elements/graphic.js": {
9469
- "bytesInOutput": 7605
9671
+ "bytesInOutput": 7606
9470
9672
  },
9471
9673
  "../lib/src/factory/material.js": {
9472
9674
  "bytesInOutput": 14209
9473
9675
  },
9474
9676
  "../lib/src/factory/text-texture.js": {
9475
- "bytesInOutput": 11005
9677
+ "bytesInOutput": 11009
9476
9678
  },
9477
9679
  "../lib/src/factory/worker/text-texture.worker.js": {
9478
9680
  "bytesInOutput": 101
@@ -9484,7 +9686,7 @@
9484
9686
  "bytesInOutput": 1669
9485
9687
  },
9486
9688
  "../lib/src/factory/img-texture.js": {
9487
- "bytesInOutput": 1574
9689
+ "bytesInOutput": 1581
9488
9690
  },
9489
9691
  "../lib/src/factory/model.js": {
9490
9692
  "bytesInOutput": 826
@@ -9568,7 +9770,7 @@
9568
9770
  "bytesInOutput": 14209
9569
9771
  },
9570
9772
  "../src/factory/unique-key.ts": {
9571
- "bytesInOutput": 327
9773
+ "bytesInOutput": 368
9572
9774
  },
9573
9775
  "../src/utils/webworker.ts": {
9574
9776
  "bytesInOutput": 277
@@ -9589,28 +9791,28 @@
9589
9791
  "bytesInOutput": 1595
9590
9792
  },
9591
9793
  "../lib/src/elements/poi2.js": {
9592
- "bytesInOutput": 8928
9794
+ "bytesInOutput": 8930
9593
9795
  },
9594
9796
  "../lib/src/elements/heatmap.js": {
9595
9797
  "bytesInOutput": 2123
9596
9798
  },
9597
9799
  "../lib/src/elements/svg-line.js": {
9598
- "bytesInOutput": 2240
9800
+ "bytesInOutput": 2255
9599
9801
  },
9600
9802
  "../lib/src/elements/base-svg.js": {
9601
- "bytesInOutput": 1026
9803
+ "bytesInOutput": 1283
9602
9804
  },
9603
9805
  "../lib/src/elements/svg-polygon.js": {
9604
- "bytesInOutput": 2568
9806
+ "bytesInOutput": 2583
9605
9807
  },
9606
9808
  "../lib/src/elements/select-box.js": {
9607
- "bytesInOutput": 1494
9809
+ "bytesInOutput": 1488
9608
9810
  },
9609
9811
  "../lib/src/elements/wall.js": {
9610
9812
  "bytesInOutput": 3779
9611
9813
  },
9612
9814
  "../lib/src/elements/ground-texture.js": {
9613
- "bytesInOutput": 1602
9815
+ "bytesInOutput": 1603
9614
9816
  },
9615
9817
  "../lib/src/elements/glb-model.js": {
9616
9818
  "bytesInOutput": 1176
@@ -9637,7 +9839,7 @@
9637
9839
  "bytesInOutput": 905
9638
9840
  },
9639
9841
  "../lib/src/elements/merge-attribute-ground-texture.js": {
9640
- "bytesInOutput": 1794
9842
+ "bytesInOutput": 1795
9641
9843
  },
9642
9844
  "../lib/src/elements/merge-attribute-lane.js": {
9643
9845
  "bytesInOutput": 2027
@@ -9655,7 +9857,7 @@
9655
9857
  "bytesInOutput": 806
9656
9858
  },
9657
9859
  "../lib/src/operations/selection/box-selection.js": {
9658
- "bytesInOutput": 2648
9860
+ "bytesInOutput": 2645
9659
9861
  },
9660
9862
  "../lib/src/operations/hover/hover-helper.js": {
9661
9863
  "bytesInOutput": 2929
@@ -9736,7 +9938,7 @@
9736
9938
  "bytesInOutput": 2266
9737
9939
  },
9738
9940
  "../lib/src/plugins/nav-path/nav-path.js": {
9739
- "bytesInOutput": 1752
9941
+ "bytesInOutput": 1860
9740
9942
  },
9741
9943
  "../lib/src/plugins/nav-path/path.worker.js": {
9742
9944
  "bytesInOutput": 93
@@ -9751,7 +9953,7 @@
9751
9953
  "bytesInOutput": 3905
9752
9954
  },
9753
9955
  "../lib/src/plugins/select/box-selection.js": {
9754
- "bytesInOutput": 2648
9956
+ "bytesInOutput": 2645
9755
9957
  },
9756
9958
  "../lib/src/plugins/pdr-position/sensor.js": {
9757
9959
  "bytesInOutput": 2925
@@ -9790,17 +9992,20 @@
9790
9992
  "bytesInOutput": 1040
9791
9993
  },
9792
9994
  "../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
9793
- "bytesInOutput": 6324
9995
+ "bytesInOutput": 6611
9794
9996
  },
9795
9997
  "../lib/src/plugins/car-inertial-position/utils.js": {
9796
9998
  "bytesInOutput": 1820
9797
9999
  },
9798
10000
  "../lib/src/plugins/recommend-parking-space/recommand-parking-space.js": {
9799
- "bytesInOutput": 732
10001
+ "bytesInOutput": 1192
9800
10002
  },
9801
10003
  "../lib/src/plugins/recommend-parking-space/recommend.worker.js": {
9802
10004
  "bytesInOutput": 98
9803
10005
  },
10006
+ "../lib/src/plugins/recommend-parking-space/recommend-core.js": {
10007
+ "bytesInOutput": 4004
10008
+ },
9804
10009
  "../lib/src/plugins/position/position.js": {
9805
10010
  "bytesInOutput": 11423
9806
10011
  },
@@ -9824,9 +10029,24 @@
9824
10029
  },
9825
10030
  "../lib/src/plugins/heatmap/heatmap.js": {
9826
10031
  "bytesInOutput": 575
10032
+ },
10033
+ "../lib/src/plugins/graphic-draw/graphic-draw.js": {
10034
+ "bytesInOutput": 13630
10035
+ },
10036
+ "../lib/src/plugins/graphic-draw/svg-drawer.js": {
10037
+ "bytesInOutput": 4523
10038
+ },
10039
+ "../lib/src/plugins/graphic-draw/transform-box.js": {
10040
+ "bytesInOutput": 5879
10041
+ },
10042
+ "../lib/src/plugins/graphic-draw/types.js": {
10043
+ "bytesInOutput": 213
10044
+ },
10045
+ "../lib/src/plugins/graphic-draw/index.js": {
10046
+ "bytesInOutput": 0
9827
10047
  }
9828
10048
  },
9829
- "bytes": 408800
10049
+ "bytes": 438472
9830
10050
  }
9831
10051
  }
9832
10052
  }
@@ -2,7 +2,6 @@ import { Context } from "../context/context";
2
2
  import { EventDispatcher, Vector3 } from "three";
3
3
  export declare class BaseSvg<T extends {} = {}> extends EventDispatcher<T> {
4
4
  context: Context;
5
- protected points: Vector3[];
6
5
  protected svg: SVGElement;
7
6
  protected enable: boolean;
8
7
  constructor(context: Context);
@@ -15,5 +14,6 @@ export declare class BaseSvg<T extends {} = {}> extends EventDispatcher<T> {
15
14
  x: number;
16
15
  y: number;
17
16
  };
17
+ getWorldToDeviceDistance(worldDistance: number): number;
18
18
  dispose(): void;
19
19
  }
@@ -8,6 +8,7 @@ interface SvgLineEventMap {
8
8
  }
9
9
  export declare class SvgLine extends BaseSvg<SvgLineEventMap> {
10
10
  context: Context;
11
+ protected points: Vector3[];
11
12
  circles: SVGElement[];
12
13
  line: SVGElement;
13
14
  constructor(context: Context);
@@ -7,6 +7,7 @@ interface SvgPolygonEventMap {
7
7
  };
8
8
  }
9
9
  export declare class SvgPolygon extends BaseSvg<SvgPolygonEventMap> {
10
+ protected points: Vector3[];
10
11
  circles: SVGElement[];
11
12
  lines: SVGElement[];
12
13
  isClose: boolean;
@@ -2,6 +2,7 @@ export declare class UniqueKeyFactory {
2
2
  static keySet: Set<string>;
3
3
  static createKey(): string;
4
4
  static genUniqueKey(): string;
5
+ static registerKey(key: string): void;
5
6
  static removeKey(key: string): void;
6
7
  static dispose(): void;
7
8
  }
@@ -36,6 +36,7 @@ export declare class CarInertialPosition extends EventDispatcher<CarInertialPosi
36
36
  angleExcessesCount: number;
37
37
  pathAngle: number;
38
38
  lastExternalPositionTime: number;
39
+ private _lastSpeedUpdateTime;
39
40
  constructor();
40
41
  setPathAngle(angle: number): void;
41
42
  changeSpeed(): number | undefined;
@@ -0,0 +1,71 @@
1
+ import { Group } from "three";
2
+ import { BMap } from "../../bmap";
3
+ import { Plugin } from "../base";
4
+ import { Graphic } from "../../elements/graphic";
5
+ import { SvgDrawer } from "./svg-drawer";
6
+ import { TransformBox } from "./transform-box";
7
+ import { GraphicDrawOptions, DrawingState, GraphicDrawEventMap } from "./types";
8
+ import { Coordinate, GraphicOptions } from "../../types";
9
+ export declare class GraphicDraw extends Plugin<GraphicDrawEventMap> {
10
+ options: GraphicDrawOptions;
11
+ state: DrawingState;
12
+ svgDrawer: SvgDrawer;
13
+ transformBox: TransformBox;
14
+ graphicsGroup: Group;
15
+ graphics: Map<string, Graphic>;
16
+ selectedGraphic: Graphic | null;
17
+ private prevPanStatus?;
18
+ private prevRotateStatus?;
19
+ private prevMapType?;
20
+ private startPoint;
21
+ private circleCenter;
22
+ private circleRadius;
23
+ private originalStyle;
24
+ private initialRotateAngle;
25
+ private rotationCenter;
26
+ private raycaster;
27
+ private currentMousePoint;
28
+ constructor(bmap: BMap, options?: Partial<GraphicDrawOptions>);
29
+ getState(): DrawingState;
30
+ startDrawPolygon(): void;
31
+ startDrawRect(): void;
32
+ startDrawCircle(): void;
33
+ cancel(): void;
34
+ selectGraphic(id: string): void;
35
+ deselectGraphic(): void;
36
+ getSelectedGraphic(): Graphic | null;
37
+ setRotation(id: string, angle: number): void;
38
+ setWidth(id: string, width: number): void;
39
+ setHeight(id: string, height: number): void;
40
+ setCoordinates(id: string, coords: Coordinate[][]): void;
41
+ loadGraphics(options: GraphicOptions[]): void;
42
+ getGraphics(): Graphic[];
43
+ removeGraphic(id: string): void;
44
+ clearGraphics(): void;
45
+ private getScreenPoint;
46
+ private screenToWorld;
47
+ private screenCoordsToWorld;
48
+ private pixelsToWorldDistance;
49
+ private registryEvents;
50
+ private unRegistryEvents;
51
+ private registryTransformEvents;
52
+ private unRegistryTransformEvents;
53
+ private enter2DMode;
54
+ private exit2DMode;
55
+ private disableControls;
56
+ private enableControls;
57
+ private onContextMenu;
58
+ private onPointerDown;
59
+ private hitTestGraphic;
60
+ private onPointerMove;
61
+ private onPointerUp;
62
+ private onTransformStart;
63
+ private onTransform;
64
+ private onTransformEnd;
65
+ private finishPolygon;
66
+ private finishRect;
67
+ private finishCircle;
68
+ private buildGraphicOptions;
69
+ private createGraphic;
70
+ dispose(): void;
71
+ }
@@ -0,0 +1,4 @@
1
+ export { GraphicDraw } from './graphic-draw';
2
+ export { defaultGraphicDrawOptions } from './types';
3
+ export type { GraphicDrawOptions, GraphicDrawEventMap, ScreenPoint, DrawingState } from './types';
4
+ export type { TransformBoxEventMap, TransformAction, BoundingBoxInfo } from './transform-box';