@realsee/dnalogel 2.14.4-alpha.0 → 2.15.0-alpha.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 (268) hide show
  1. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -0
  2. package/dist/index.cjs.js +40 -40
  3. package/dist/index.js +2994 -2996
  4. package/dist/index.umd.js +40 -40
  5. package/docs/classes/CSS3DRender.html +4 -4
  6. package/docs/classes/CruisePluginController.html +4 -4
  7. package/docs/classes/Magnifier.html +4 -4
  8. package/docs/classes/ModelRoomLabelController.html +4 -4
  9. package/docs/classes/Object3DHelperController.html +4 -4
  10. package/docs/classes/PaintBrush.html +4 -4
  11. package/docs/classes/PanoMeasurePluginLine.html +4 -4
  12. package/docs/classes/PanoMeasurePluginModel.html +4 -4
  13. package/docs/classes/PanoMeasurePluginPoint.html +4 -4
  14. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  15. package/docs/classes/PanoTagPluginController.html +38 -18
  16. package/docs/classes/Util.BetterTween.html +4 -4
  17. package/docs/classes/Util.FivePointSelector.html +4 -4
  18. package/docs/classes/Util.Interval.html +4 -4
  19. package/docs/classes/Util.Magnifier.html +4 -4
  20. package/docs/classes/Util.PointDomHelper.html +4 -4
  21. package/docs/classes/Util.PointHelper.html +4 -4
  22. package/docs/classes/Util.Rectangle.html +4 -4
  23. package/docs/enums/CameraMovementEffect.html +4 -4
  24. package/docs/enums/ContentType.html +4 -4
  25. package/docs/enums/DIRECTION.html +4 -4
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
  27. package/docs/enums/DimensionType.html +4 -4
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
  30. package/docs/enums/PaintBrushTypeEnum.html +4 -4
  31. package/docs/enums/Rotation.html +4 -4
  32. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  33. package/docs/functions/CameraMovementPlugin.html +4 -4
  34. package/docs/functions/CruisePlugin.html +4 -4
  35. package/docs/functions/GuideLinePlugin.html +4 -4
  36. package/docs/functions/ItemLabelPlugin.html +4 -4
  37. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  40. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  41. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  42. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  43. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  44. package/docs/functions/ModelViewPlugin.html +4 -4
  45. package/docs/functions/Object3DHelperPlugin.html +4 -4
  46. package/docs/functions/PanoCompassPlugin.html +4 -4
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  48. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  50. package/docs/functions/PanoMeasurePlugin.html +4 -4
  51. package/docs/functions/PanoRulerPlugin.html +4 -4
  52. package/docs/functions/PanoRulerProPlugin.html +4 -4
  53. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  54. package/docs/functions/PanoTagPlugin.html +4 -4
  55. package/docs/functions/PanoVideoPlugin.html +4 -4
  56. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  57. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  58. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  59. package/docs/functions/Util.getFrameTime.html +4 -4
  60. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  61. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  62. package/docs/functions/Util.isNil.html +4 -4
  63. package/docs/functions/Util.nextFrame.html +4 -4
  64. package/docs/functions/Util.notNil.html +4 -4
  65. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  66. package/docs/functions/Util.tweenProgress.html +4 -4
  67. package/docs/functions/pluginFlag.html +4 -4
  68. package/docs/index.html +4 -4
  69. package/docs/interfaces/AddTagConfig.html +4 -4
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  71. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  72. package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
  73. package/docs/interfaces/EventMap.html +4 -4
  74. package/docs/interfaces/FloorplanBounding.html +4 -4
  75. package/docs/interfaces/FloorplanData.html +4 -4
  76. package/docs/interfaces/FloorplanEntrance.html +4 -4
  77. package/docs/interfaces/FloorplanExtraObject.html +4 -4
  78. package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
  79. package/docs/interfaces/FloorplanFloorData.html +4 -4
  80. package/docs/interfaces/FloorplanImagePosition.html +4 -4
  81. package/docs/interfaces/FloorplanObserver.html +4 -4
  82. package/docs/interfaces/FloorplanOutlineItem.html +4 -4
  83. package/docs/interfaces/FloorplanPosition.html +4 -4
  84. package/docs/interfaces/FloorplanRoomItem.html +4 -4
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  86. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  87. package/docs/interfaces/FloorplanServerComputedData.html +4 -4
  88. package/docs/interfaces/FloorplanServerData.html +4 -4
  89. package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
  91. package/docs/interfaces/FloorplanServerEntrance.html +4 -4
  92. package/docs/interfaces/FloorplanServerFloorData.html +4 -4
  93. package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
  94. package/docs/interfaces/FloorplanServerObserver.html +4 -4
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
  96. package/docs/interfaces/FloorplanServerPosition.html +4 -4
  97. package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  99. package/docs/interfaces/HelperOffset.html +4 -4
  100. package/docs/interfaces/ImagePlaneGroup.html +4 -4
  101. package/docs/interfaces/ItemLabelPluginData.html +4 -4
  102. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
  103. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
  104. package/docs/interfaces/MinMax.html +4 -4
  105. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
  106. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
  107. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
  108. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
  109. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
  110. package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
  111. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
  112. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
  113. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
  114. package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
  115. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
  116. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
  117. package/docs/interfaces/ModelViewPluginExportType.html +4 -4
  118. package/docs/interfaces/Object3DHelperState.html +4 -4
  119. package/docs/interfaces/ObjectHelperControllers.html +4 -4
  120. package/docs/interfaces/PaintBrushAction.html +4 -4
  121. package/docs/interfaces/PaintBrushConfigs.html +4 -4
  122. package/docs/interfaces/PaintBrushState.html +4 -4
  123. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
  124. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  125. package/docs/interfaces/PanoMeasureParameterType.html +4 -4
  126. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
  127. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
  128. package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
  129. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  130. package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
  131. package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
  136. package/docs/interfaces/PanoRulerProPluginState.html +4 -4
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
  146. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
  147. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
  148. package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
  149. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
  150. package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
  151. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
  152. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
  153. package/docs/interfaces/Point.html +4 -4
  154. package/docs/interfaces/Room.html +4 -4
  155. package/docs/interfaces/RoomInfo.html +4 -4
  156. package/docs/interfaces/RoomLabel.html +4 -4
  157. package/docs/interfaces/RoomRules.html +4 -4
  158. package/docs/interfaces/Rooms.html +4 -4
  159. package/docs/interfaces/Scissor.html +4 -4
  160. package/docs/interfaces/State.html +4 -4
  161. package/docs/interfaces/TagCacheInterface.html +4 -4
  162. package/docs/interfaces/TagConfig.html +4 -4
  163. package/docs/interfaces/TagGLTFObjectGroup.html +4 -4
  164. package/docs/interfaces/TagIconUrl.html +4 -4
  165. package/docs/interfaces/TagObjectGroup.html +4 -4
  166. package/docs/interfaces/TagStyle.html +4 -4
  167. package/docs/interfaces/Tags.html +5 -5
  168. package/docs/interfaces/TemporaryState.html +4 -4
  169. package/docs/interfaces/Util.MagnifierParameter.html +4 -4
  170. package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
  171. package/docs/modules/PanoVideoPluginType.html +4 -4
  172. package/docs/modules/Util.html +4 -4
  173. package/docs/modules.html +4 -4
  174. package/docs/types/ArrayPosition.html +4 -4
  175. package/docs/types/AudioAppearance.html +4 -4
  176. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  177. package/docs/types/CSS3DRenderExportType.html +4 -4
  178. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  179. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  180. package/docs/types/ClassFunctionParameters.html +4 -4
  181. package/docs/types/Color.html +4 -4
  182. package/docs/types/ContentTypeConfigKey.html +4 -4
  183. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  184. package/docs/types/ContentTypeMap.html +4 -4
  185. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  186. package/docs/types/Create3DElementReturnType.html +4 -4
  187. package/docs/types/CruisePluginExportType.html +4 -4
  188. package/docs/types/Direction-1.html +4 -4
  189. package/docs/types/Direction4.html +4 -4
  190. package/docs/types/FloorplanRuleLabels.html +4 -4
  191. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  192. package/docs/types/GuideLinePluginExportType.html +4 -4
  193. package/docs/types/HelperEventMap.html +4 -4
  194. package/docs/types/LoadTagConfig.html +4 -4
  195. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  196. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  197. package/docs/types/MediaData.html +4 -4
  198. package/docs/types/MediaStore.html +4 -4
  199. package/docs/types/ModelElement.html +4 -4
  200. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  201. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  202. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  203. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  204. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  205. package/docs/types/MoveArgs.html +4 -4
  206. package/docs/types/MoveOpts.html +4 -4
  207. package/docs/types/Object3DHelperEventMap.html +4 -4
  208. package/docs/types/ObjectFit.html +4 -4
  209. package/docs/types/PaintBrushEventMap.html +4 -4
  210. package/docs/types/PanoCompassPluginData.html +4 -4
  211. package/docs/types/PanoCompassPluginExportType.html +4 -4
  212. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  213. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  214. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  215. package/docs/types/PanoIndex.html +4 -4
  216. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  217. package/docs/types/PanoMeasureReturnType.html +4 -4
  218. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  219. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  220. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  221. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  222. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  223. package/docs/types/PlaneTag.html +4 -4
  224. package/docs/types/PlaneTagElement.html +4 -4
  225. package/docs/types/Point2DElement.html +4 -4
  226. package/docs/types/Point2DTag.html +4 -4
  227. package/docs/types/Point3DElement.html +4 -4
  228. package/docs/types/Point3DTag.html +4 -4
  229. package/docs/types/PointTag.html +4 -4
  230. package/docs/types/PointTagElement.html +4 -4
  231. package/docs/types/Position.html +4 -4
  232. package/docs/types/RotateArgs.html +4 -4
  233. package/docs/types/RotateOpts.html +4 -4
  234. package/docs/types/RuleLabelsKey.html +4 -4
  235. package/docs/types/RuleLabelsValue.html +4 -4
  236. package/docs/types/StickType.html +4 -4
  237. package/docs/types/Tag.html +5 -5
  238. package/docs/types/Tag2D.html +4 -4
  239. package/docs/types/Tag3D.html +4 -4
  240. package/docs/types/TagContentType.html +4 -4
  241. package/docs/types/TagDimensionType.html +4 -4
  242. package/docs/types/TagElement.html +4 -4
  243. package/docs/types/TagEvents.html +4 -4
  244. package/docs/types/TagGLTFObject.html +4 -4
  245. package/docs/types/TagHooks.html +4 -4
  246. package/docs/types/TagIconSize.html +4 -4
  247. package/docs/types/TagId.html +4 -4
  248. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  249. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  250. package/docs/types/WorkCode.html +4 -4
  251. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  252. package/docs/variables/PLUGIN.html +4 -4
  253. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  254. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  255. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  256. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  257. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  258. package/libs/PanoTagPlugin/Components/Tag/index.js +156 -155
  259. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  260. package/libs/PanoTagPlugin/Components/TagItem.js +110 -109
  261. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  262. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  263. package/libs/PanoTagPlugin/controller/index.js +6 -5
  264. package/libs/PanoTagPlugin/index.js +11 -10
  265. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -0
  266. package/libs/base/BasePlugin.js +1 -1
  267. package/libs/shared-utils/threex/domevents/index.js +11 -13
  268. package/package.json +1 -1
@@ -1,10 +1,11 @@
1
- import { SvelteComponent as K, init as M, safe_not_equal as N, append_styles as O, element as A, space as Q, attr as u, set_style as k, toggle_class as g, insert as C, append as j, transition_out as h, check_outros as B, transition_in as y, detach as P, getContext as U, group_outros as E, noop as v, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
2
- import W from "./Tag/index.js";
1
+ import { SvelteComponent as M, init as O, safe_not_equal as Q, append_styles as U, element as C, space as W, attr as d, null_to_empty as V, set_style as h, toggle_class as _, insert as P, append as j, transition_out as y, check_outros as B, transition_in as v, detach as N, getContext as X, group_outros as E, noop as S, create_component as H, mount_component as J, destroy_component as K } from "../../vendor/svelte/internal/index.js";
2
+ import Y from "./Tag/index.js";
3
3
  import "three";
4
4
  import { noTypecheck as F } from "../utils/noTypecheck.js";
5
5
  import "@realsee/five/gltf-loader";
6
6
  import "../../shared-utils/three/loadTexture.js";
7
- import X from "./Common/TagPoint.js";
7
+ import Z from "./Common/TagPoint.js";
8
+ import G from "classnames";
8
9
  import "./Tag/TextTag/index.js";
9
10
  import "./Tag/TextTag/TextTag.js";
10
11
  import "./Common/Line/Straight.js";
@@ -92,173 +93,173 @@ import "./Tag/LinkTag.js";
92
93
  import "./Common/Icon/Icon.js";
93
94
  import "../utils/getImageInfo.js";
94
95
  import "./Tag/CustomTag.js";
95
- function Y(o) {
96
- O(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
96
+ function x(i) {
97
+ U(i, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
97
98
  }
98
- function Z(o) {
99
+ function $(i) {
99
100
  let e;
100
101
  return {
101
102
  c() {
102
- e = A("div"), u(e, "data-info", "tag content is disable");
103
+ e = C("div"), d(e, "data-info", "tag content is disable");
103
104
  },
104
- m(t, i) {
105
- C(t, e, i);
105
+ m(t, o) {
106
+ P(t, e, o);
106
107
  },
107
- p: v,
108
- i: v,
109
- o: v,
108
+ p: S,
109
+ i: S,
110
+ o: S,
110
111
  d(t) {
111
- t && P(e);
112
+ t && N(e);
112
113
  }
113
114
  };
114
115
  }
115
- function x(o) {
116
+ function tt(i) {
116
117
  let e, t;
117
- return e = new W({
118
+ return e = new Y({
118
119
  props: {
119
- mediaStore: o[2],
120
- withAnimation: o[0],
121
- tag: F(o[1]),
122
- hooks: o[14],
123
- state: o[3],
124
- temporaryState: o[4]
120
+ mediaStore: i[2],
121
+ withAnimation: i[0],
122
+ tag: F(i[1]),
123
+ hooks: i[14],
124
+ state: i[3],
125
+ temporaryState: i[4]
125
126
  }
126
127
  }), {
127
128
  c() {
128
- G(e.$$.fragment);
129
+ H(e.$$.fragment);
129
130
  },
130
- m(i, n) {
131
- H(e, i, n), t = !0;
131
+ m(o, p) {
132
+ J(e, o, p), t = !0;
132
133
  },
133
- p(i, n) {
134
- const l = {};
135
- n & 4 && (l.mediaStore = i[2]), n & 1 && (l.withAnimation = i[0]), n & 2 && (l.tag = F(i[1])), n & 8 && (l.state = i[3]), n & 16 && (l.temporaryState = i[4]), e.$set(l);
134
+ p(o, p) {
135
+ const m = {};
136
+ p & 4 && (m.mediaStore = o[2]), p & 1 && (m.withAnimation = o[0]), p & 2 && (m.tag = F(o[1])), p & 8 && (m.state = o[3]), p & 16 && (m.temporaryState = o[4]), e.$set(m);
136
137
  },
137
- i(i) {
138
- t || (y(e.$$.fragment, i), t = !0);
138
+ i(o) {
139
+ t || (v(e.$$.fragment, o), t = !0);
139
140
  },
140
- o(i) {
141
- h(e.$$.fragment, i), t = !1;
141
+ o(o) {
142
+ y(e.$$.fragment, o), t = !1;
142
143
  },
143
- d(i) {
144
- J(e, i);
144
+ d(o) {
145
+ K(e, o);
145
146
  }
146
147
  };
147
148
  }
148
- function $(o) {
149
+ function et(i) {
149
150
  let e;
150
151
  return {
151
152
  c() {
152
- e = A("div"), u(e, "data-info", "tag point is disable");
153
+ e = C("div"), d(e, "data-info", "tag point is disable");
153
154
  },
154
- m(t, i) {
155
- C(t, e, i);
155
+ m(t, o) {
156
+ P(t, e, o);
156
157
  },
157
- p: v,
158
- i: v,
159
- o: v,
158
+ p: S,
159
+ i: S,
160
+ o: S,
160
161
  d(t) {
161
- t && P(e);
162
+ t && N(e);
162
163
  }
163
164
  };
164
165
  }
165
- function tt(o) {
166
+ function it(i) {
166
167
  let e, t;
167
- return e = new X({ props: { tag: o[1] } }), {
168
+ return e = new Z({ props: { tag: i[1] } }), {
168
169
  c() {
169
- G(e.$$.fragment);
170
+ H(e.$$.fragment);
170
171
  },
171
- m(i, n) {
172
- H(e, i, n), t = !0;
172
+ m(o, p) {
173
+ J(e, o, p), t = !0;
173
174
  },
174
- p(i, n) {
175
- const l = {};
176
- n & 2 && (l.tag = i[1]), e.$set(l);
175
+ p(o, p) {
176
+ const m = {};
177
+ p & 2 && (m.tag = o[1]), e.$set(m);
177
178
  },
178
- i(i) {
179
- t || (y(e.$$.fragment, i), t = !0);
179
+ i(o) {
180
+ t || (v(e.$$.fragment, o), t = !0);
180
181
  },
181
- o(i) {
182
- h(e.$$.fragment, i), t = !1;
182
+ o(o) {
183
+ y(e.$$.fragment, o), t = !1;
183
184
  },
184
- d(i) {
185
- J(e, i);
185
+ d(o) {
186
+ K(e, o);
186
187
  }
187
188
  };
188
189
  }
189
- function et(o) {
190
- let e, t, i, n, l, s, d, w, f;
191
- const S = [x, Z], c = [];
192
- function T(r, a) {
193
- return r[12] ? 0 : 1;
190
+ function ot(i) {
191
+ let e, t, o, p, m, s, f, g, w, l;
192
+ const T = [tt, $], u = [];
193
+ function a(n, r) {
194
+ return n[12] ? 0 : 1;
194
195
  }
195
- i = T(o), n = c[i] = S[i](o);
196
- const p = [tt, $], _ = [];
197
- function z(r, a) {
198
- return r[13] ? 0 : 1;
196
+ o = a(i), p = u[o] = T[o](i);
197
+ const z = [it, et], c = [];
198
+ function A(n, r) {
199
+ return n[13] ? 0 : 1;
199
200
  }
200
- return s = z(o), d = _[s] = p[s](o), {
201
+ return s = A(i), f = c[s] = z[s](i), {
201
202
  c() {
202
- e = A("div"), t = A("div"), n.c(), l = Q(), d.c(), u(t, "class", "wrapper svelte-pzwdws"), u(t, "data-tag-unfolded", o[8]), u(t, "data-tag-id", o[11]), u(t, "data-content-type", w = o[1].contentType), k(t, "left", o[7]), k(t, "top", o[6]), k(t, "z-index", o[5]), u(e, "class", "tag svelte-pzwdws"), u(e, "data-tag-id", o[11]), g(e, "unClickable", o[1].mergedConfig.clickable === !1), g(e, "disable", o[10]), g(e, "hide", o[9]), g(e, "withAnimation", o[0]);
203
+ e = C("div"), t = C("div"), p.c(), m = W(), f.c(), d(t, "class", g = V(G("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), d(t, "data-tag-unfolded", i[8]), d(t, "data-tag-id", i[11]), d(t, "data-content-type", w = i[1].contentType), h(t, "left", i[7]), h(t, "top", i[6]), h(t, "z-index", i[5]), d(e, "class", "tag svelte-pzwdws"), d(e, "data-tag-id", i[11]), _(e, "unClickable", i[1].mergedConfig.clickable === !1), _(e, "disable", i[10]), _(e, "hide", i[9]), _(e, "withAnimation", i[0]);
203
204
  },
204
- m(r, a) {
205
- C(r, e, a), j(e, t), c[i].m(t, null), j(t, l), _[s].m(t, null), f = !0;
205
+ m(n, r) {
206
+ P(n, e, r), j(e, t), u[o].m(t, null), j(t, m), c[s].m(t, null), l = !0;
206
207
  },
207
- p(r, [a]) {
208
- let m = i;
209
- i = T(r), i === m ? c[i].p(r, a) : (E(), h(c[m], 1, 1, () => {
210
- c[m] = null;
211
- }), B(), n = c[i], n ? n.p(r, a) : (n = c[i] = S[i](r), n.c()), y(n, 1), n.m(t, l));
212
- let b = s;
213
- s = z(r), s === b ? _[s].p(r, a) : (E(), h(_[b], 1, 1, () => {
214
- _[b] = null;
215
- }), B(), d = _[s], d ? d.p(r, a) : (d = _[s] = p[s](r), d.c()), y(d, 1), d.m(t, null)), (!f || a & 256) && u(t, "data-tag-unfolded", r[8]), (!f || a & 2048) && u(t, "data-tag-id", r[11]), (!f || a & 2 && w !== (w = r[1].contentType)) && u(t, "data-content-type", w), a & 128 && k(t, "left", r[7]), a & 64 && k(t, "top", r[6]), a & 32 && k(t, "z-index", r[5]), (!f || a & 2048) && u(e, "data-tag-id", r[11]), (!f || a & 2) && g(e, "unClickable", r[1].mergedConfig.clickable === !1), (!f || a & 1024) && g(e, "disable", r[10]), (!f || a & 512) && g(e, "hide", r[9]), (!f || a & 1) && g(e, "withAnimation", r[0]);
208
+ p(n, [r]) {
209
+ let b = o;
210
+ o = a(n), o === b ? u[o].p(n, r) : (E(), y(u[b], 1, 1, () => {
211
+ u[b] = null;
212
+ }), B(), p = u[o], p ? p.p(n, r) : (p = u[o] = T[o](n), p.c()), v(p, 1), p.m(t, m));
213
+ let k = s;
214
+ s = A(n), s === k ? c[s].p(n, r) : (E(), y(c[k], 1, 1, () => {
215
+ c[k] = null;
216
+ }), B(), f = c[s], f ? f.p(n, r) : (f = c[s] = z[s](n), f.c()), v(f, 1), f.m(t, null)), (!l || r & 2 && g !== (g = V(G("wrapper", n[1].className ? `${n[1].className}__wrapper` : void 0)) + " svelte-pzwdws")) && d(t, "class", g), (!l || r & 256) && d(t, "data-tag-unfolded", n[8]), (!l || r & 2048) && d(t, "data-tag-id", n[11]), (!l || r & 2 && w !== (w = n[1].contentType)) && d(t, "data-content-type", w), r & 128 && h(t, "left", n[7]), r & 64 && h(t, "top", n[6]), r & 32 && h(t, "z-index", n[5]), (!l || r & 2048) && d(e, "data-tag-id", n[11]), (!l || r & 2) && _(e, "unClickable", n[1].mergedConfig.clickable === !1), (!l || r & 1024) && _(e, "disable", n[10]), (!l || r & 512) && _(e, "hide", n[9]), (!l || r & 1) && _(e, "withAnimation", n[0]);
216
217
  },
217
- i(r) {
218
- f || (y(n), y(d), f = !0);
218
+ i(n) {
219
+ l || (v(p), v(f), l = !0);
219
220
  },
220
- o(r) {
221
- h(n), h(d), f = !1;
221
+ o(n) {
222
+ y(p), y(f), l = !1;
222
223
  },
223
- d(r) {
224
- r && P(e), c[i].d(), _[s].d();
224
+ d(n) {
225
+ n && N(e), u[o].d(), c[s].d();
225
226
  }
226
227
  };
227
228
  }
228
- function it(o, e, t) {
229
- let i, n, l, s, d, w, f, S, c, { withAnimation: T = !1 } = e, { tag: p } = e, { mediaStore: _ } = e, { state: z } = e, { temporaryState: r } = e;
230
- const a = U("hooks");
231
- return o.$$set = (m) => {
232
- "withAnimation" in m && t(0, T = m.withAnimation), "tag" in m && t(1, p = m.tag), "mediaStore" in m && t(2, _ = m.mediaStore), "state" in m && t(3, z = m.state), "temporaryState" in m && t(4, r = m.temporaryState);
233
- }, o.$$.update = () => {
234
- var m, b, L, I, q, D, R, V;
235
- o.$$.dirty & 2 && t(13, i = (() => !(p.contentType === "Sticker" || p.contentType === "Link" || p.contentType === "VRLink" || p.contentType === "PanoLink" || p.contentType === "Audio" && p.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => p.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = p.id), o.$$.dirty & 2 && t(10, s = !((m = p.pointTagStyle) != null && m.leftPercent) || !((b = p.pointTagStyle) != null && b.topPercent) || p.enabled === !1 || !p.state), o.$$.dirty & 2 && t(9, d = !((L = p.state) != null && L.visible) || ((I = p.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, w = (q = p.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, f = ((D = p.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, S = ((R = p.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = p.state) != null && V.unfolded ? 1 : 0);
229
+ function rt(i, e, t) {
230
+ let o, p, m, s, f, g, w, l, T, { withAnimation: u = !1 } = e, { tag: a } = e, { mediaStore: z } = e, { state: c } = e, { temporaryState: A } = e;
231
+ const n = X("hooks");
232
+ return i.$$set = (r) => {
233
+ "withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, a = r.tag), "mediaStore" in r && t(2, z = r.mediaStore), "state" in r && t(3, c = r.state), "temporaryState" in r && t(4, A = r.temporaryState);
234
+ }, i.$$.update = () => {
235
+ var r, b, k, L, I, q, D, R;
236
+ i.$$.dirty & 2 && t(13, o = (() => !(a.contentType === "Sticker" || a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane"))()), i.$$.dirty & 2 && t(12, p = (() => a.stickType === "2DPoint")()), i.$$.dirty & 2 && t(11, m = a.id), i.$$.dirty & 2 && t(10, s = !((r = a.pointTagStyle) != null && r.leftPercent) || !((b = a.pointTagStyle) != null && b.topPercent) || a.enabled === !1 || !a.state), i.$$.dirty & 2 && t(9, f = !((k = a.state) != null && k.visible) || ((L = a.temporaryState) == null ? void 0 : L.visible) === !1), i.$$.dirty & 2 && t(8, g = (I = a.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && t(7, w = ((q = a.pointTagStyle) == null ? void 0 : q.leftPercent) + "%"), i.$$.dirty & 2 && t(6, l = ((D = a.pointTagStyle) == null ? void 0 : D.topPercent) + "%"), i.$$.dirty & 2 && t(5, T = (R = a.state) != null && R.unfolded ? 1 : 0);
236
237
  }, [
237
- T,
238
- p,
239
- _,
238
+ u,
239
+ a,
240
240
  z,
241
- r,
242
241
  c,
243
- S,
244
- f,
242
+ A,
243
+ T,
244
+ l,
245
245
  w,
246
- d,
246
+ g,
247
+ f,
247
248
  s,
248
- l,
249
- n,
250
- i,
251
- a
249
+ m,
250
+ p,
251
+ o,
252
+ n
252
253
  ];
253
254
  }
254
- class Me extends K {
255
+ class Qe extends M {
255
256
  constructor(e) {
256
- super(), M(
257
+ super(), O(
257
258
  this,
258
259
  e,
259
- it,
260
- et,
261
- N,
260
+ rt,
261
+ ot,
262
+ Q,
262
263
  {
263
264
  withAnimation: 0,
264
265
  tag: 1,
@@ -266,10 +267,10 @@ class Me extends K {
266
267
  state: 3,
267
268
  temporaryState: 4
268
269
  },
269
- Y
270
+ x
270
271
  );
271
272
  }
272
273
  }
273
274
  export {
274
- Me as default
275
+ Qe as default
275
276
  };
@@ -70,6 +70,7 @@ import "../Components/Common/Icon/Icon.js";
70
70
  import "../utils/getImageInfo.js";
71
71
  import "../utils/px2rem.js";
72
72
  import "../Assets/Icon.js";
73
+ import "classnames";
73
74
  import "../Components/Tag/TextTag/index.js";
74
75
  import "../Components/Tag/TextTag/TextTag.js";
75
76
  import "../Components/Common/Line/Straight.js";
@@ -131,7 +132,7 @@ import "../Components/Tag/LinkTag.js";
131
132
  import "../Components/Tag/CustomTag.js";
132
133
  import "../../CSS3DRenderPlugin/Controller.js";
133
134
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
134
- class Ue extends O {
135
+ class Le extends O {
135
136
  constructor(t) {
136
137
  super(t);
137
138
  d(this, "group", new P());
@@ -320,5 +321,5 @@ class Ue extends O {
320
321
  }
321
322
  }
322
323
  export {
323
- Ue as TagRender
324
+ Le as TagRender
324
325
  };
@@ -206,7 +206,7 @@ class le extends b {
206
206
  if (!i || !this.domEvents)
207
207
  return () => {
208
208
  };
209
- const t = () => !(v(e) && !e.mediaVisible || !e.state.visible || !this.state.visible), d = (s) => {
209
+ const t = () => !(!e.state.visible || !this.state.visible || v(e) && !e.mediaVisible), d = (s) => {
210
210
  if (!t()) {
211
211
  this.mouseInfo = void 0;
212
212
  return;
@@ -142,14 +142,15 @@ import "../Components/Tag/LinkTag.js";
142
142
  import "../Components/Common/Icon/Icon.js";
143
143
  import "../utils/getImageInfo.js";
144
144
  import "../Components/Tag/CustomTag.js";
145
+ import "classnames";
145
146
  import "../Components/Common/TagPoint.js";
146
147
  import "../utils/model/imagePlane.js";
147
148
  import "../../CSS3DRenderPlugin/index.js";
148
149
  import "../../CSS3DRenderPlugin/Controller.js";
149
150
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
150
151
  import "../../shared-utils/three/GLTFLoader.js";
151
- const D = "Dnalogel-PanoTagPlugin", Xt = (d) => `${D}--${d}`;
152
- class Yt extends k {
152
+ const D = "Dnalogel-PanoTagPlugin", Yt = (d) => `${D}--${d}`;
153
+ class Zt extends k {
153
154
  constructor(e, t) {
154
155
  super(e);
155
156
  p(this, "state", { enabled: !0, visible: !0 });
@@ -417,7 +418,7 @@ class Yt extends k {
417
418
  }
418
419
  }
419
420
  export {
420
- Yt as PanoTagPluginController,
421
- Yt as default,
422
- Xt as pluginFlag
421
+ Zt as PanoTagPluginController,
422
+ Zt as default,
423
+ Yt as pluginFlag
423
424
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./controller/index.js";
2
- import { default as wr, pluginFlag as Dr } from "./controller/index.js";
3
- import { ContentType as br } from "./typings/tag/TagData.js";
4
- import { DimensionType as jr } from "./typings/tag/Utils.js";
2
+ import { default as Dr, pluginFlag as Fr } from "./controller/index.js";
3
+ import { ContentType as hr } from "./typings/tag/TagData.js";
4
+ import { DimensionType as kr } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
6
6
  import "object-assign-deep";
7
7
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
@@ -117,18 +117,19 @@ import "./Components/Tag/LinkTag.js";
117
117
  import "./Components/Common/Icon/Icon.js";
118
118
  import "./utils/getImageInfo.js";
119
119
  import "./Components/Tag/CustomTag.js";
120
+ import "classnames";
120
121
  import "./Components/Common/TagPoint.js";
121
122
  import "./utils/model/imagePlane.js";
122
123
  import "../CSS3DRenderPlugin/index.js";
123
124
  import "../CSS3DRenderPlugin/Controller.js";
124
125
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
125
126
  import "../shared-utils/three/GLTFLoader.js";
126
- const dr = (o, r) => new t(o, r);
127
+ const yr = (o, r) => new t(o, r);
127
128
  export {
128
- br as ContentType,
129
- jr as DimensionType,
130
- dr as PanoTagPlugin,
131
- wr as PanoTagPluginController,
132
- dr as default,
133
- Dr as pluginFlag
129
+ hr as ContentType,
130
+ kr as DimensionType,
131
+ yr as PanoTagPlugin,
132
+ Dr as PanoTagPluginController,
133
+ yr as default,
134
+ Fr as pluginFlag
134
135
  };
@@ -35,6 +35,8 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
35
35
  normal?: Position;
36
36
  /** 自定义标签内容 */
37
37
  element?: string | Element | ElementRenderer;
38
+ /** 标签 wrapper 的 classname */
39
+ className?: string;
38
40
  /** 标签数据 */
39
41
  data: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
40
42
  /** 「展开/收起」 「可见/不可见」 的策略配置 */
@@ -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 o {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.14.4-alpha.0");
7
+ s(this, "VERSION", "2.15.0-alpha.0");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -1,6 +1,6 @@
1
- import * as f from "three";
1
+ import * as d from "three";
2
2
  function n(t, e) {
3
- this._camera = t || null, this._domElement = e || document, this._raycaster = new f.Raycaster(), this._selected = null, this._boundObjs = {};
3
+ this._camera = t || null, this._domElement = e || document, this._raycaster = new d.Raycaster(), this._selected = null, this._boundObjs = {};
4
4
  var o = this;
5
5
  this._$onClick = function() {
6
6
  o._onClick.apply(o, arguments);
@@ -100,27 +100,27 @@ n.prototype._bound = function(t, e) {
100
100
  n.prototype._onMove = function(t, e, o, i) {
101
101
  var s = this._boundObjs[t];
102
102
  if (!(s === void 0 || s.length === 0)) {
103
- var r = new f.Vector2();
103
+ var r = new d.Vector2();
104
104
  r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
105
105
  var a = this._raycaster.intersectObjects(s), u = this._selected;
106
106
  if (a.length > 0) {
107
- var h, l, c, p = a[0], _ = p.object;
108
- this._selected = _, c = this._bound("mousemove", _), u != _ && (h = this._bound("mouseover", _), l = u && this._bound("mouseout", u));
107
+ var h, c, l, p = a[0], _ = p.object;
108
+ this._selected = _, l = this._bound("mousemove", _), u != _ && (h = this._bound("mouseover", _), c = u && this._bound("mouseout", u));
109
109
  } else
110
- l = u && this._bound("mouseout", u), this._selected = null;
111
- c && this._notify("mousemove", _, i, p), h && this._notify("mouseover", _, i, p), l && this._notify("mouseout", u, i, p);
110
+ c = u && this._bound("mouseout", u), this._selected = null;
111
+ l && this._notify("mousemove", _, i, p), h && this._notify("mouseover", _, i, p), c && this._notify("mouseout", u, i, p);
112
112
  }
113
113
  };
114
114
  n.prototype._onEvent = function(t, e, o, i) {
115
115
  var s = this._boundObjs[t];
116
116
  if (!(s === void 0 || s.length === 0)) {
117
- var r = new f.Vector2();
117
+ var r = new d.Vector2();
118
118
  r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
119
119
  var a = this._raycaster.intersectObjects(s, !0);
120
120
  if (a.length !== 0) {
121
- for (var u = a[0], h = u.object, l = this._objectCtxGet(h), c = h.parent; typeof l == "undefined" && c; )
122
- l = this._objectCtxGet(c), c = c.parent;
123
- !l || this._notify(t, h, i, u);
121
+ for (var u = a[0], h = u.object, c = this._objectCtxGet(h), l = h.parent; typeof c == "undefined" && l; )
122
+ c = this._objectCtxGet(l), l = l.parent;
123
+ !c || this._notify(t, h, i, u);
124
124
  }
125
125
  }
126
126
  };
@@ -174,7 +174,6 @@ n.prototype._onTouchEnd = function(t) {
174
174
  };
175
175
  n.prototype._onTouchMove = function(t) {
176
176
  if (t.touches.length == 1) {
177
- t.preventDefault();
178
177
  var e = Number(t.touches[0].pageX / window.innerWidth) * 2 - 1, o = -(t.touches[0].pageY / window.innerHeight) * 2 + 1;
179
178
  this._onMove("mousemove", e, o, t), this._onMove("mouseover", e, o, t), this._onMove("mouseout", e, o, t);
180
179
  }
@@ -182,7 +181,6 @@ n.prototype._onTouchMove = function(t) {
182
181
  n.prototype._onTouchEvent = function(t, e) {
183
182
  var o = e.touches;
184
183
  if (o.length == 0 && (o = e.changedTouches), o.length == 1) {
185
- e.preventDefault();
186
184
  var i = Number(o[0].pageX / window.innerWidth) * 2 - 1, s = -(o[0].pageY / window.innerHeight) * 2 + 1;
187
185
  this._onEvent(t, i, s, e);
188
186
  }
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.14.4-alpha.0",
10
+ "version": "2.15.0-alpha.0",
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*",