@realsee/dnalogel 3.48.0 → 3.48.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +16 -0
  3. package/dist/Sculpt/Objects/Line/index.d.ts +12 -1
  4. package/dist/Sculpt/index.d.ts +5 -2
  5. package/dist/index.cjs.js +32 -32
  6. package/dist/index.js +2038 -1973
  7. package/dist/index.umd.js +31 -31
  8. package/dist/shared-utils/promise/withResolvers.d.ts +10 -0
  9. package/dist/shared-utils/three/Magnifier.d.ts +1 -1
  10. package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +4 -1
  11. package/libs/Sculpt/Meshes/Line.js +15 -15
  12. package/libs/Sculpt/Objects/Base/index.d.ts +16 -0
  13. package/libs/Sculpt/Objects/Base/index.js +58 -32
  14. package/libs/Sculpt/Objects/Box/index.js +31 -34
  15. package/libs/Sculpt/Objects/Circle/index.js +36 -39
  16. package/libs/Sculpt/Objects/Line/index.d.ts +12 -1
  17. package/libs/Sculpt/Objects/Line/index.js +104 -75
  18. package/libs/Sculpt/Objects/Point/index.js +13 -16
  19. package/libs/Sculpt/Objects/Polygon/index.js +18 -21
  20. package/libs/Sculpt/Objects/Polyline/index.js +27 -30
  21. package/libs/Sculpt/Objects/Prism/index.js +16 -19
  22. package/libs/Sculpt/Objects/Rectangle/index.js +36 -39
  23. package/libs/Sculpt/index.d.ts +5 -2
  24. package/libs/Sculpt/index.js +80 -65
  25. package/libs/base/BasePlugin.js +1 -1
  26. package/libs/index.js +127 -126
  27. package/libs/shared-utils/logger.js +1 -1
  28. package/libs/shared-utils/promise/withResolvers.d.ts +10 -0
  29. package/libs/shared-utils/promise/withResolvers.js +13 -0
  30. package/libs/shared-utils/tag.js +9 -9
  31. package/libs/shared-utils/three/Magnifier.d.ts +1 -1
  32. package/libs/shared-utils/three/Magnifier.js +12 -12
  33. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +4 -1
  34. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +9 -9
  35. package/package.json +1 -1
package/libs/index.js CHANGED
@@ -1,62 +1,62 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as El } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as Rl } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as Ol } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Al } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as Gl } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as vl, modelRoomLabelPluginServerParams as Fl } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as cl } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as Nl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as kl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Bl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as Ul } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as $l, ROOM_FETILE_TYPE_MAP as Wl, ROOM_TYPE_MAP as ql } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as Jl } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as Ql } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as Zl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as rn, Rotation as tn } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as pn } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as ln } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as an } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as un } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as xn } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as sn } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as Mn } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as Ln } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as _n } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as In } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as Sn } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as yn, MovePlugin as An } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as Gn } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as vn } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as Yn } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as Vn } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as hn } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as wn } from "./CurrentPanoImagePlugin/index.js";
37
- import { Sculpt as Hn, SculptPlugin as Un } from "./Sculpt/index.js";
38
- import { ModelMakerPlugin as $n } from "./ModelMakerPlugin/index.js";
39
- import { index as qn } from "./shared-utils/index.js";
40
- import { CSS3DRender as Jn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
- import { Model as Qn } from "./PanoMeasurePlugin/Model/index.js";
42
- import { default as Zn } from "./PanoMeasurePlugin/Model/point.js";
43
- import { default as ra } from "./PanoMeasurePlugin/Model/line.js";
44
- import { Polyline as ia } from "./PanoMeasurePlugin/Model/polyline.js";
45
- import { Magnifier as pa } from "./shared-utils/three/Magnifier.js";
46
- import { DISPLAY_STRATEGY_TYPE as la } from "./ModelItemLabelPlugin/typings.js";
47
- import { ModelItemLabelPlugin as aa } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as ua } from "./ItemLabelPlugin/typings.js";
49
- import { Plugin as xa } from "./ItemLabelPlugin/Plugin.js";
50
- import { GuideLineItem$1 as sa } from "./GuideLinePlugin/GuideLineItem/index.js";
51
- import { GuideLineModeItem$1 as Ma } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
- import { default as La, default as Ca } from "./CruisePlugin/Work.js";
53
- import { default as Ea } from "./CruisePlugin/Move.js";
54
- import { typing as Ra } from "./CruisePlugin/typing/index.js";
55
- import { default as Oa, pluginFlag as ya } from "./PanoTagPlugin/controller/index.js";
56
- import { defaultGlobalConfig as Da } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
- import { ContentType as ba, DimensionType as va, PointType as Fa } from "./PanoTagPlugin/Archive/deprecated.js";
58
- import { Object3DHelperController as ca, PLUGIN as Va } from "./Object3DHelperPlugin/Controller.js";
59
- import { typings as ha } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as Il } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as Sl } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as yl } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Dl } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as bl } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Fl, modelRoomLabelPluginServerParams as Yl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as Vl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as hl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as wl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Hl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as jl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as Wl, ROOM_FETILE_TYPE_MAP as ql, ROOM_TYPE_MAP as zl } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as Kl } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as Xl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as on } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as tn, Rotation as mn } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as en } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as nn } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as Pn } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as fn } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as gn } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as dn } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as Tn } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as Cn } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as En } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as Rn } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as On } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as An, MovePlugin as Dn } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as bn } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as Fn } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as cn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as Nn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as kn } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as Bn } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as Un, SculptPlugin as jn } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as Wn } from "./ModelMakerPlugin/index.js";
39
+ import { index as zn } from "./shared-utils/index.js";
40
+ import { CSS3DRender as Kn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as Xn } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as oa } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as ta } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as ma } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as ea } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as na } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as Pa } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as fa } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as ga } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as da } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as Ta } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as Ca, default as _a } from "./CruisePlugin/Work.js";
53
+ import { default as Ia } from "./CruisePlugin/Move.js";
54
+ import { typing as Sa } from "./CruisePlugin/typing/index.js";
55
+ import { default as ya, pluginFlag as Aa } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as Ga } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as va, DimensionType as Fa, PointType as Ya } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as Va, PLUGIN as Na } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as ka } from "./PanoVideoPlugin/typings/index.js";
60
60
  import "./components/PaintBrush/Controller.js";
61
61
  import "./components/PaintBrush/utils.js";
62
62
  import "./components/PaintBrush/tween.js";
@@ -448,12 +448,12 @@ import "./Sculpt/utils/Modules/Global.js";
448
448
  import "./Sculpt/utils/Modules/Cursor.js";
449
449
  import "./shared-utils/three/recurveFindObject.js";
450
450
  import "./Sculpt/Objects/Polyline/index.js";
451
- import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
452
451
  import "./Sculpt/Meshes/Polyline.js";
453
452
  import "./Sculpt/Meshes/LineWithDots.js";
454
453
  import "./Sculpt/Meshes/Point.js";
455
454
  import "./shared-utils/three/closeVectors.js";
456
455
  import "./Sculpt/Objects/Base/index.js";
456
+ import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
457
457
  import "./Sculpt/Objects/Polyline/Editor.js";
458
458
  import "./Sculpt/Objects/Line/Editor.js";
459
459
  import "./Sculpt/Objects/Base/Editor.js";
@@ -488,6 +488,7 @@ import "./Sculpt/Objects/Box/Editor.js";
488
488
  import "./Sculpt/Meshes/Box.js";
489
489
  import "./shared-utils/forReverseEach.js";
490
490
  import "./Sculpt/Objects/Line/index.js";
491
+ import "./shared-utils/promise/withResolvers.js";
491
492
  import "./ModelMakerPlugin/Controller.js";
492
493
  import "./ModelMakerPlugin/item/boxItem.js";
493
494
  import "./ModelMakerPlugin/item/polygonItem.js";
@@ -507,72 +508,72 @@ import "./shared-utils/five/lookObject.js";
507
508
  r();
508
509
  o();
509
510
  export {
510
- hn as AreaMakerPlugin,
511
- Jn as CSS3DRender,
512
- Al as CSS3DRenderPlugin,
513
- rn as CameraMovementEffect,
514
- Zl as CameraMovementPlugin,
515
- ba as ContentType,
516
- yn as CruisePlugin,
517
- La as CruisePluginController,
518
- Ra as CruisePluginTypes,
519
- wn as CurrentPanoImagePlugin,
520
- Ln as DIRECTION,
521
- la as DISPLAY_STRATEGY_TYPE,
522
- va as DimensionType,
523
- cl as FLOOR_PLAN_ATTACHED_TO,
524
- $l as FLOOR_TYPE_MAP,
525
- sa as GuideLineItem,
526
- Ma as GuideLineModeItem,
527
- Sn as GuideLinePlugin,
528
- ua as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
529
- xa as ItemLabelPlugin,
530
- pa as Magnifier,
531
- kl as MapviewFloorplanPlugin,
532
- Jl as ModelChassisCompassPlugin,
533
- Ql as ModelEntryDoorGuidePlugin,
534
- Nl as ModelFloorplanPlugin,
535
- aa as ModelItemLabelPlugin,
536
- $n as ModelMakerPlugin,
537
- vl as ModelRoomLabelPlugin,
538
- Mn as ModelTVVideoPlugin,
539
- Ol as ModelViewPlugin,
540
- Ea as MoveController,
541
- An as MovePlugin,
542
- ca as Object3DHelperController,
543
- vn as Object3DHelperPlugin,
544
- Va as PLUGIN,
545
- El as PaintBrush,
546
- Rl as PaintBrushTypeEnum,
547
- an as PanoCompassPlugin,
548
- Gl as PanoCursorRaycasterPlugin,
549
- In as PanoDoorLabelPlugin,
550
- Ul as PanoFloorplanRadarPlugin,
551
- un as PanoMeasurePlugin,
552
- ra as PanoMeasurePluginLine,
553
- Qn as PanoMeasurePluginModel,
554
- Zn as PanoMeasurePluginPoint,
555
- ia as PanoMeasurePluginPolyline,
556
- pn as PanoRulerPlugin,
557
- ln as PanoRulerProPlugin,
558
- xn as PanoSpatialTagPlugin,
559
- Gn as PanoTagPlugin,
560
- Oa as PanoTagPluginController,
561
- Yn as PanoVideoPlugin,
562
- ha as PanoVideoPluginType,
563
- Vn as PipelinePlugin,
564
- Fa as PointType,
565
- Wl as ROOM_FETILE_TYPE_MAP,
566
- ql as ROOM_TYPE_MAP,
567
- tn as Rotation,
568
- Hn as Sculpt,
569
- Un as SculptPlugin,
570
- Bl as TopviewFloorplanPlugin,
571
- qn as Util,
572
- Ca as WalkController,
573
- Da as defaultGlobalConfig,
574
- _n as itemLabelPluginServerParams,
575
- sn as modelItemLabelPluginServerParams,
576
- Fl as modelRoomLabelPluginServerParams,
577
- ya as pluginFlag
511
+ kn as AreaMakerPlugin,
512
+ Kn as CSS3DRender,
513
+ Dl as CSS3DRenderPlugin,
514
+ tn as CameraMovementEffect,
515
+ on as CameraMovementPlugin,
516
+ va as ContentType,
517
+ An as CruisePlugin,
518
+ Ca as CruisePluginController,
519
+ Sa as CruisePluginTypes,
520
+ Bn as CurrentPanoImagePlugin,
521
+ Cn as DIRECTION,
522
+ na as DISPLAY_STRATEGY_TYPE,
523
+ Fa as DimensionType,
524
+ Vl as FLOOR_PLAN_ATTACHED_TO,
525
+ Wl as FLOOR_TYPE_MAP,
526
+ da as GuideLineItem,
527
+ Ta as GuideLineModeItem,
528
+ On as GuideLinePlugin,
529
+ fa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
530
+ ga as ItemLabelPlugin,
531
+ ea as Magnifier,
532
+ wl as MapviewFloorplanPlugin,
533
+ Kl as ModelChassisCompassPlugin,
534
+ Xl as ModelEntryDoorGuidePlugin,
535
+ hl as ModelFloorplanPlugin,
536
+ Pa as ModelItemLabelPlugin,
537
+ Wn as ModelMakerPlugin,
538
+ Fl as ModelRoomLabelPlugin,
539
+ Tn as ModelTVVideoPlugin,
540
+ yl as ModelViewPlugin,
541
+ Ia as MoveController,
542
+ Dn as MovePlugin,
543
+ Va as Object3DHelperController,
544
+ Fn as Object3DHelperPlugin,
545
+ Na as PLUGIN,
546
+ Il as PaintBrush,
547
+ Sl as PaintBrushTypeEnum,
548
+ Pn as PanoCompassPlugin,
549
+ bl as PanoCursorRaycasterPlugin,
550
+ Rn as PanoDoorLabelPlugin,
551
+ jl as PanoFloorplanRadarPlugin,
552
+ fn as PanoMeasurePlugin,
553
+ ta as PanoMeasurePluginLine,
554
+ Xn as PanoMeasurePluginModel,
555
+ oa as PanoMeasurePluginPoint,
556
+ ma as PanoMeasurePluginPolyline,
557
+ en as PanoRulerPlugin,
558
+ nn as PanoRulerProPlugin,
559
+ gn as PanoSpatialTagPlugin,
560
+ bn as PanoTagPlugin,
561
+ ya as PanoTagPluginController,
562
+ cn as PanoVideoPlugin,
563
+ ka as PanoVideoPluginType,
564
+ Nn as PipelinePlugin,
565
+ Ya as PointType,
566
+ ql as ROOM_FETILE_TYPE_MAP,
567
+ zl as ROOM_TYPE_MAP,
568
+ mn as Rotation,
569
+ Un as Sculpt,
570
+ jn as SculptPlugin,
571
+ Hl as TopviewFloorplanPlugin,
572
+ zn as Util,
573
+ _a as WalkController,
574
+ Ga as defaultGlobalConfig,
575
+ En as itemLabelPluginServerParams,
576
+ dn as modelItemLabelPluginServerParams,
577
+ Yl as modelRoomLabelPluginServerParams,
578
+ Aa as pluginFlag
578
579
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.48.0",
3
+ "%c %c@realsee/dnalogel %cv3.48.1",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -0,0 +1,10 @@
1
+ interface PromiseWithResolvers<T> {
2
+ promise: Promise<T>;
3
+ resolve: (value: T | PromiseLike<T>) => void;
4
+ reject: (reason?: any) => void;
5
+ }
6
+ /**
7
+ * @description Promise.withResolvers polyfill
8
+ */
9
+ export declare function withResolvers<T>(): PromiseWithResolvers<T>;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ function i() {
2
+ let e, r;
3
+ return {
4
+ promise: new Promise((o, s) => {
5
+ e = o, r = s;
6
+ }),
7
+ resolve: e,
8
+ reject: r
9
+ };
10
+ }
11
+ export {
12
+ i as withResolvers
13
+ };
@@ -1,11 +1,11 @@
1
- var u = Object.defineProperty;
2
- var g = (h, t, e) => t in h ? u(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
1
+ var P = Object.defineProperty;
2
+ var g = (h, t, e) => t in h ? P(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
3
3
  var s = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { anyPositionToVector3 as d } from "./positionToVector3.js";
5
5
  import * as b from "three";
6
6
  import { vector3ToScreen as l } from "./five/vector3ToScreen.js";
7
- import { getFiveModel as x } from "./five/getFiveModel.js";
8
- import { FiveUtil as U } from "./Utils/FiveUtil.js";
7
+ import { getFiveModel as U } from "./five/getFiveModel.js";
8
+ import { FiveUtil as x } from "./Utils/FiveUtil.js";
9
9
  import { _raycaster as m } from "./three/temp.js";
10
10
  const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
11
11
  class E {
@@ -35,12 +35,12 @@ class E {
35
35
  if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
36
36
  let e = 0.01;
37
37
  this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
38
- const o = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
38
+ const o = (t = U(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
39
39
  (o == null ? void 0 : o.distance) + e > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
40
40
  }
41
41
  });
42
42
  var n, r, a;
43
- this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new U(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
43
+ this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new x(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
44
44
  const i = document.createElement("div");
45
45
  return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
46
46
  })(), this.config = o != null ? o : {}, this.enable(), this.show();
@@ -81,7 +81,7 @@ class E {
81
81
  this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
82
82
  }
83
83
  setPosition(t, e) {
84
- this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate();
84
+ this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate(), setTimeout(() => this.onCameraUpdate(), 0);
85
85
  }
86
86
  updateScreenPosition() {
87
87
  if (!this.transformedPosition) {
@@ -102,8 +102,8 @@ class E {
102
102
  const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t);
103
103
  if (!i || !c)
104
104
  return 0;
105
- const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
106
- return Math.atan2(P, y) * (180 / Math.PI);
105
+ const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, u = f.topPx - p.topPx;
106
+ return Math.atan2(u, y) * (180 / Math.PI);
107
107
  })();
108
108
  this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
109
109
  }
@@ -57,13 +57,13 @@ export declare class Magnifier {
57
57
  y: number;
58
58
  }): void;
59
59
  resetOffset(): void;
60
+ render(): void;
60
61
  protected getRenderCenter(): THREE.Vector3 | {
61
62
  x: number;
62
63
  y: number;
63
64
  };
64
65
  private _appendTo;
65
66
  private autoFixPCPosition;
66
- private render;
67
67
  private initStyle;
68
68
  private getPanOffset;
69
69
  private onPanstart;
@@ -84,6 +84,18 @@ class E {
84
84
  resetOffset() {
85
85
  this.offset = { x: 0, y: 0 }, this.canvas.style.transform = "translate3d(0px, 0px, 100px)";
86
86
  }
87
+ render() {
88
+ if (!this.five.renderer || !this.containerDom)
89
+ return;
90
+ const { scale: t, context: e, width: i, height: s } = this, h = this.five.renderer.getSize(new l.Vector2()), [o, a] = (() => {
91
+ if (this.renderCenter instanceof l.Vector3) {
92
+ const v = this.renderCenter.clone().project(this.five.camera);
93
+ return [(v.x + 1) / 2 * h.x, (v.y + 1) / 2 * h.y];
94
+ } else
95
+ return [this.renderCenter.x, h.y - this.renderCenter.y];
96
+ })(), f = 1, c = i / t, g = s / t, y = f * t, u = this.five.getPixels(o - c / 2, a - c / 2, c, g, y), x = Math.floor(i * f), m = Math.floor(s * f);
97
+ D(u, x, m), (this.imageData.width !== x || this.imageData.height !== m) && (this.imageData = new ImageData(x, m)), this.imageData.data.set(u), e.putImageData(this.imageData, 0, 0), this.canvas.style.visibility = "visible";
98
+ }
87
99
  getRenderCenter() {
88
100
  return this.renderCenter;
89
101
  }
@@ -113,18 +125,6 @@ class E {
113
125
  })();
114
126
  h < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = "90px") : a < 183 ? (this.canvas.style.top = "90px", this.canvas.style.left = -t / 2 + "px") : o < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = -t - 90 + "px") : (this.canvas.style.left = -t / 2 + "px", this.canvas.style.top = -e - 90 + "px"), this.canvas.style.transform = `translate3d(${h}px, ${a}px, 10px)`, this.offset = { x: h, y: a };
115
127
  }
116
- render() {
117
- if (!this.five.renderer || !this.containerDom)
118
- return;
119
- const { scale: t, context: e, width: i, height: s } = this, h = this.five.renderer.getSize(new l.Vector2()), [o, a] = (() => {
120
- if (this.renderCenter instanceof l.Vector3) {
121
- const v = this.renderCenter.clone().project(this.five.camera);
122
- return [(v.x + 1) / 2 * h.x, (v.y + 1) / 2 * h.y];
123
- } else
124
- return [this.renderCenter.x, h.y - this.renderCenter.y];
125
- })(), f = 1, c = i / t, g = s / t, y = f * t, u = this.five.getPixels(o - c / 2, a - c / 2, c, g, y), x = Math.floor(i * f), m = Math.floor(s * f);
126
- D(u, x, m), (this.imageData.width !== x || this.imageData.height !== m) && (this.imageData = new ImageData(x, m)), this.imageData.data.set(u), e.putImageData(this.imageData, 0, 0), this.canvas.style.visibility = "visible";
127
- }
128
128
  initStyle() {
129
129
  const t = this.canvas;
130
130
  t.classList.add("five-plugin__magnifier"), t.style.position = "absolute", t.style.pointerEvents = this.config.dragEnabled ? "all" : "none", t.style.borderRadius = "50%", t.style.zIndex = "99";
@@ -27,7 +27,10 @@ export declare class PointSelectorHelper {
27
27
  position: PointIntersection | undefined;
28
28
  magnifier: Magnifier | null;
29
29
  pointHelper: PointHelperAbstract | null;
30
- private state;
30
+ state: {
31
+ enabled: boolean;
32
+ visible: boolean;
33
+ };
31
34
  private group;
32
35
  constructor(five: Five, options?: PointSelectorHelperConfig);
33
36
  show: () => void;
@@ -1,7 +1,7 @@
1
1
  var f = Object.defineProperty;
2
- var m = (a, i, e) => i in a ? f(a, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[i] = e;
3
- var t = (a, i, e) => (m(a, typeof i != "symbol" ? i + "" : i, e), e);
4
- import * as p from "three";
2
+ var p = (a, i, e) => i in a ? f(a, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[i] = e;
3
+ var t = (a, i, e) => (p(a, typeof i != "symbol" ? i + "" : i, e), e);
4
+ import * as m from "three";
5
5
  import { Magnifier as u } from "../../Magnifier.js";
6
6
  import { PointHelper as b } from "./PointHelper.js";
7
7
  import { Subscribe as g } from "../../../Subscribe.js";
@@ -16,7 +16,7 @@ class P {
16
16
  t(this, "magnifier", null);
17
17
  t(this, "pointHelper", null);
18
18
  t(this, "state", { enabled: !1, visible: !0 });
19
- t(this, "group", new p.Group());
19
+ t(this, "group", new m.Group());
20
20
  t(this, "show", () => {
21
21
  var i, e;
22
22
  this.state.visible || (this.state.visible = !0, (i = this.pointHelper) == null || i.show(), (e = this.magnifier) == null || e.enable(), this.five.needsRender = !0);
@@ -31,21 +31,21 @@ class P {
31
31
  return;
32
32
  this.abortUpdateMagnifier(), this.position = i, e.emitEvent && this.hooks.emit("intersectionUpdate", i), (s = this.pointHelper) == null || s.updateWithIntersect(i);
33
33
  const r = () => {
34
- var n;
35
- return (n = this.magnifier) == null ? void 0 : n.renderWithPoint(i.point);
34
+ var h;
35
+ return (h = this.magnifier) == null ? void 0 : h.renderWithPoint(i.point);
36
36
  };
37
37
  this.abortUpdateMagnifier = () => this.five.off("renderFrame", r), this.five.once("renderFrame", r), this.five.needsRender = !0;
38
38
  });
39
39
  t(this, "abortUpdateMagnifier", () => {
40
40
  });
41
- var s, n, h, l, d;
41
+ var s, h, n, l, d;
42
42
  this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new u(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 });
43
43
  let r;
44
- (e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? r = new b(i) : (e == null ? void 0 : e.pointHelper) === "highlight" ? r = new o(i) : r = e.pointHelper, this.pointHelper = r, this.group.name = "five-point-selector", this.five.scene.add(this.group), (d = this.magnifier) == null || d.appendTo((l = (h = e.container) != null ? h : (n = i.getElement()) == null ? void 0 : n.parentElement) != null ? l : document.body);
44
+ (e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? r = new b(i) : (e == null ? void 0 : e.pointHelper) === "highlight" ? r = new o(i) : r = e.pointHelper, this.pointHelper = r, this.group.name = "five-point-selector", this.five.scene.add(this.group), (d = this.magnifier) == null || d.appendTo((l = (n = e.container) != null ? n : (h = i.getElement()) == null ? void 0 : h.parentElement) != null ? l : document.body);
45
45
  }
46
46
  enable() {
47
47
  var i;
48
- this.state.enabled || (this.state.enabled = !0, this.pointHelper && this.group.add(this.pointHelper), (i = this.magnifier) == null || i.enable(), this.five.needsRender = !0, this.hooks.emit("enabled"));
48
+ this.state.enabled || (this.state.enabled = !0, this.pointHelper && (this.group.add(this.pointHelper), this.pointHelper.show()), (i = this.magnifier) == null || i.enable(), this.five.needsRender = !0, this.hooks.emit("enabled"));
49
49
  }
50
50
  disable() {
51
51
  var i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.48.0",
3
+ "version": "3.48.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",