@realsee/dnalogel 2.11.0 → 2.11.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 (281) hide show
  1. package/dist/ModelRoomLabelPlugin/Controller.d.ts +2 -0
  2. package/dist/index.cjs.js +24 -24
  3. package/dist/index.js +269 -264
  4. package/dist/index.umd.js +29 -29
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +25 -25
  7. package/docs/classes/Magnifier.html +20 -20
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +25 -25
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  12. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  13. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  14. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  15. package/docs/classes/PanoTagPluginController.html +47 -47
  16. package/docs/classes/Util.BetterTween.html +8 -8
  17. package/docs/classes/Util.FivePointSelector.html +12 -12
  18. package/docs/classes/Util.Interval.html +12 -12
  19. package/docs/classes/Util.Magnifier.html +17 -17
  20. package/docs/classes/Util.PointDomHelper.html +11 -11
  21. package/docs/classes/Util.PointHelper.html +11 -11
  22. package/docs/classes/Util.Rectangle.html +13 -13
  23. package/docs/enums/CameraMovementEffect.html +7 -7
  24. package/docs/enums/ContentType.html +19 -19
  25. package/docs/enums/DIRECTION.html +9 -9
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/DimensionType.html +7 -7
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  31. package/docs/enums/PointType.html +7 -7
  32. package/docs/enums/Rotation.html +8 -8
  33. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  34. package/docs/functions/CameraMovementPlugin.html +4 -4
  35. package/docs/functions/CruisePlugin.html +4 -4
  36. package/docs/functions/GuideLinePlugin.html +5 -5
  37. package/docs/functions/ItemLabelPlugin.html +4 -4
  38. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  39. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  40. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  41. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  42. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  43. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  44. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  45. package/docs/functions/ModelViewPlugin.html +4 -4
  46. package/docs/functions/Object3DHelperPlugin.html +4 -4
  47. package/docs/functions/PanoCompassPlugin.html +4 -4
  48. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  49. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  50. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  51. package/docs/functions/PanoMeasurePlugin.html +4 -4
  52. package/docs/functions/PanoRulerPlugin.html +4 -4
  53. package/docs/functions/PanoRulerProPlugin.html +4 -4
  54. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  55. package/docs/functions/PanoTagPlugin.html +4 -4
  56. package/docs/functions/PanoVideoPlugin.html +4 -4
  57. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  58. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  59. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  60. package/docs/functions/Util.getFrameTime.html +5 -5
  61. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  62. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  63. package/docs/functions/Util.isNil.html +5 -5
  64. package/docs/functions/Util.nextFrame.html +5 -5
  65. package/docs/functions/Util.notNil.html +5 -5
  66. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  67. package/docs/functions/Util.tweenProgress.html +5 -5
  68. package/docs/functions/pluginFlag.html +5 -5
  69. package/docs/index.html +4 -4
  70. package/docs/interfaces/AddTagConfig.html +6 -6
  71. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  72. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  73. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  74. package/docs/interfaces/EventMap.html +15 -15
  75. package/docs/interfaces/FloorplanBounding.html +8 -8
  76. package/docs/interfaces/FloorplanData.html +10 -10
  77. package/docs/interfaces/FloorplanEntrance.html +11 -11
  78. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  79. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  80. package/docs/interfaces/FloorplanFloorData.html +9 -9
  81. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  82. package/docs/interfaces/FloorplanObserver.html +9 -9
  83. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  84. package/docs/interfaces/FloorplanPosition.html +7 -7
  85. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  86. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  87. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  88. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  89. package/docs/interfaces/FloorplanServerData.html +7 -7
  90. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  91. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  92. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  93. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  94. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  95. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  96. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  97. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  98. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  99. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  100. package/docs/interfaces/HelperOffset.html +8 -8
  101. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  102. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  103. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  104. package/docs/interfaces/MinMax.html +7 -7
  105. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  106. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  107. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  108. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  109. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  110. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  112. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  113. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  115. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  116. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  117. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  118. package/docs/interfaces/Object3DHelperState.html +8 -8
  119. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  120. package/docs/interfaces/PaintBrushAction.html +12 -12
  121. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  122. package/docs/interfaces/PaintBrushState.html +10 -10
  123. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  125. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  126. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  127. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  128. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  129. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  130. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  131. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  136. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  146. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  147. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  148. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  149. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  150. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  151. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  152. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/Room.html +9 -9
  155. package/docs/interfaces/RoomInfo.html +7 -7
  156. package/docs/interfaces/RoomLabel.html +14 -14
  157. package/docs/interfaces/RoomRules.html +5 -5
  158. package/docs/interfaces/Rooms.html +5 -5
  159. package/docs/interfaces/Scissor.html +9 -9
  160. package/docs/interfaces/State.html +8 -8
  161. package/docs/interfaces/TagCache.html +12 -12
  162. package/docs/interfaces/TagConfig.html +10 -10
  163. package/docs/interfaces/TagIconUrl.html +11 -11
  164. package/docs/interfaces/TagStyle.html +6 -6
  165. package/docs/interfaces/Tags.html +9 -9
  166. package/docs/interfaces/TemporaryState.html +6 -6
  167. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  168. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  169. package/docs/modules/PanoVideoPluginType.html +5 -5
  170. package/docs/modules/Util.html +5 -5
  171. package/docs/modules.html +4 -4
  172. package/docs/types/ArrayPosition.html +5 -5
  173. package/docs/types/AudioAppearance.html +5 -5
  174. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  175. package/docs/types/CSS3DRenderExportType.html +5 -5
  176. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  177. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  178. package/docs/types/ClassFunctionParameters.html +5 -5
  179. package/docs/types/Color.html +5 -5
  180. package/docs/types/ContentTypeConfigKey.html +5 -5
  181. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  182. package/docs/types/ContentTypeMap.html +5 -5
  183. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  184. package/docs/types/Create3DElementReturnType.html +5 -5
  185. package/docs/types/CruisePluginExportType.html +5 -5
  186. package/docs/types/Direction-1.html +5 -5
  187. package/docs/types/Direction4.html +5 -5
  188. package/docs/types/FloorplanRuleLabels.html +5 -5
  189. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  190. package/docs/types/GuideLinePluginExportType.html +5 -5
  191. package/docs/types/HelperEventMap.html +5 -5
  192. package/docs/types/LoadTagConfig.html +5 -5
  193. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  194. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  195. package/docs/types/MediaData.html +5 -5
  196. package/docs/types/MediaStore.html +5 -5
  197. package/docs/types/ModelElement.html +5 -5
  198. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  199. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  200. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  201. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  202. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  203. package/docs/types/MoveArgs.html +5 -5
  204. package/docs/types/MoveOpts.html +5 -5
  205. package/docs/types/Object3DHelperEventMap.html +5 -5
  206. package/docs/types/ObjectFit.html +5 -5
  207. package/docs/types/PaintBrushEventMap.html +5 -5
  208. package/docs/types/PanoCompassPluginData.html +5 -5
  209. package/docs/types/PanoCompassPluginExportType.html +5 -5
  210. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  211. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  212. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  213. package/docs/types/PanoIndex.html +5 -5
  214. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  215. package/docs/types/PanoMeasureReturnType.html +5 -5
  216. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  217. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  218. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  219. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  220. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  221. package/docs/types/PlaneTag.html +5 -5
  222. package/docs/types/PlaneTagElement.html +5 -5
  223. package/docs/types/Point2DElement.html +5 -5
  224. package/docs/types/Point2DTag.html +5 -5
  225. package/docs/types/Point3DElement.html +5 -5
  226. package/docs/types/Point3DTag.html +5 -5
  227. package/docs/types/PointTag.html +5 -5
  228. package/docs/types/PointTagElement.html +5 -5
  229. package/docs/types/Position.html +5 -5
  230. package/docs/types/RotateArgs.html +5 -5
  231. package/docs/types/RotateOpts.html +5 -5
  232. package/docs/types/RuleLabelsKey.html +5 -5
  233. package/docs/types/RuleLabelsValue.html +5 -5
  234. package/docs/types/StickType.html +5 -5
  235. package/docs/types/Tag.html +5 -5
  236. package/docs/types/Tag2D.html +5 -5
  237. package/docs/types/Tag3D.html +5 -5
  238. package/docs/types/TagContentType.html +5 -5
  239. package/docs/types/TagDimensionType.html +5 -5
  240. package/docs/types/TagElement.html +5 -5
  241. package/docs/types/TagEvents.html +5 -5
  242. package/docs/types/TagGLTFObject.html +5 -5
  243. package/docs/types/TagHooks.html +5 -5
  244. package/docs/types/TagIconSize.html +5 -5
  245. package/docs/types/TagId.html +5 -5
  246. package/docs/types/TagPointType.html +5 -5
  247. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  248. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  249. package/docs/types/WorkCode.html +5 -5
  250. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  251. package/docs/variables/PLUGIN.html +5 -5
  252. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  253. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  254. package/docs/variables/VERSION.html +5 -5
  255. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  256. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  257. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  258. package/libs/ModelRoomLabelPlugin/Controller.d.ts +2 -0
  259. package/libs/ModelRoomLabelPlugin/Controller.js +18 -15
  260. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +74 -72
  261. package/libs/base/BasePlugin.js +1 -1
  262. package/package.json +1 -1
  263. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  264. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  265. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  266. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  267. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  268. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  269. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -121
  270. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  271. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  272. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  273. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  274. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  275. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  276. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  277. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  278. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  279. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  280. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  281. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
@@ -2,161 +2,163 @@ var q = Object.defineProperty, P = Object.defineProperties;
2
2
  var A = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var B = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
- var D = (o, t, e) => t in o ? q(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, R = (o, t) => {
5
+ var D = (n, t, e) => t in n ? q(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, R = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
- B.call(t, e) && D(o, e, t[e]);
7
+ B.call(t, e) && D(n, e, t[e]);
8
8
  if (C)
9
9
  for (var e of C(t))
10
- E.call(t, e) && D(o, e, t[e]);
11
- return o;
12
- }, S = (o, t) => P(o, A(t));
13
- import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as N, element as Q, attr as X, add_render_callback as Y, insert as H, add_resize_listener as Z, update_keyed_each as $, check_outros as ee, transition_in as O, transition_out as V, detach as W, onDestroy as te, globals as oe, empty as ne, create_component as re, mount_component as ie, destroy_component as se, group_outros as le, outro_and_destroy_block as ce } from "../vendor/svelte/internal/index.js";
14
- import { Raycaster as ae, Vector3 as w } from "three";
15
- import fe from "./RoomLabelItem.js";
10
+ E.call(t, e) && D(n, e, t[e]);
11
+ return n;
12
+ }, S = (n, t) => P(n, A(t));
13
+ import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as N, element as Q, attr as X, add_render_callback as Y, insert as H, add_resize_listener as Z, update_keyed_each as $, check_outros as ee, transition_in as O, transition_out as V, detach as W, afterUpdate as te, onDestroy as oe, globals as ne, empty as re, create_component as ie, mount_component as se, destroy_component as le, group_outros as ce, outro_and_destroy_block as ae } from "../vendor/svelte/internal/index.js";
14
+ import { Raycaster as fe, Vector3 as z } from "three";
15
+ import me from "./RoomLabelItem.js";
16
16
  import "./Assets/roomLabelBg.js";
17
- const { Map: me } = oe;
18
- function ue(o) {
19
- N(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
17
+ const { Map: ue } = ne;
18
+ function de(n) {
19
+ N(n, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
20
20
  }
21
- function T(o, t, e) {
22
- const l = o.slice();
23
- return l[12] = t[e], l;
21
+ function U(n, t, e) {
22
+ const s = n.slice();
23
+ return s[12] = t[e], s;
24
24
  }
25
- function U(o, t) {
26
- let e, l, s;
27
- return l = new fe({
25
+ function T(n, t) {
26
+ let e, s, l;
27
+ return s = new me({
28
28
  props: {
29
29
  roomLabel: t[12],
30
30
  five: t[1]
31
31
  }
32
32
  }), {
33
- key: o,
33
+ key: n,
34
34
  first: null,
35
35
  c() {
36
- e = ne(), re(l.$$.fragment), this.first = e;
36
+ e = re(), ie(s.$$.fragment), this.first = e;
37
37
  },
38
38
  m(r, a) {
39
- H(r, e, a), ie(l, r, a), s = !0;
39
+ H(r, e, a), se(s, r, a), l = !0;
40
40
  },
41
41
  p(r, a) {
42
42
  t = r;
43
43
  const m = {};
44
- a & 1 && (m.roomLabel = t[12]), a & 2 && (m.five = t[1]), l.$set(m);
44
+ a & 1 && (m.roomLabel = t[12]), a & 2 && (m.five = t[1]), s.$set(m);
45
45
  },
46
46
  i(r) {
47
- s || (O(l.$$.fragment, r), s = !0);
47
+ l || (O(s.$$.fragment, r), l = !0);
48
48
  },
49
49
  o(r) {
50
- V(l.$$.fragment, r), s = !1;
50
+ V(s.$$.fragment, r), l = !1;
51
51
  },
52
52
  d(r) {
53
- r && W(e), se(l, r);
53
+ r && W(e), le(s, r);
54
54
  }
55
55
  };
56
56
  }
57
- function de(o) {
58
- let t, e = [], l = new me(), s, r, a = o[0];
59
- const m = (n) => n[12].id;
60
- for (let n = 0; n < a.length; n += 1) {
61
- let i = T(o, a, n), d = m(i);
62
- l.set(d, e[n] = U(d, i));
57
+ function he(n) {
58
+ let t, e = [], s = new ue(), l, r, a = n[0];
59
+ const m = (o) => o[12].id;
60
+ for (let o = 0; o < a.length; o += 1) {
61
+ let i = U(n, a, o), d = m(i);
62
+ s.set(d, e[o] = T(d, i));
63
63
  }
64
64
  return {
65
65
  c() {
66
66
  t = Q("div");
67
- for (let n = 0; n < e.length; n += 1)
68
- e[n].c();
69
- X(t, "class", "room-labels-container svelte-9eg4zi"), Y(() => o[6].call(t));
67
+ for (let o = 0; o < e.length; o += 1)
68
+ e[o].c();
69
+ X(t, "class", "room-labels-container svelte-9eg4zi"), Y(() => n[6].call(t));
70
70
  },
71
- m(n, i) {
72
- H(n, t, i);
71
+ m(o, i) {
72
+ H(o, t, i);
73
73
  for (let d = 0; d < e.length; d += 1)
74
74
  e[d].m(t, null);
75
- s = Z(t, o[6].bind(t)), r = !0;
75
+ l = Z(t, n[6].bind(t)), r = !0;
76
76
  },
77
- p(n, [i]) {
78
- i & 3 && (a = n[0], le(), e = $(e, i, m, 1, n, a, l, t, ce, U, null, T), ee());
77
+ p(o, [i]) {
78
+ i & 3 && (a = o[0], ce(), e = $(e, i, m, 1, o, a, s, t, ae, T, null, U), ee());
79
79
  },
80
- i(n) {
80
+ i(o) {
81
81
  if (!r) {
82
82
  for (let i = 0; i < a.length; i += 1)
83
83
  O(e[i]);
84
84
  r = !0;
85
85
  }
86
86
  },
87
- o(n) {
87
+ o(o) {
88
88
  for (let i = 0; i < e.length; i += 1)
89
89
  V(e[i]);
90
90
  r = !1;
91
91
  },
92
- d(n) {
93
- n && W(t);
92
+ d(o) {
93
+ o && W(t);
94
94
  for (let i = 0; i < e.length; i += 1)
95
95
  e[i].d();
96
- s();
96
+ l();
97
97
  }
98
98
  };
99
99
  }
100
- function he(o, t, e) {
100
+ function pe(n, t, e) {
101
101
  var k;
102
- let l, { five: s } = t, { roomLabels: r } = t, a, m, n = (k = s.model.shownFloor) != null ? k : null;
102
+ let s, { five: l } = t, { roomLabels: r } = t, a, m, o = (k = l.model.shownFloor) != null ? k : null;
103
103
  function i(c) {
104
- if (!(n === null || c.floorIndex === n))
104
+ if (!(o === null || c.floorIndex === o))
105
105
  return !1;
106
- const g = new ae(), u = s.camera.position.clone(), h = new w(c.position.x, c.position.y, c.position.z), b = h.distanceTo(u);
106
+ const g = new fe(), u = l.camera.position.clone(), h = new z(c.position.x, c.position.y, c.position.z), b = h.distanceTo(u);
107
107
  g.set(u.clone(), h.clone().sub(u).normalize());
108
- const [f] = s.model.intersectRaycaster(g);
108
+ const [f] = l.model.intersectRaycaster(g);
109
109
  return !(f && f.distance + 1 < b);
110
110
  }
111
- function d(c, _) {
112
- const u = new w(c.position.x, c.position.y, c.position.z).clone().project(s.camera), h = Math.ceil((u.x + 1) / 2 * _.x), b = Math.ceil((-u.y + 1) / 2 * _.y);
111
+ function d(c, p) {
112
+ const u = new z(c.position.x, c.position.y, c.position.z).clone().project(l.camera), h = Math.ceil((u.x + 1) / 2 * p.x), b = Math.ceil((-u.y + 1) / 2 * p.y);
113
113
  return `translate(${h}px, ${b}px)`;
114
114
  }
115
- function z(c) {
116
- const { rendererSize: _, shownFloor: g } = c, u = /* @__PURE__ */ new Map();
115
+ function L(c) {
116
+ const { rendererSize: p, shownFloor: g } = c, u = /* @__PURE__ */ new Map();
117
117
  function h(f) {
118
- const p = u.get(f.id);
119
- if (p)
120
- return p;
121
- const { x: L, y: v, z: x } = f.position, y = new w(L, v, x).clone().distanceTo(s.camera.position);
118
+ const _ = u.get(f.id);
119
+ if (_)
120
+ return _;
121
+ const { x: w, y: v, z: x } = f.position, y = new z(w, v, x).clone().distanceTo(l.camera.position);
122
122
  return u.set(f.id, y), y;
123
123
  }
124
124
  return r.map((f) => {
125
- const p = i(f), L = p ? d(f, _) : f.transform, v = h(f), y = r.filter((M) => M.visible && h(M) < v).length * 10;
126
- return S(R({}, f), { visible: p, transform: L, zIndex: y });
125
+ const _ = i(f), w = _ ? d(f, p) : f.transform, v = h(f), y = r.filter((M) => M.visible && h(M) < v).length * 10;
126
+ return S(R({}, f), { visible: _, transform: w, zIndex: y });
127
127
  });
128
128
  }
129
129
  function F() {
130
- e(0, r = z({ rendererSize: l, shownFloor: n }));
130
+ e(0, r = L({ rendererSize: s, shownFloor: o }));
131
131
  }
132
132
  function I(c) {
133
- e(4, n = c);
133
+ e(4, o = c);
134
134
  }
135
- s.on("cameraUpdate", F), s.on("modelShownFloorChange", I), te(() => {
136
- s.off("cameraUpdate", F), s.off("modelShownFloorChange", I);
135
+ l.on("cameraUpdate", F), l.on("modelShownFloorChange", I), te(() => {
136
+ e(0, r = L({ rendererSize: s, shownFloor: o }));
137
+ }), oe(() => {
138
+ l.off("cameraUpdate", F), l.off("modelShownFloorChange", I);
137
139
  });
138
140
  function j() {
139
141
  a = this.clientWidth, m = this.clientHeight, e(2, a), e(3, m);
140
142
  }
141
- return o.$$set = (c) => {
142
- "five" in c && e(1, s = c.five), "roomLabels" in c && e(0, r = c.roomLabels);
143
- }, o.$$.update = () => {
144
- o.$$.dirty & 12 && e(5, l = { x: a, y: m }), o.$$.dirty & 48 && e(0, r = z({ rendererSize: l, shownFloor: n }));
143
+ return n.$$set = (c) => {
144
+ "five" in c && e(1, l = c.five), "roomLabels" in c && e(0, r = c.roomLabels);
145
+ }, n.$$.update = () => {
146
+ n.$$.dirty & 12 && e(5, s = { x: a, y: m }), n.$$.dirty & 48 && e(0, r = L({ rendererSize: s, shownFloor: o }));
145
147
  }, [
146
148
  r,
147
- s,
149
+ l,
148
150
  a,
149
151
  m,
150
- n,
151
- l,
152
+ o,
153
+ s,
152
154
  j
153
155
  ];
154
156
  }
155
- class Le extends G {
157
+ class we extends G {
156
158
  constructor(t) {
157
- super(), J(this, t, he, de, K, { five: 1, roomLabels: 0 }, ue);
159
+ super(), J(this, t, pe, he, K, { five: 1, roomLabels: 0 }, de);
158
160
  }
159
161
  }
160
162
  export {
161
- Le as default
163
+ we as default
162
164
  };
@@ -4,7 +4,7 @@ var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import { Subscribe as c } from "../shared-utils/Subscribe.js";
5
5
  class x {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.11.0");
7
+ s(this, "VERSION", "2.11.1");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.11.0",
10
+ "version": "2.11.1",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
@@ -1,4 +0,0 @@
1
- declare const data: {
2
- tagList: any[];
3
- };
4
- export default data;
@@ -1,6 +0,0 @@
1
- const t = {
2
- tagList: []
3
- };
4
- export {
5
- t as default
6
- };
@@ -1,93 +0,0 @@
1
- declare const _default: ({
2
- id: number;
3
- pointType: string;
4
- dimensionType: string;
5
- position: number[];
6
- normal: number[];
7
- style: {
8
- point: {
9
- iconUrl: string;
10
- style: string;
11
- };
12
- style: string;
13
- };
14
- contentType: string;
15
- data: {
16
- text: string;
17
- extraData: {
18
- baseNormal: number[];
19
- fiveState: {
20
- distance: number;
21
- fov: number;
22
- latitude: number;
23
- longitude: number;
24
- mode: string;
25
- offset: {
26
- x: number;
27
- y: number;
28
- z: number;
29
- };
30
- panoIndex: number;
31
- };
32
- style: {
33
- point: {
34
- iconUrl: string;
35
- style: string;
36
- };
37
- style: string;
38
- };
39
- tagClosedStyle: string;
40
- tagIconUrl: string;
41
- };
42
- mediaData?: undefined;
43
- };
44
- } | {
45
- id: number;
46
- pointType: string;
47
- dimensionType: string;
48
- position: number[];
49
- normal: number[];
50
- style: {
51
- point: {
52
- iconUrl: string;
53
- style: string;
54
- };
55
- style?: undefined;
56
- };
57
- contentType: string;
58
- data: {
59
- text: string;
60
- mediaData: {
61
- type: string;
62
- url: string;
63
- videoCoverUrl: string;
64
- name: string;
65
- }[];
66
- extraData: {
67
- baseNormal: number[];
68
- fiveState: {
69
- distance: number;
70
- fov: number;
71
- latitude: number;
72
- longitude: number;
73
- mode: string;
74
- offset: {
75
- x: number;
76
- y: number;
77
- z: number;
78
- };
79
- panoIndex: number;
80
- };
81
- style: {
82
- point: {
83
- iconUrl: string;
84
- style: string;
85
- };
86
- style?: undefined;
87
- };
88
- tagClosedStyle: string;
89
- tagIconUrl: string;
90
- };
91
- };
92
- })[];
93
- export default _default;