@realsee/dnalogel 3.52.2 → 3.53.0

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 (110) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.cjs.js +40 -40
  3. package/dist/index.d.ts +1 -79
  4. package/dist/index.js +1608 -1567
  5. package/dist/index.umd.js +34 -34
  6. package/dist/shared-utils/exports.d.ts +2 -0
  7. package/dist/shared-utils/five/FivePuppet.d.ts +63 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  10. package/libs/AreaMakerPlugin/Controller.js +14 -12
  11. package/libs/AreaMakerPlugin/index.js +4 -2
  12. package/libs/AreaMakerPlugin/utils/Item.js +4 -2
  13. package/libs/CSS3DRenderPlugin/Controller.js +4 -2
  14. package/libs/CSS3DRenderPlugin/index.js +7 -5
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
  17. package/libs/CruisePlugin/BaseController.js +6 -4
  18. package/libs/CruisePlugin/Move.js +4 -3
  19. package/libs/CruisePlugin/Work.js +3 -2
  20. package/libs/CruisePlugin/index.js +8 -7
  21. package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
  22. package/libs/CurrentPanoImagePlugin/index.js +5 -3
  23. package/libs/GuideLinePlugin/Controller.js +6 -5
  24. package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -3
  27. package/libs/GuideLinePlugin/index.js +8 -7
  28. package/libs/ModelMakerPlugin/Controller.js +4 -2
  29. package/libs/ModelMakerPlugin/index.js +4 -2
  30. package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
  31. package/libs/ModelTVVideoPlugin/index.js +4 -2
  32. package/libs/Object3DHelperPlugin/Controller.js +4 -2
  33. package/libs/Object3DHelperPlugin/index.js +7 -5
  34. package/libs/PanoCompassPlugin/Controller.js +3 -2
  35. package/libs/PanoCompassPlugin/index.js +4 -3
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
  37. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  38. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  41. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  42. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  43. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  44. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  45. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
  46. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  47. package/libs/PanoMeasurePlugin/index.js +14 -13
  48. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
  49. package/libs/PanoRulerProPlugin/Controller.js +11 -10
  50. package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
  51. package/libs/PanoRulerProPlugin/index.js +4 -3
  52. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  53. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  54. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  55. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  56. package/libs/PanoTagPlugin/Components/Tag/index.js +4 -3
  57. package/libs/PanoTagPlugin/Components/TagContainer.js +43 -42
  58. package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
  59. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  60. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  61. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  62. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  63. package/libs/PanoTagPlugin/controller/TagRender.js +4 -3
  64. package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
  65. package/libs/PanoTagPlugin/controller/index.js +7 -6
  66. package/libs/PanoTagPlugin/index.js +13 -12
  67. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  68. package/libs/PanoVideoPlugin/Controller.js +4 -2
  69. package/libs/PanoVideoPlugin/VideoMeshController.js +52 -50
  70. package/libs/PanoVideoPlugin/index.js +7 -5
  71. package/libs/PipelinePlugin/Controller.js +4 -2
  72. package/libs/PipelinePlugin/index.js +5 -3
  73. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  74. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
  75. package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -18
  76. package/libs/Sculpt/Meshes/Cylinder.js +6 -5
  77. package/libs/Sculpt/Meshes/Line.js +3 -2
  78. package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
  79. package/libs/Sculpt/Meshes/Point.js +6 -5
  80. package/libs/Sculpt/Meshes/Polygon.js +11 -10
  81. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  82. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  83. package/libs/Sculpt/index.js +18 -17
  84. package/libs/Sculpt/utils/export.js +5 -5
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
  86. package/libs/base/BasePlugin.js +4 -3
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +19 -17
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  95. package/libs/floorplan/index.js +1 -0
  96. package/libs/index.d.ts +1 -79
  97. package/libs/index.js +156 -170
  98. package/libs/shared-utils/exports.d.ts +2 -0
  99. package/libs/shared-utils/exports.js +82 -0
  100. package/libs/shared-utils/five/FivePuppet.d.ts +63 -0
  101. package/libs/shared-utils/five/FivePuppet.js +48 -0
  102. package/libs/shared-utils/five/index.js +3 -2
  103. package/libs/shared-utils/five/lookObject.js +3 -2
  104. package/libs/shared-utils/index.d.ts +1 -0
  105. package/libs/shared-utils/index.js +10 -78
  106. package/libs/shared-utils/logger.js +1 -1
  107. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  108. package/libs/shared-utils/tag.js +2 -0
  109. package/libs/shared-utils/three/index.js +1 -0
  110. package/package.json +2 -2
@@ -68,6 +68,8 @@ import "../../shared-utils/isNil.js";
68
68
  import "../../shared-utils/three/core/Sphere.js";
69
69
  import "animejs";
70
70
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
71
+ import "../../shared-utils/five/FivePuppet.js";
72
+ import "@realsee/five";
71
73
  import "../../shared-utils/three/PointSelector/utils/html.js";
72
74
  import "../../shared-utils/five/initialCSS3DRender.js";
73
75
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -94,8 +96,8 @@ import "../../shared-utils/nearlyEqual.js";
94
96
  import "../../shared-utils/to.js";
95
97
  import "../../shared-utils/getPxmm.js";
96
98
  import "../../shared-utils/changeModelCanvasOpacity.js";
97
- const Uo = (o, r) => new t(o, r);
99
+ const Wo = (o, r) => new t(o, r);
98
100
  export {
99
- Uo as TopviewFloorplanPlugin,
100
- Uo as default
101
+ Wo as TopviewFloorplanPlugin,
102
+ Wo as default
101
103
  };
@@ -8,4 +8,5 @@ import "@realsee/five/line";
8
8
  import "../shared-utils/three/core/Sphere.js";
9
9
  import "animejs";
10
10
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
11
+ import "../shared-utils/five/FivePuppet.js";
11
12
  import "../shared-utils/nearlyEqual.js";
package/libs/index.d.ts CHANGED
@@ -26,82 +26,4 @@ export * from './AreaMakerPlugin';
26
26
  export * from './CurrentPanoImagePlugin';
27
27
  export * from './Sculpt';
28
28
  export * from './ModelMakerPlugin';
29
- import * as _Util from './shared-utils';
30
- import * as sculpt from './Sculpt/utils/export';
31
- declare const Util: {
32
- sculpt: typeof sculpt;
33
- Interval: typeof _Util.Interval;
34
- Rectangle: typeof _Util.Rectangle;
35
- convexHull(points: import("./typings/math.type").Vector2Position[]): import("./typings/math.type").Vector2Position[];
36
- inside: typeof _Util.inside;
37
- pointInPolygon: typeof _Util.inside;
38
- tag(five: import("@realsee/five").Five, position?: import("./shared-utils/positionToVector3").AnyPosition, config?: {
39
- wrapper?: HTMLElement;
40
- positionsForRotate?: import("./shared-utils/positionToVector3").AnyPosition[];
41
- namespace?: string;
42
- }): _Util.LightTag;
43
- LightTag: typeof _Util.LightTag;
44
- checkFiveModelLoaded(five: import("@realsee/five").Five): {
45
- result: boolean;
46
- msg: string;
47
- };
48
- isPanoramaLike(mode: import("@realsee/five").Mode): boolean;
49
- isModelLike(mode: import("@realsee/five").Mode): boolean;
50
- lookObject(five: import("@realsee/five").Five, object: import("three").Object3D, config?: {
51
- scale?: number;
52
- }): Promise<void>;
53
- lookPoint(five: import("@realsee/five").Five, point: import("three").Vector3, config?: {
54
- distance?: number;
55
- }): Promise<void>;
56
- waitFiveModelLoaded(five: import("@realsee/five").Five): Promise<void>;
57
- fiveModelIsLoaded(five: import("@realsee/five").Five): boolean;
58
- FiveDomEvents: typeof _Util.FiveDomEvents;
59
- Magnifier: typeof _Util.Magnifier;
60
- getCoordsFromClient(position: {
61
- x: number;
62
- y: number;
63
- }, element: HTMLElement): import("three").Vector2;
64
- getCoordsFromElement(position: {
65
- x: number;
66
- y: number;
67
- }, element: HTMLElement): import("three").Vector2;
68
- PointSelector: typeof _Util.PointSelector;
69
- PointHelper: typeof _Util.PointHelper;
70
- PointSelectorHelper: typeof _Util.PointSelectorHelper;
71
- Object3D: typeof _Util.Object3D;
72
- LineSegments: typeof _Util.LineSegments;
73
- boxVertexes(box: {
74
- max: import("./typings/math.type").Vector3Position;
75
- min: import("./typings/math.type").Vector3Position;
76
- }): import("three").Vector3[];
77
- boxVertex(box: {
78
- max: import("./typings/math.type").Vector3Position;
79
- min: import("./typings/math.type").Vector3Position;
80
- }, index: number): import("three").Vector3;
81
- boundingBox(object3D: import("three").Object3D): import("three").Box3;
82
- boundingSphere(object3D: import("three").Object3D): import("three").Sphere;
83
- worldBoundingBox(object3D: import("three").Object3D): import("three").Box3;
84
- worldBoundingSphere(object3D: import("three").Object3D): import("three").Sphere;
85
- worldBounding<T extends "sphere" | "box3">(object3D: import("three").Object3D, boxOrSphereType: T): T extends "box3" ? import("three").Box3 : import("three").Sphere;
86
- bounding<T_1 extends "sphere" | "box3">(object3D: import("three").Object3D, boxOrSphereType: T_1): T_1 extends "box3" ? import("three").Box3 : import("three").Sphere;
87
- blink: typeof _Util.blink;
88
- reblink: typeof _Util.reblink;
89
- animeMap: Map<(HTMLElement | import("three").Object3D) | (HTMLElement | import("three").Object3D)[], _Util.AnimeInstance>;
90
- isNil<T_2>(value: T_2): value is Extract<T_2, null>;
91
- notNil<T_3>(value: T_3): value is T_3;
92
- uuid: typeof _Util.uuid;
93
- isAbsoluteURL(url: string): boolean;
94
- absoluteUrl(baseUrl: string, url: string): string;
95
- nextFrame(fn: (time: number) => void, delay?: number): void;
96
- awaitNextFrame(): Promise<void>;
97
- requestAnimationFrameInterval(callback?: (time: number) => any, frame?: number): () => void;
98
- getFrameTime(): Promise<unknown>;
99
- tweenProgress(duration?: number, easing?: (amount: number) => number): _Util.BetterTween<{
100
- progress: number;
101
- }>;
102
- BetterTween: typeof _Util.BetterTween;
103
- equal(value: any, other: any, opt?: {
104
- deep: boolean;
105
- }): boolean;
106
- };
107
- export { Util };
29
+ export * as Util from './shared-utils/exports';
package/libs/index.js CHANGED
@@ -1,84 +1,71 @@
1
- var l = Object.defineProperty, n = Object.defineProperties;
2
- var a = Object.getOwnPropertyDescriptors;
3
- var i = Object.getOwnPropertySymbols;
4
- var P = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
5
- var m = (t, o, r) => o in t ? l(t, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[o] = r, p = (t, o) => {
6
- for (var r in o || (o = {}))
7
- P.call(o, r) && m(t, r, o[r]);
8
- if (i)
9
- for (var r of i(o))
10
- f.call(o, r) && m(t, r, o[r]);
11
- return t;
12
- }, e = (t, o) => n(t, a(o));
13
- import { consoleVersion as u } from "./shared-utils/logger.js";
14
- import { autoFixOffscreenCanvas as x } from "./shared-utils/offscreenCanvas.js";
15
- import { PaintBrush as Yl } from "./components/PaintBrush/index.js";
16
- import { PaintBrushTypeEnum as Bl } from "./components/PaintBrush/typings.js";
17
- import { ModelViewPlugin as Ul } from "./ModelViewPlugin/Plugin.js";
18
- import { CSS3DRenderPlugin as kl } from "./CSS3DRenderPlugin/index.js";
19
- import { PanoCursorRaycasterPlugin as Hl } from "./PanoCursorRaycasterPlugin/index.js";
20
- import { ModelRoomLabelPlugin as $l, modelRoomLabelPluginServerParams as Wl } from "./ModelRoomLabelPlugin/index.js";
21
- import { FLOOR_PLAN_ATTACHED_TO as zl } from "./floorplan/constant.js";
22
- import { ModelFloorplanPlugin as Kl } from "./floorplan/ModelFloorplanPlugin/index.js";
23
- import { MapviewFloorplanPlugin as Xl } from "./floorplan/MapviewFloorplanPlugin/index.js";
24
- import { TopviewFloorplanPlugin as on } from "./floorplan/TopviewFloorplanPlugin/index.js";
25
- import { PanoFloorplanRadarPlugin as tn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
26
- import { FLOOR_TYPE_MAP as pn, ROOM_FETILE_TYPE_MAP as en, ROOM_TYPE_MAP as ln } from "./floorplan/typings/floorplanServerData.js";
27
- import { ModelChassisCompassPlugin as an } from "./ModelChassisCompassPlugin/Plugin.js";
28
- import { ModelEntryDoorGuidePlugin as fn } from "./ModelEntryDoorGuidePlugin/Plugin.js";
29
- import { CameraMovementPlugin as xn } from "./CameraMovementPlugin/CameraMovementPlugin.js";
30
- import { CameraMovementEffect as sn, Rotation as dn } from "./CameraMovementPlugin/typing.js";
31
- import { PanoRulerPlugin as Tn } from "./PanoRulerPlugin/Plugin.js";
32
- import { PanoRulerProPlugin as Ln } from "./PanoRulerProPlugin/index.js";
33
- import { PanoCompassPlugin as _n } from "./PanoCompassPlugin/index.js";
34
- import { PanoMeasurePlugin as En } from "./PanoMeasurePlugin/index.js";
35
- import { PanoSpatialTagPlugin as yn } from "./PanoSpatialTagPlugin/Plugin.js";
36
- import { modelItemLabelPluginServerParams as On } from "./ModelItemLabelPlugin/index.js";
37
- import { ModelTVVideoPlugin as Dn } from "./ModelTVVideoPlugin/Plugin.js";
38
- import { DIRECTION as bn } from "./ModelTVVideoPlugin/typings.js";
39
- import { itemLabelPluginServerParams as Fn } from "./ItemLabelPlugin/index.js";
40
- import { PanoDoorLabelPlugin as Vn } from "./PanoDoorLabelPlugin/index.js";
41
- import { GuideLinePlugin as Nn } from "./GuideLinePlugin/index.js";
42
- import { CruisePlugin as hn, MovePlugin as kn } from "./CruisePlugin/index.js";
43
- import { PanoTagPlugin as Hn } from "./PanoTagPlugin/index.js";
44
- import { Object3DHelperPlugin as $n } from "./Object3DHelperPlugin/index.js";
45
- import { PanoVideoPlugin as qn } from "./PanoVideoPlugin/index.js";
46
- import { PipelinePlugin as Jn } from "./PipelinePlugin/index.js";
47
- import { AreaMakerPlugin as Qn } from "./AreaMakerPlugin/index.js";
48
- import { CurrentPanoImagePlugin as Zn } from "./CurrentPanoImagePlugin/index.js";
49
- import { Sculpt as ra, SculptPlugin as ta } from "./Sculpt/index.js";
50
- import { ModelMakerPlugin as ma } from "./ModelMakerPlugin/index.js";
51
- import { _Util as g } from "./shared-utils/index.js";
52
- import { sculpt as s } from "./Sculpt/utils/export.js";
53
- import { CSS3DRender as ea } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
54
- import { Model as na } from "./PanoMeasurePlugin/Model/index.js";
55
- import { default as Pa } from "./PanoMeasurePlugin/Model/point.js";
56
- import { default as ua } from "./PanoMeasurePlugin/Model/line.js";
57
- import { Polyline as ga } from "./PanoMeasurePlugin/Model/polyline.js";
58
- import { Magnifier as da } from "./shared-utils/three/Magnifier.js";
59
- import { DISPLAY_STRATEGY_TYPE as Ta } from "./ModelItemLabelPlugin/typings.js";
60
- import { ModelItemLabelPlugin as La } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
61
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as _a } from "./ItemLabelPlugin/typings.js";
62
- import { Plugin as Ea } from "./ItemLabelPlugin/Plugin.js";
63
- import { GuideLineItem$1 as ya } from "./GuideLinePlugin/GuideLineItem/index.js";
64
- import { GuideLineModeItem$1 as Oa } from "./GuideLinePlugin/GuideLineModeItem/index.js";
65
- import { default as Da, default as Ga } from "./CruisePlugin/Work.js";
66
- import { default as va } from "./CruisePlugin/Move.js";
67
- import { typing as Ya } from "./CruisePlugin/typing/index.js";
68
- import { default as Ba, pluginFlag as Na } from "./PanoTagPlugin/controller/index.js";
69
- import { defaultGlobalConfig as ha } from "./PanoTagPlugin/typings/tag/TagConfig.js";
70
- import { ContentType as wa, DimensionType as Ha, PointType as ja } from "./PanoTagPlugin/Archive/deprecated.js";
71
- import { Object3DHelperController as Wa, PLUGIN as qa } from "./Object3DHelperPlugin/Controller.js";
72
- import { typings as Ja } from "./PanoVideoPlugin/typings/index.js";
73
- import { createPoint as Qa } from "./Sculpt/Objects/Point/index.js";
74
- import { createLine as Za } from "./Sculpt/Objects/Line/index.js";
75
- import { createPolyline as rP } from "./Sculpt/Objects/Polyline/index.js";
76
- import { createPolygon as iP } from "./Sculpt/Objects/Polygon/index.js";
77
- import { createPrism as pP } from "./Sculpt/Objects/Prism/index.js";
78
- import { createRectangle as lP } from "./Sculpt/Objects/Rectangle/index.js";
79
- import { createCircle as aP } from "./Sculpt/Objects/Circle/index.js";
80
- import { createCylinder as fP } from "./Sculpt/Objects/Cylinder/index.js";
81
- import { createBox as xP } from "./Sculpt/Objects/Box/index.js";
1
+ import { consoleVersion as o } from "./shared-utils/logger.js";
2
+ import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
+ import { PaintBrush as Cl } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as cl } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as _l } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Il } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as Sl } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Al, modelRoomLabelPluginServerParams as Dl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as bl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Fl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as Vl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Nl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as kl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as Hl, ROOM_FETILE_TYPE_MAP as Ul, ROOM_TYPE_MAP as jl } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as Wl } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as zl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as Kl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as Xl, Rotation as Zl } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as rn } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as mn } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as en } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as nn } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as Pn } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as un } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as gn } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as dn } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as Tn } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as Ln } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as Rn } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as En, MovePlugin as In } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as Sn } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as An } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as Gn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as vn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as Yn } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as Bn } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as hn, SculptPlugin as kn } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as Hn } from "./ModelMakerPlugin/index.js";
39
+ import { exports as jn } from "./shared-utils/exports.js";
40
+ import { CSS3DRender as Wn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as zn } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as Kn } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as Xn } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as oa } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as ta } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as ma } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as ea } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as na } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as Pa } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as ua } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as ga } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as da, default as Ma } from "./CruisePlugin/Work.js";
53
+ import { default as Ca } from "./CruisePlugin/Move.js";
54
+ import { typing as ca } from "./CruisePlugin/typing/index.js";
55
+ import { default as _a, pluginFlag as Ea } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as ya } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as Oa, DimensionType as Aa, PointType as Da } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as ba, PLUGIN as va } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as Ya } from "./PanoVideoPlugin/typings/index.js";
60
+ import { createPoint as Ba } from "./Sculpt/Objects/Point/index.js";
61
+ import { createLine as ha } from "./Sculpt/Objects/Line/index.js";
62
+ import { createPolyline as wa } from "./Sculpt/Objects/Polyline/index.js";
63
+ import { createPolygon as Ua } from "./Sculpt/Objects/Polygon/index.js";
64
+ import { createPrism as $a } from "./Sculpt/Objects/Prism/index.js";
65
+ import { createRectangle as qa } from "./Sculpt/Objects/Rectangle/index.js";
66
+ import { createCircle as Ja } from "./Sculpt/Objects/Circle/index.js";
67
+ import { createCylinder as Qa } from "./Sculpt/Objects/Cylinder/index.js";
68
+ import { createBox as Za } from "./Sculpt/Objects/Box/index.js";
82
69
  import "./components/PaintBrush/Controller.js";
83
70
  import "./components/PaintBrush/utils.js";
84
71
  import "./components/PaintBrush/tween.js";
@@ -119,6 +106,7 @@ import "@realsee/five/line";
119
106
  import "./shared-utils/isNil.js";
120
107
  import "./shared-utils/three/core/Sphere.js";
121
108
  import "animejs";
109
+ import "./shared-utils/five/FivePuppet.js";
122
110
  import "./shared-utils/three/PointSelector/utils/html.js";
123
111
  import "./shared-utils/five/initialCSS3DRender.js";
124
112
  import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -491,13 +479,7 @@ import "./Sculpt/Meshes/Polygon.js";
491
479
  import "./ModelMakerPlugin/utils/tagRenderer.js";
492
480
  import "./ModelMakerPlugin/utils/Text.js";
493
481
  import "./ModelMakerPlugin/item/prismItem.js";
494
- import "./shared-utils/math/Interval.js";
495
- import "./shared-utils/math/Rectangle.js";
496
- import "./shared-utils/math/convexHull.js";
497
- import "./shared-utils/math/inside.js";
498
- import "./shared-utils/five/index.js";
499
- import "./shared-utils/three/getCoords.js";
500
- import "./shared-utils/five/lookObject.js";
482
+ import "./Sculpt/utils/export.js";
501
483
  import "./Sculpt/Objects/Base/Editor.js";
502
484
  import "./Sculpt/Editors/BoxMeshEditor.js";
503
485
  import "./Sculpt/Editors/CircleMeshEditor.js";
@@ -512,6 +494,13 @@ import "./Sculpt/Meshes/Cylinder.js";
512
494
  import "./Sculpt/Meshes/Rectangle.js";
513
495
  import "./Sculpt/utils/three/RectangleGeometry.js";
514
496
  import "./Sculpt/Meshes/RectangleWithEdge.js";
497
+ import "./shared-utils/math/Interval.js";
498
+ import "./shared-utils/math/Rectangle.js";
499
+ import "./shared-utils/math/convexHull.js";
500
+ import "./shared-utils/math/inside.js";
501
+ import "./shared-utils/five/index.js";
502
+ import "./shared-utils/three/getCoords.js";
503
+ import "./shared-utils/five/lookObject.js";
515
504
  import "./Sculpt/Objects/Base/index.js";
516
505
  import "./Sculpt/Objects/Point/Editor.js";
517
506
  import "./shared-utils/three/vector3ToArray.js";
@@ -521,87 +510,84 @@ import "./Sculpt/Objects/Polyline/Editor.js";
521
510
  import "./Sculpt/Meshes/Area.js";
522
511
  import "./Sculpt/Objects/Polygon/Editor.js";
523
512
  import "./Sculpt/utils/sortPositionsByCameraPosition.js";
524
- x();
525
- u();
526
- const bl = e(p({}, g), {
527
- sculpt: s
528
- });
513
+ r();
514
+ o();
529
515
  export {
530
- Qn as AreaMakerPlugin,
531
- ea as CSS3DRender,
532
- kl as CSS3DRenderPlugin,
533
- sn as CameraMovementEffect,
534
- xn as CameraMovementPlugin,
535
- wa as ContentType,
536
- hn as CruisePlugin,
537
- Da as CruisePluginController,
538
- Ya as CruisePluginTypes,
539
- Zn as CurrentPanoImagePlugin,
540
- bn as DIRECTION,
541
- Ta as DISPLAY_STRATEGY_TYPE,
542
- Ha as DimensionType,
543
- zl as FLOOR_PLAN_ATTACHED_TO,
544
- pn as FLOOR_TYPE_MAP,
545
- ya as GuideLineItem,
546
- Oa as GuideLineModeItem,
547
- Nn as GuideLinePlugin,
548
- _a as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
549
- Ea as ItemLabelPlugin,
550
- da as Magnifier,
551
- Xl as MapviewFloorplanPlugin,
552
- an as ModelChassisCompassPlugin,
553
- fn as ModelEntryDoorGuidePlugin,
554
- Kl as ModelFloorplanPlugin,
555
- La as ModelItemLabelPlugin,
556
- ma as ModelMakerPlugin,
557
- $l as ModelRoomLabelPlugin,
558
- Dn as ModelTVVideoPlugin,
559
- Ul as ModelViewPlugin,
560
- va as MoveController,
561
- kn as MovePlugin,
562
- Wa as Object3DHelperController,
563
- $n as Object3DHelperPlugin,
564
- qa as PLUGIN,
565
- Yl as PaintBrush,
566
- Bl as PaintBrushTypeEnum,
567
- _n as PanoCompassPlugin,
568
- Hl as PanoCursorRaycasterPlugin,
569
- Vn as PanoDoorLabelPlugin,
570
- tn as PanoFloorplanRadarPlugin,
571
- En as PanoMeasurePlugin,
572
- ua as PanoMeasurePluginLine,
573
- na as PanoMeasurePluginModel,
574
- Pa as PanoMeasurePluginPoint,
575
- ga as PanoMeasurePluginPolyline,
576
- Tn as PanoRulerPlugin,
577
- Ln as PanoRulerProPlugin,
578
- yn as PanoSpatialTagPlugin,
579
- Hn as PanoTagPlugin,
580
- Ba as PanoTagPluginController,
581
- qn as PanoVideoPlugin,
582
- Ja as PanoVideoPluginType,
583
- Jn as PipelinePlugin,
584
- ja as PointType,
585
- en as ROOM_FETILE_TYPE_MAP,
586
- ln as ROOM_TYPE_MAP,
587
- dn as Rotation,
588
- ra as Sculpt,
589
- ta as SculptPlugin,
590
- on as TopviewFloorplanPlugin,
591
- bl as Util,
592
- Ga as WalkController,
593
- xP as createBox,
594
- aP as createCircle,
595
- fP as createCylinder,
596
- Za as createLine,
597
- Qa as createPoint,
598
- iP as createPolygon,
599
- rP as createPolyline,
600
- pP as createPrism,
601
- lP as createRectangle,
602
- ha as defaultGlobalConfig,
603
- Fn as itemLabelPluginServerParams,
604
- On as modelItemLabelPluginServerParams,
605
- Wl as modelRoomLabelPluginServerParams,
606
- Na as pluginFlag
516
+ Yn as AreaMakerPlugin,
517
+ Wn as CSS3DRender,
518
+ Il as CSS3DRenderPlugin,
519
+ Xl as CameraMovementEffect,
520
+ Kl as CameraMovementPlugin,
521
+ Oa as ContentType,
522
+ En as CruisePlugin,
523
+ da as CruisePluginController,
524
+ ca as CruisePluginTypes,
525
+ Bn as CurrentPanoImagePlugin,
526
+ dn as DIRECTION,
527
+ ma as DISPLAY_STRATEGY_TYPE,
528
+ Aa as DimensionType,
529
+ bl as FLOOR_PLAN_ATTACHED_TO,
530
+ Hl as FLOOR_TYPE_MAP,
531
+ ua as GuideLineItem,
532
+ ga as GuideLineModeItem,
533
+ Rn as GuideLinePlugin,
534
+ na as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
535
+ Pa as ItemLabelPlugin,
536
+ ta as Magnifier,
537
+ Vl as MapviewFloorplanPlugin,
538
+ Wl as ModelChassisCompassPlugin,
539
+ zl as ModelEntryDoorGuidePlugin,
540
+ Fl as ModelFloorplanPlugin,
541
+ ea as ModelItemLabelPlugin,
542
+ Hn as ModelMakerPlugin,
543
+ Al as ModelRoomLabelPlugin,
544
+ gn as ModelTVVideoPlugin,
545
+ _l as ModelViewPlugin,
546
+ Ca as MoveController,
547
+ In as MovePlugin,
548
+ ba as Object3DHelperController,
549
+ An as Object3DHelperPlugin,
550
+ va as PLUGIN,
551
+ Cl as PaintBrush,
552
+ cl as PaintBrushTypeEnum,
553
+ en as PanoCompassPlugin,
554
+ Sl as PanoCursorRaycasterPlugin,
555
+ Ln as PanoDoorLabelPlugin,
556
+ kl as PanoFloorplanRadarPlugin,
557
+ nn as PanoMeasurePlugin,
558
+ Xn as PanoMeasurePluginLine,
559
+ zn as PanoMeasurePluginModel,
560
+ Kn as PanoMeasurePluginPoint,
561
+ oa as PanoMeasurePluginPolyline,
562
+ rn as PanoRulerPlugin,
563
+ mn as PanoRulerProPlugin,
564
+ Pn as PanoSpatialTagPlugin,
565
+ Sn as PanoTagPlugin,
566
+ _a as PanoTagPluginController,
567
+ Gn as PanoVideoPlugin,
568
+ Ya as PanoVideoPluginType,
569
+ vn as PipelinePlugin,
570
+ Da as PointType,
571
+ Ul as ROOM_FETILE_TYPE_MAP,
572
+ jl as ROOM_TYPE_MAP,
573
+ Zl as Rotation,
574
+ hn as Sculpt,
575
+ kn as SculptPlugin,
576
+ Nl as TopviewFloorplanPlugin,
577
+ jn as Util,
578
+ Ma as WalkController,
579
+ Za as createBox,
580
+ Ja as createCircle,
581
+ Qa as createCylinder,
582
+ ha as createLine,
583
+ Ba as createPoint,
584
+ Ua as createPolygon,
585
+ wa as createPolyline,
586
+ $a as createPrism,
587
+ qa as createRectangle,
588
+ ya as defaultGlobalConfig,
589
+ Tn as itemLabelPluginServerParams,
590
+ un as modelItemLabelPluginServerParams,
591
+ Dl as modelRoomLabelPluginServerParams,
592
+ Ea as pluginFlag
607
593
  };
@@ -0,0 +1,2 @@
1
+ export * as sculpt from '../Sculpt/utils/export';
2
+ export * from '../shared-utils';
@@ -0,0 +1,82 @@
1
+ import { _export as r } from "../Sculpt/utils/export.js";
2
+ import { Interval as e } from "./math/Interval.js";
3
+ import { Rectangle as t } from "./math/Rectangle.js";
4
+ import { convexHull as i } from "./math/convexHull.js";
5
+ import { inside as o } from "./math/inside.js";
6
+ import { LightTag as m, tag as n } from "./tag.js";
7
+ import { checkFiveModelLoaded as p } from "./five/index.js";
8
+ import { Magnifier as l } from "./three/Magnifier.js";
9
+ import { getCoordsFromClient as f, getCoordsFromElement as a } from "./three/getCoords.js";
10
+ import { PointSelector as d } from "./three/PointSelector/index.js";
11
+ import { PointHelper as g } from "./three/PointSelector/utils/PointHelper.js";
12
+ import { PointSelectorHelper as s } from "./three/PointSelector/utils/PointSelectorHelper.js";
13
+ import { Object3D as u } from "./three/core/Object3D.js";
14
+ import { LineSegments as b } from "./three/core/LineSegments.js";
15
+ import { bounding as c, boundingBox as x, boundingSphere as v, boxVertex as F, boxVertexes as P, worldBounding as L, worldBoundingBox as k, worldBoundingSphere as w } from "./three/boundingBox.js";
16
+ import { animeMap as M, blink as S, reblink as B } from "./three/blink.js";
17
+ import { isNil as _, notNil as h } from "./isNil.js";
18
+ import { uuid as j } from "./uuid.js";
19
+ import { absoluteUrl as I, isAbsoluteURL as O } from "./url/absoluteUrl.js";
20
+ import { awaitNextFrame as T, getFrameTime as y, nextFrame as C, requestAnimationFrameInterval as H } from "./animationFrame/index.js";
21
+ import { equal as N } from "./equal.js";
22
+ import { FivePuppet as q } from "./five/FivePuppet.js";
23
+ import { isModelLike as A, isPanoramaLike as D } from "./five/mode.js";
24
+ import { lookObject as E } from "./five/lookObject.js";
25
+ import { lookPoint as R } from "./five/lookPoint.js";
26
+ import { fiveModelIsLoaded as U, waitFiveModelLoaded as V } from "./five/fiveModelLoad.js";
27
+ import { FiveDomEvents as z } from "./five/FiveDomEvents.js";
28
+ import { BetterTween as G, tweenProgress as J } from "./animationFrame/BetterTween.js";
29
+ const ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30
+ __proto__: null,
31
+ BetterTween: G,
32
+ FiveDomEvents: z,
33
+ FivePuppet: q,
34
+ Interval: e,
35
+ LightTag: m,
36
+ LineSegments: b,
37
+ Magnifier: l,
38
+ Object3D: u,
39
+ PointHelper: g,
40
+ PointSelector: d,
41
+ PointSelectorHelper: s,
42
+ Rectangle: t,
43
+ absoluteUrl: I,
44
+ animeMap: M,
45
+ awaitNextFrame: T,
46
+ blink: S,
47
+ bounding: c,
48
+ boundingBox: x,
49
+ boundingSphere: v,
50
+ boxVertex: F,
51
+ boxVertexes: P,
52
+ checkFiveModelLoaded: p,
53
+ convexHull: i,
54
+ equal: N,
55
+ fiveModelIsLoaded: U,
56
+ getCoordsFromClient: f,
57
+ getCoordsFromElement: a,
58
+ getFrameTime: y,
59
+ inside: o,
60
+ isAbsoluteURL: O,
61
+ isModelLike: A,
62
+ isNil: _,
63
+ isPanoramaLike: D,
64
+ lookObject: E,
65
+ lookPoint: R,
66
+ nextFrame: C,
67
+ notNil: h,
68
+ pointInPolygon: o,
69
+ reblink: B,
70
+ requestAnimationFrameInterval: H,
71
+ sculpt: r,
72
+ tag: n,
73
+ tweenProgress: J,
74
+ uuid: j,
75
+ waitFiveModelLoaded: V,
76
+ worldBounding: L,
77
+ worldBoundingBox: k,
78
+ worldBoundingSphere: w
79
+ }, Symbol.toStringTag, { value: "Module" }));
80
+ export {
81
+ ko as exports
82
+ };
@@ -0,0 +1,63 @@
1
+ import { Five } from '@realsee/five';
2
+ import * as THREE from 'three';
3
+ /**
4
+ * @description 模拟 Five 行为的 canvas,与 Five 唯一区别是 scene 是空的
5
+ * @usecase
6
+ * 当需 five 的 canvas 上层有一些额外的 Dom 元素比如平面图时,希望在这些 Dom 元素上层再绘制一些三维物体,可以
7
+ * 使用 FivePuppet,将要渲染的物体加入到 FivePuppet 的 scene 中即可。甚至可以是原本在 five 中的物体,可以使
8
+ * 用 `.clone()` 将物体克隆一份然后加入到 FivePuppet 的 scene 中。
9
+ * @example react
10
+ ```typescript
11
+ import { Util } from '@realsee/dnalogel'
12
+
13
+ function App() {
14
+ const fivePuppet = React.useRef<Util.FivePuppet>()
15
+ const five = unsafe__useFiveInstance()
16
+
17
+ React.useEffect(() => {
18
+ fivePuppet.current = new Util.FivePuppet(five, { zIndex: 20 })
19
+
20
+ const object = new THREE.Mesh(new THREE.BoxGeometry(), new THREE.MeshBasicMaterial({ color: 0xff0000 }))
21
+ fivePuppet.current.scene.add(object)
22
+
23
+ return () => {
24
+ fivePuppet.current?.destory()
25
+ }
26
+ }, [five])
27
+ }
28
+ ```
29
+ * @example javascript
30
+ ```typescript
31
+ import { Util } from '@realsee/dnalogel'
32
+
33
+ const five = new Five({
34
+ plugins: [
35
+ [(five) => new Util.FivePuppet(five), 'fivePuppet']
36
+ ],
37
+ })
38
+
39
+ const object = new THREE.Mesh(new THREE.BoxGeometry(), new THREE.MeshBasicMaterial({ color: 0xff0000 }))
40
+ five.plugins.fivePuppet.scene.add(object)
41
+ ```
42
+ */
43
+ export declare class FivePuppet {
44
+ scene: THREE.Scene;
45
+ private five;
46
+ private renderer;
47
+ private cancelRequestAnimationFrameId;
48
+ private camera;
49
+ private domInited;
50
+ private params?;
51
+ private _rendererCache;
52
+ private _cameraCache;
53
+ constructor(five: Five, params?: {
54
+ /**
55
+ * @description canvas 的 zIndex
56
+ * @default 1
57
+ */
58
+ zIndex: number;
59
+ });
60
+ animate: () => void;
61
+ stopAnimate: () => void;
62
+ destory: () => void;
63
+ }