@realsee/dnalogel 3.43.0 → 3.44.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 (158) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  5. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  6. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  8. package/dist/Sculpt/Meshes/Line.d.ts +19 -1
  9. package/dist/Sculpt/utils/color.d.ts +1 -1
  10. package/dist/index.cjs.js +102 -68
  11. package/dist/index.js +7127 -6867
  12. package/dist/index.umd.js +106 -72
  13. package/dist/shared-utils/five/getPosition.d.ts +12 -4
  14. package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  15. package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
  16. package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
  17. package/dist/shared-utils/positionToVector3.d.ts +6 -6
  18. package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
  19. package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  20. package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  21. package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  22. package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  23. package/dist/shared-utils/three/index.d.ts +2 -3
  24. package/libs/AreaMakerPlugin/Controller.js +5 -18
  25. package/libs/AreaMakerPlugin/index.js +4 -17
  26. package/libs/AreaMakerPlugin/utils/Item.js +13 -26
  27. package/libs/CSS3DRenderPlugin/Controller.js +9 -6
  28. package/libs/CSS3DRenderPlugin/index.js +12 -9
  29. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
  30. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  31. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
  32. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
  33. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  34. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
  37. package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
  38. package/libs/CruisePlugin/BaseController.js +20 -33
  39. package/libs/CruisePlugin/Move.js +25 -23
  40. package/libs/CruisePlugin/Work.js +10 -8
  41. package/libs/CruisePlugin/index.js +23 -21
  42. package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
  43. package/libs/CurrentPanoImagePlugin/index.js +5 -18
  44. package/libs/GuideLinePlugin/Controller.js +15 -13
  45. package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
  46. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
  47. package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
  48. package/libs/GuideLinePlugin/index.js +23 -21
  49. package/libs/ModelMakerPlugin/Controller.js +19 -30
  50. package/libs/ModelMakerPlugin/index.js +11 -22
  51. package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
  52. package/libs/ModelTVVideoPlugin/index.js +12 -9
  53. package/libs/Object3DHelperPlugin/Controller.js +7 -5
  54. package/libs/Object3DHelperPlugin/index.js +23 -21
  55. package/libs/PanoCompassPlugin/Controller.js +18 -15
  56. package/libs/PanoCompassPlugin/index.js +21 -18
  57. package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
  58. package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
  59. package/libs/PanoDoorLabelPlugin/index.js +5 -18
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
  62. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  63. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
  64. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  65. package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
  66. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
  67. package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
  68. package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  69. package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
  70. package/libs/PanoMeasurePlugin/Model/area.js +30 -44
  71. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
  72. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
  73. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
  74. package/libs/PanoMeasurePlugin/index.js +35 -40
  75. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
  76. package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
  77. package/libs/PanoSpatialTagPlugin/index.js +10 -7
  78. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
  82. package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +56 -64
  84. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
  85. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
  86. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
  87. package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
  88. package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
  89. package/libs/PanoTagPlugin/controller/index.js +27 -25
  90. package/libs/PanoTagPlugin/index.js +28 -26
  91. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
  92. package/libs/PanoVideoPlugin/Controller.js +52 -65
  93. package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
  94. package/libs/PanoVideoPlugin/index.js +8 -21
  95. package/libs/PipelinePlugin/Controller.js +44 -57
  96. package/libs/PipelinePlugin/index.js +5 -18
  97. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
  98. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
  99. package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
  100. package/libs/Sculpt/Meshes/Box.js +3 -3
  101. package/libs/Sculpt/Meshes/Cylinder.js +14 -14
  102. package/libs/Sculpt/Meshes/Line.d.ts +19 -1
  103. package/libs/Sculpt/Meshes/Line.js +40 -41
  104. package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
  105. package/libs/Sculpt/Meshes/Point.js +3 -3
  106. package/libs/Sculpt/Meshes/Polyline.js +3 -3
  107. package/libs/Sculpt/Meshes/Prism.js +11 -12
  108. package/libs/Sculpt/Meshes/Rectangle.js +3 -3
  109. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  110. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  111. package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
  112. package/libs/Sculpt/index.js +3 -3
  113. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  114. package/libs/Sculpt/utils/color.d.ts +1 -1
  115. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
  116. package/libs/base/BasePlugin.js +4 -4
  117. package/libs/floorplan/Components/Compass.js +29 -31
  118. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
  119. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
  120. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
  121. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
  122. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
  123. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
  124. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
  125. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
  126. package/libs/floorplan/index.js +3 -3
  127. package/libs/index.js +140 -137
  128. package/libs/shared-utils/five/getPosition.d.ts +12 -4
  129. package/libs/shared-utils/five/getPosition.js +23 -23
  130. package/libs/shared-utils/five/index.js +2 -2
  131. package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  132. package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
  133. package/libs/shared-utils/five/lookObject.js +3 -3
  134. package/libs/shared-utils/index.js +38 -40
  135. package/libs/shared-utils/logger.js +1 -1
  136. package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
  137. package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
  138. package/libs/shared-utils/positionToVector3.d.ts +6 -6
  139. package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
  140. package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
  141. package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  142. package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
  143. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
  145. package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  146. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
  147. package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
  148. package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  149. package/libs/shared-utils/three/index.d.ts +2 -3
  150. package/libs/shared-utils/three/index.js +3 -3
  151. package/package.json +3 -3
  152. package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
  153. package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
  154. package/libs/shared-utils/three/PointDomHelper.js +0 -62
  155. package/libs/shared-utils/three/PointHelper.js +0 -73
  156. package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
  157. /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
  158. /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as pr } from "./controller/index.js";
3
- import { defaultGlobalConfig as mr } from "./typings/tag/TagConfig.js";
4
- import { ContentType as er, DimensionType as lr, PointType as ar } from "./Archive/deprecated.js";
2
+ import { pluginFlag as mr } from "./controller/index.js";
3
+ import { defaultGlobalConfig as er } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as ar, DimensionType as fr, PointType as gr } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
7
  import "./utils/addDebugPoints.js";
@@ -72,23 +72,10 @@ import "../vendor/svelte-carousel/src/utils/interval.js";
72
72
  import "./Components/Common/MediaItem.js";
73
73
  import "./Components/Tag/MarketingTag.js";
74
74
  import "hammerjs";
75
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
76
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
77
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
78
75
  import "three/examples/jsm/renderers/CSS3DRenderer";
79
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
80
- import "../shared-utils/util.js";
81
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
82
- import "../CSS3DRenderPlugin/utils/even.js";
83
- import "../shared-utils/Subscribe.js";
84
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
85
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
86
- import "../shared-utils/three/centerPoint.js";
87
- import "../shared-utils/three/getObjectVisible.js";
88
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
89
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
90
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
76
+ import "@realsee/five/line";
91
77
  import "../shared-utils/three/THREESphere.js";
78
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
92
79
  import "./utils/noTypecheck.js";
93
80
  import "./Components/Tag/AudioTag/index.js";
94
81
  import "./Components/Tag/AudioTag/AudioTag.js";
@@ -108,6 +95,7 @@ import "../shared-utils/three/GLTFLoader.js";
108
95
  import "@realsee/five/gltf-loader";
109
96
  import "./utils/planeNormal.js";
110
97
  import "./utils/model/mediaPlane.js";
98
+ import "../shared-utils/three/centerPoint.js";
111
99
  import "../shared-utils/three/loadTexture.js";
112
100
  import "../shared-utils/three/Quadrangle.js";
113
101
  import "../shared-utils/math/pointsIsRectangle.js";
@@ -117,12 +105,14 @@ import "../shared-utils/three/getPositionsByObjectFit.js";
117
105
  import "../shared-utils/three/FragmentTransparencyMaterial.js";
118
106
  import "../shared-utils/three/getNormal.js";
119
107
  import "./controller/Tag/BaseTag.js";
108
+ import "../shared-utils/Subscribe.js";
120
109
  import "./utils/tag/calculateTagConfig.js";
121
110
  import "../shared-utils/typescript/entries.js";
122
111
  import "./utils/tag/adaptConfig.js";
123
112
  import "@realsee/five";
124
113
  import "../shared-utils/five/mode.js";
125
114
  import "../shared-utils/three/blink.js";
115
+ import "../shared-utils/util.js";
126
116
  import "../shared-utils/vectorToCoordinate.js";
127
117
  import "../shared-utils/formatRad.js";
128
118
  import "../shared-utils/five/transformPosition.js";
@@ -144,6 +134,18 @@ import "./utils/normalPositionToPositions.js";
144
134
  import "../vendor/svelte/store/index.js";
145
135
  import "../CSS3DRenderPlugin/index.js";
146
136
  import "../CSS3DRenderPlugin/Controller.js";
137
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
138
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
139
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
140
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
141
+ import "../CSS3DRenderPlugin/utils/even.js";
142
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
143
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
144
+ import "../shared-utils/three/getObjectVisible.js";
145
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
146
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
147
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
148
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
147
149
  import "../shared-utils/url/absoluteUrl.js";
148
150
  import "../shared-utils/five/fiveModelLoad.js";
149
151
  import "../shared-utils/five/FiveDomEvents.js";
@@ -159,14 +161,14 @@ import "./Components/TagContainer.js";
159
161
  import "./Components/TagItem.js";
160
162
  import "./Components/Common/TagPoint.js";
161
163
  import "../shared-utils/animationFrame/BetterTween.js";
162
- const or = (o, t) => new r(o, t);
164
+ const rr = (o, t) => new r(o, t);
163
165
  export {
164
- er as ContentType,
165
- lr as DimensionType,
166
- or as PanoTagPlugin,
166
+ ar as ContentType,
167
+ fr as DimensionType,
168
+ rr as PanoTagPlugin,
167
169
  r as PanoTagPluginController,
168
- ar as PointType,
169
- or as default,
170
- mr as defaultGlobalConfig,
171
- pr as pluginFlag
170
+ gr as PointType,
171
+ rr as default,
172
+ er as defaultGlobalConfig,
173
+ mr as pluginFlag
172
174
  };
@@ -2,15 +2,15 @@ var z = Object.defineProperty, B = Object.defineProperties;
2
2
  var H = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
4
  var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var x = (o, i, e) => i in o ? z(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, F = (o, i) => {
6
- for (var e in i || (i = {}))
7
- J.call(i, e) && x(o, e, i[e]);
5
+ var x = (e, o, i) => o in e ? z(e, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[o] = i, F = (e, o) => {
6
+ for (var i in o || (o = {}))
7
+ J.call(o, i) && x(e, i, o[i]);
8
8
  if (E)
9
- for (var e of E(i))
10
- K.call(i, e) && x(o, e, i[e]);
11
- return o;
12
- }, _ = (o, i) => B(o, H(i));
13
- import { objectAssignDeepExports as l } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
9
+ for (var i of E(o))
10
+ K.call(o, i) && x(e, i, o[i]);
11
+ return e;
12
+ }, _ = (e, o) => B(e, H(o));
13
+ import { objectAssignDeepExports as d } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
14
14
  import { entries as I } from "../../../shared-utils/typescript/entries.js";
15
15
  import P from "./adaptConfig.js";
16
16
  import { defaultGlobalConfig as N } from "../../typings/tag/TagConfig.js";
@@ -18,70 +18,56 @@ import { Five as Q } from "@realsee/five";
18
18
  import { isPanoramaLike as R, isModelLike as S } from "../../../shared-utils/five/mode.js";
19
19
  import "three";
20
20
  import "hammerjs";
21
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
22
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
23
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
21
+ import "three/examples/jsm/renderers/CSS3DRenderer";
22
+ import "@realsee/five/line";
24
23
  import "../../../shared-utils/three/THREESphere.js";
25
24
  import "animejs";
26
- import "../../../shared-utils/positionToVector3.js";
27
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
28
- import "three/examples/jsm/renderers/CSS3DRenderer";
29
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
30
- import "../../../shared-utils/util.js";
31
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
32
- import "../../../CSS3DRenderPlugin/utils/even.js";
33
- import "../../../shared-utils/Subscribe.js";
34
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
35
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
36
- import "../../../shared-utils/three/centerPoint.js";
37
- import "../../../shared-utils/three/getObjectVisible.js";
38
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
39
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
40
- function Co(o, i, e) {
25
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
+ function fe(e, o, i) {
41
27
  var v, b, j, C, A;
42
- const D = (v = e == null ? void 0 : e.useCache) != null ? v : !0;
43
- if (!o)
44
- return (b = i.globalConfig) != null ? b : {};
28
+ const D = (v = i == null ? void 0 : i.useCache) != null ? v : !0;
29
+ if (!e)
30
+ return (b = o.globalConfig) != null ? b : {};
45
31
  if (D) {
46
- if ((j = o == null ? void 0 : o.computedConfig) != null && j._isMerged)
47
- return o.computedConfig;
48
- if ((C = o == null ? void 0 : o.config) != null && C._isMerged)
49
- return o.config;
32
+ if ((j = e == null ? void 0 : e.computedConfig) != null && j._isMerged)
33
+ return e.computedConfig;
34
+ if ((C = e == null ? void 0 : e.config) != null && C._isMerged)
35
+ return e.config;
50
36
  }
51
- const k = {}, d = {}, y = {};
52
- i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([n, r]) => {
37
+ const k = {}, y = {}, h = {};
38
+ o.contentTypeConfig && Object.entries(o.contentTypeConfig).forEach(([n, c]) => {
53
39
  var O, W;
54
- const t = n, a = t.split("-"), g = n.startsWith("["), s = g ? a[0].slice(1, -1) : void 0, p = g ? a.slice(1) : a, f = s ? ["PanoramaLike", "ModelLike"].includes(s) ? (O = d[s]) != null ? O : d[s] = {} : (W = y[s]) != null ? W : y[s] = {} : k;
55
- if (!f[t]) {
56
- if (p.length === 0 && (f[t] = r), p.length === 1) {
57
- const [c] = p;
58
- (o.contentType === c || c === "Any") && (f[t] = r);
40
+ const t = n, a = t.split("-"), g = n.startsWith("["), f = g ? a[0].slice(1, -1) : void 0, s = g ? a.slice(1) : a, p = f ? ["PanoramaLike", "ModelLike"].includes(f) ? (O = y[f]) != null ? O : y[f] = {} : (W = h[f]) != null ? W : h[f] = {} : k;
41
+ if (!p[t]) {
42
+ if (s.length === 0 && (p[t] = c), s.length === 1) {
43
+ const [r] = s;
44
+ (e.contentType === r || r === "Any") && (p[t] = c);
59
45
  }
60
- if (p.length === 2) {
61
- const [c = "Any", u = "Any"] = p;
62
- c === "Mixin" && o.contentType === u && (f[t] = r), (o.stickType === c || c === "Any") && (o.contentType === u || u === "Any") && (f[t] = r);
46
+ if (s.length === 2) {
47
+ const [r = "Any", l = "Any"] = s;
48
+ r === "Mixin" && e.contentType === l && (p[t] = c), (e.stickType === r || r === "Any") && (e.contentType === l || l === "Any") && (p[t] = c);
63
49
  }
64
- if (p.length === 3) {
65
- const [c = "Any", u, w] = p;
66
- if (u === "Audio" && o.contentType === "Audio") {
67
- const L = o;
68
- (L.stickType === c || c === "Any") && L.data.appearance === w && (f[t] = r);
50
+ if (s.length === 3) {
51
+ const [r = "Any", l, w] = s;
52
+ if (l === "Audio" && e.contentType === "Audio") {
53
+ const L = e;
54
+ (L.stickType === r || r === "Any") && L.data.appearance === w && (p[t] = c);
69
55
  }
70
56
  }
71
57
  }
72
58
  });
73
- const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), m = {}, q = Object.values(Q.Mode);
74
- I(d).forEach(([n, r]) => {
59
+ const M = (A = e.initialConfig) != null ? A : {}, m = d({}, N, o.globalConfig, ...Object.values(k)), G = d({}, m, M), u = {}, q = Object.values(Q.Mode);
60
+ I(y).forEach(([n, c]) => {
75
61
  q.forEach((t) => {
76
- (n === "PanoramaLike" && R(t) || n === "ModelLike" && S(t)) && (m[t] = l({}, M, ...Object.values(r), h, { _isMerged: !0 }));
62
+ (n === "PanoramaLike" && R(t) || n === "ModelLike" && S(t)) && (u[t] = d({}, m, ...Object.values(c), M, { _isMerged: !0 }));
77
63
  });
78
- }), I(y).forEach(([n, r]) => {
79
- const t = m[n];
80
- m[n] = l({}, M, t, ...Object.values(r), h, { _isMerged: !0 });
64
+ }), I(h).forEach(([n, c]) => {
65
+ const t = u[n];
66
+ u[n] = d({}, m, t, ...Object.values(c), M, { _isMerged: !0 });
81
67
  });
82
- const T = _(F({}, G), { configWithFiveMode: m });
83
- return P(T), Object.values(m).forEach((n) => P(n)), T._isMerged = !0, T;
68
+ const T = _(F({}, G), { configWithFiveMode: u });
69
+ return P(T), Object.values(u).forEach((n) => P(n)), T._isMerged = !0, T;
84
70
  }
85
71
  export {
86
- Co as calculateTagConfig
72
+ fe as calculateTagConfig
87
73
  };
@@ -1,51 +1,38 @@
1
- var f = Object.defineProperty, m = Object.defineProperties;
2
- var b = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
1
+ var f = Object.defineProperty, b = Object.defineProperties;
2
+ var m = Object.getOwnPropertyDescriptors;
3
+ var c = Object.getOwnPropertySymbols;
4
4
  var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var l = (o, t, r) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, a = (o, t) => {
6
- for (var r in t || (t = {}))
7
- M.call(t, r) && l(o, r, t[r]);
8
- if (p)
9
- for (var r of p(t))
10
- W.call(t, r) && l(o, r, t[r]);
5
+ var l = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
6
+ for (var e in t || (t = {}))
7
+ M.call(t, e) && l(o, e, t[e]);
8
+ if (c)
9
+ for (var e of c(t))
10
+ W.call(t, e) && l(o, e, t[e]);
11
11
  return o;
12
- }, d = (o, t) => m(o, b(t));
13
- var s = (o, t, r) => (l(o, typeof t != "symbol" ? t + "" : t, r), r);
14
- import { VideoMeshController as c } from "./VideoMeshController.js";
12
+ }, d = (o, t) => b(o, m(t));
13
+ var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
14
+ import { VideoMeshController as p } from "./VideoMeshController.js";
15
15
  import { Controller as _ } from "../base/BasePlugin.js";
16
16
  import "./utils/shader.js";
17
17
  import "three";
18
18
  import "hammerjs";
19
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
20
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
21
- import "../shared-utils/positionToVector3.js";
22
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
23
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
24
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
25
- import "../shared-utils/util.js";
26
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
27
- import "../CSS3DRenderPlugin/utils/even.js";
28
- import "../shared-utils/Subscribe.js";
29
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
30
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
31
- import "../shared-utils/three/centerPoint.js";
32
- import "../shared-utils/three/getObjectVisible.js";
33
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
34
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
35
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
20
+ import "@realsee/five/line";
36
21
  import "../shared-utils/three/THREESphere.js";
37
22
  import "animejs";
38
23
  import "../shared-utils/animationFrame/index.js";
24
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
39
25
  import "./utils/index.js";
26
+ import "../shared-utils/Subscribe.js";
40
27
  import "../shared-utils/Utils/FiveUtil.js";
41
28
  import "../shared-utils/Utils/BaseUtil.js";
42
29
  import "../shared-utils/Utils/WorkUtil.js";
43
30
  import "../shared-utils/five/transformPosition.js";
44
31
  import "../shared-utils/five/getFiveModel.js";
45
32
  import "../shared-utils/url/absoluteUrl.js";
46
- class rr extends _ {
47
- constructor(r) {
48
- super(r);
33
+ class F extends _ {
34
+ constructor(e) {
35
+ super(e);
49
36
  s(this, "controllerMap", /* @__PURE__ */ new Map());
50
37
  s(this, "data");
51
38
  s(this, "enabled", !0);
@@ -62,16 +49,16 @@ class rr extends _ {
62
49
  return this._disposed;
63
50
  }
64
51
  /** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
65
- load(r, e) {
52
+ load(e, r) {
66
53
  var i;
67
54
  if (this.disposed)
68
55
  return this.logWarning("插件已被销毁");
69
- typeof ((i = e == null ? void 0 : e.initialState) == null ? void 0 : i.enabled) != "undefined" && e.initialState.enabled !== this.enabled && (e.initialState.enabled ? this.enable() : this.disable()), r.list.forEach((n) => {
56
+ typeof ((i = r == null ? void 0 : r.initialState) == null ? void 0 : i.enabled) != "undefined" && r.initialState.enabled !== this.enabled && (r.initialState.enabled ? this.enable() : this.disable()), e.list.forEach((n) => {
70
57
  const u = n.pano_index, g = n.render_id;
71
58
  n.video_list.forEach((h) => {
72
59
  this.controllerMap.set(
73
60
  h.render_id,
74
- new c(this.five, d(a({}, h), {
61
+ new p(this.five, d(a({}, h), {
75
62
  panoIndex: u,
76
63
  renderID: g,
77
64
  hooks: this.hooks,
@@ -79,41 +66,41 @@ class rr extends _ {
79
66
  }))
80
67
  );
81
68
  });
82
- }), this.data = r, this.hooks.emit("dataLoaded", r);
69
+ }), this.data = e, this.hooks.emit("dataLoaded", e);
83
70
  }
84
71
  /** 开启插件功能。 */
85
- enable(r) {
72
+ enable(e) {
86
73
  var i;
87
74
  if (this.disposed)
88
75
  return this.logWarning("插件已被销毁");
89
76
  if (this.enabled)
90
77
  return;
91
78
  this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
92
- const e = (i = r == null ? void 0 : r.userAction) != null ? i : !0;
93
- this.hooks.emit("enable", { userAction: e });
79
+ const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
80
+ this.hooks.emit("enable", { userAction: r });
94
81
  }
95
82
  /** 禁用插件功能。 */
96
- disable(r) {
83
+ disable(e) {
97
84
  var i;
98
85
  if (this.disposed)
99
86
  return this.logWarning("插件已被销毁");
100
87
  if (!this.enabled)
101
88
  return;
102
89
  this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
103
- const e = (i = r == null ? void 0 : r.userAction) != null ? i : !0;
104
- this.hooks.emit("disable", { userAction: e });
90
+ const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
91
+ this.hooks.emit("disable", { userAction: r });
105
92
  }
106
93
  /** 看向某个视频。
107
94
  * - 会自动切换到全景模式。
108
95
  * - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
109
96
  */
110
- lookAtVideoItemByRenderID(r) {
97
+ lookAtVideoItemByRenderID(e) {
111
98
  if (this.disposed)
112
99
  return this.logWarning("插件已被销毁");
113
- const e = this.controllerMap.get(r);
114
- if (!e)
115
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
116
- e.lookAtVideo();
100
+ const r = this.controllerMap.get(e);
101
+ if (!r)
102
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
103
+ r.lookAtVideo();
117
104
  }
118
105
  /**
119
106
  * 取消静音。
@@ -131,26 +118,26 @@ class rr extends _ {
131
118
  * }}
132
119
  * ```
133
120
  */
134
- unmuteByRenderID(r) {
121
+ unmuteByRenderID(e) {
135
122
  if (this.disposed)
136
123
  return this.logWarning("插件已被销毁");
137
- const e = this.controllerMap.get(r);
138
- if (!e)
139
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
140
- e.unmute();
124
+ const r = this.controllerMap.get(e);
125
+ if (!r)
126
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
127
+ r.unmute();
141
128
  }
142
129
  /** 为一个点位添加视频(可以是多条)。 */
143
- add(r, e) {
130
+ add(e, r) {
144
131
  if (this.disposed)
145
132
  return this.logWarning("插件已被销毁");
146
- e.forEach((i) => {
133
+ r.forEach((i) => {
147
134
  if (this.controllerMap.get(i.render_id))
148
135
  return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
149
136
  const n = i.render_id;
150
137
  this.controllerMap.set(
151
138
  i.render_id,
152
- new c(this.five, d(a({}, i), {
153
- panoIndex: r,
139
+ new p(this.five, d(a({}, i), {
140
+ panoIndex: e,
154
141
  renderID: n,
155
142
  hooks: this.hooks,
156
143
  initialState: { enabled: this.enabled }
@@ -159,32 +146,32 @@ class rr extends _ {
159
146
  });
160
147
  }
161
148
  /** 根据 VideoItem render_id 删除某个视频。 */
162
- removeByRenderID(r) {
149
+ removeByRenderID(e) {
163
150
  if (this.disposed)
164
151
  return this.logWarning("插件已被销毁");
165
- const e = this.controllerMap.get(r);
166
- if (!e)
167
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
168
- e.dispose(), this.controllerMap.delete(r);
152
+ const r = this.controllerMap.get(e);
153
+ if (!r)
154
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
155
+ r.dispose(), this.controllerMap.delete(e);
169
156
  }
170
157
  /** 清空现有数据 */
171
158
  clear() {
172
159
  if (this.disposed)
173
160
  return this.logWarning("插件已被销毁");
174
- Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
161
+ Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
175
162
  }
176
163
  /** 销毁插件 */
177
164
  dispose() {
178
165
  if (this.disposed)
179
166
  return this.logWarning("插件已被销毁");
180
- this._disposed = !0, Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
167
+ this._disposed = !0, Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
181
168
  }
182
169
  /** 控制台打印警告 */
183
170
  // TODO: 全局函数 curry 化
184
- logWarning(r) {
185
- console.warn("⛔ ==> [PanoVideoPluginController]:", r);
171
+ logWarning(e) {
172
+ console.warn("⛔ ==> [PanoVideoPluginController]:", e);
186
173
  }
187
174
  }
188
175
  export {
189
- rr as PanoVideoPluginController
176
+ F as PanoVideoPluginController
190
177
  };
@@ -4,28 +4,14 @@ var t = (v, e, i) => (I(v, typeof e != "symbol" ? e + "" : e, i), i);
4
4
  import { vertexShader as M, fragmentShader as P } from "./utils/shader.js";
5
5
  import { VideoTexture as F, LinearFilter as m, ShaderMaterial as y, Vector4 as x, SphereBufferGeometry as L, Mesh as V, Vector3 as l, Quaternion as b } from "three";
6
6
  import "hammerjs";
7
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
8
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
9
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
7
+ import "three/examples/jsm/renderers/CSS3DRenderer";
8
+ import "@realsee/five/line";
10
9
  import "../shared-utils/three/THREESphere.js";
11
10
  import A from "animejs";
12
11
  import { requestAnimationFrameInterval as D } from "../shared-utils/animationFrame/index.js";
13
12
  import E from "./utils/index.js";
14
- import "../shared-utils/positionToVector3.js";
15
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
16
- import "three/examples/jsm/renderers/CSS3DRenderer";
17
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
18
- import "../shared-utils/util.js";
19
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
20
- import "../CSS3DRenderPlugin/utils/even.js";
21
- import "../shared-utils/Subscribe.js";
22
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
23
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
24
- import "../shared-utils/three/centerPoint.js";
25
- import "../shared-utils/three/getObjectVisible.js";
26
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
27
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
28
- class ie {
13
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
14
+ class z {
29
15
  /** 初始化视频、模型以及相关事件监听。 */
30
16
  constructor(e, i) {
31
17
  t(this, "video");
@@ -64,18 +50,18 @@ class ie {
64
50
  });
65
51
  /** 把 uv 值转换成位置 */
66
52
  t(this, "uv2Position", (e, i) => {
67
- var c;
53
+ var p;
68
54
  const n = Math.PI, a = Math.PI * 2, d = e, s = 1 - i, r = new l(
69
55
  -1 * Math.cos(a * d) * Math.sin(n * s),
70
56
  1 * Math.cos(n * s),
71
57
  1 * Math.sin(a * d) * Math.sin(n * s)
72
58
  );
73
59
  r.setX(-r.x);
74
- const h = (c = this.five.work) == null ? void 0 : c.observers[this.panoIndex];
60
+ const h = (p = this.five.work) == null ? void 0 : p.observers[this.panoIndex];
75
61
  if (!h)
76
62
  return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
77
- const f = h.position.clone(), p = h.quaternion.clone(), u = r.clone();
78
- return u.applyAxisAngle(new l(0, 1, 0), Math.PI / 2), u.applyQuaternion(p), u.add(f), u;
63
+ const f = h.position.clone(), c = h.quaternion.clone(), u = r.clone();
64
+ return u.applyAxisAngle(new l(0, 1, 0), Math.PI / 2), u.applyQuaternion(c), u.add(f), u;
79
65
  });
80
66
  /** Five 数据加载后需要根据点位位姿调整点位模型位置 */
81
67
  t(this, "onFiveDataLoaded", () => {
@@ -296,10 +282,10 @@ class ie {
296
282
  checkIntersectionInBounding(e, i) {
297
283
  if (!i.uv)
298
284
  return !1;
299
- const [o, n] = i.uv.toArray(), [a, d, s, r] = e, h = 1 - d - r, f = a + s, p = h + r;
300
- return o >= a && o <= f && n >= h && n <= p;
285
+ const [o, n] = i.uv.toArray(), [a, d, s, r] = e, h = 1 - d - r, f = a + s, c = h + r;
286
+ return o >= a && o <= f && n >= h && n <= c;
301
287
  }
302
288
  }
303
289
  export {
304
- ie as VideoMeshController
290
+ z as VideoMeshController
305
291
  };
@@ -1,40 +1,27 @@
1
1
  import { PanoVideoPluginController as r } from "./Controller.js";
2
- import { typings as J } from "./typings/index.js";
2
+ import { typings as j } from "./typings/index.js";
3
3
  import "./VideoMeshController.js";
4
4
  import "./utils/shader.js";
5
5
  import "three";
6
6
  import "hammerjs";
7
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
8
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
9
- import "../shared-utils/positionToVector3.js";
10
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
12
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
13
- import "../shared-utils/util.js";
14
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
15
- import "../CSS3DRenderPlugin/utils/even.js";
16
- import "../shared-utils/Subscribe.js";
17
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
18
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
19
- import "../shared-utils/three/centerPoint.js";
20
- import "../shared-utils/three/getObjectVisible.js";
21
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
22
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
23
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
8
+ import "@realsee/five/line";
24
9
  import "../shared-utils/three/THREESphere.js";
25
10
  import "animejs";
26
11
  import "../shared-utils/animationFrame/index.js";
12
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
13
  import "./utils/index.js";
28
14
  import "../base/BasePlugin.js";
15
+ import "../shared-utils/Subscribe.js";
29
16
  import "../shared-utils/Utils/FiveUtil.js";
30
17
  import "../shared-utils/Utils/BaseUtil.js";
31
18
  import "../shared-utils/Utils/WorkUtil.js";
32
19
  import "../shared-utils/five/transformPosition.js";
33
20
  import "../shared-utils/five/getFiveModel.js";
34
21
  import "../shared-utils/url/absoluteUrl.js";
35
- const G = (o) => new r(o);
22
+ const T = (o) => new r(o);
36
23
  export {
37
- G as PanoVideoPlugin,
38
- J as PanoVideoPluginType,
39
- G as default
24
+ T as PanoVideoPlugin,
25
+ j as PanoVideoPluginType,
26
+ T as default
40
27
  };