@realsee/dnalogel 2.3.5-dev.0 → 2.3.5-dev.2

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 (240) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +1 -1
  2. package/dist/index.cjs.js +37 -37
  3. package/dist/index.js +1774 -1751
  4. package/dist/index.umd.js +25 -25
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +24 -24
  7. package/docs/classes/Magnifier.html +16 -16
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoTagPluginController.html +48 -48
  12. package/docs/classes/Util.BetterTween.html +8 -8
  13. package/docs/classes/Util.FivePointSelector.html +12 -12
  14. package/docs/classes/Util.Interval.html +12 -12
  15. package/docs/classes/Util.Magnifier.html +17 -17
  16. package/docs/classes/Util.PointDomHelper.html +11 -11
  17. package/docs/classes/Util.PointHelper.html +11 -11
  18. package/docs/classes/Util.Rectangle.html +13 -13
  19. package/docs/enums/CameraMovementEffect.html +7 -7
  20. package/docs/enums/ContentType.html +16 -16
  21. package/docs/enums/DIRECTION.html +9 -9
  22. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  23. package/docs/enums/DimensionType.html +7 -7
  24. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  25. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  27. package/docs/enums/PointType.html +7 -7
  28. package/docs/enums/Rotation.html +8 -8
  29. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  30. package/docs/functions/CameraMovementPlugin.html +4 -4
  31. package/docs/functions/CruisePlugin.html +4 -4
  32. package/docs/functions/GuideLinePlugin.html +5 -5
  33. package/docs/functions/ItemLabelPlugin.html +4 -4
  34. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  36. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  37. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  39. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  40. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  41. package/docs/functions/ModelViewPlugin.html +4 -4
  42. package/docs/functions/Object3DHelperPlugin.html +4 -4
  43. package/docs/functions/PanoCompassPlugin.html +4 -4
  44. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  45. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  46. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  47. package/docs/functions/PanoMeasurePlugin.html +4 -4
  48. package/docs/functions/PanoRulerPlugin.html +4 -4
  49. package/docs/functions/PanoRulerProPlugin.html +4 -4
  50. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  51. package/docs/functions/PanoTagPlugin.html +4 -4
  52. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  53. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  54. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  55. package/docs/functions/Util.getFrameTime.html +5 -5
  56. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  57. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  58. package/docs/functions/Util.isNil.html +5 -5
  59. package/docs/functions/Util.nextFrame.html +5 -5
  60. package/docs/functions/Util.notNil.html +5 -5
  61. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  62. package/docs/functions/Util.tweenProgress.html +5 -5
  63. package/docs/functions/pluginFlag.html +5 -5
  64. package/docs/index.html +4 -4
  65. package/docs/interfaces/AddTagConfig.html +6 -6
  66. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  67. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  68. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  69. package/docs/interfaces/EventMap.html +15 -15
  70. package/docs/interfaces/FloorplanBounding.html +8 -8
  71. package/docs/interfaces/FloorplanData.html +10 -10
  72. package/docs/interfaces/FloorplanEntrance.html +11 -11
  73. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  74. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  75. package/docs/interfaces/FloorplanFloorData.html +9 -9
  76. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  77. package/docs/interfaces/FloorplanObserver.html +9 -9
  78. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  79. package/docs/interfaces/FloorplanPosition.html +7 -7
  80. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  81. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  82. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  83. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  84. package/docs/interfaces/FloorplanServerData.html +7 -7
  85. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  86. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  87. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  88. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  89. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  90. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  91. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  92. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  94. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  95. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  96. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  97. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  98. package/docs/interfaces/LineJson.html +7 -7
  99. package/docs/interfaces/MinMax.html +7 -7
  100. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  101. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  102. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  103. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  104. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  105. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  106. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  107. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  108. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  110. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  111. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  112. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  113. package/docs/interfaces/Object3DHelperState.html +8 -8
  114. package/docs/interfaces/OpenParameter.html +7 -7
  115. package/docs/interfaces/PaintBrushAction.html +12 -12
  116. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  117. package/docs/interfaces/PaintBrushState.html +10 -10
  118. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  119. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  120. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  121. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  123. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  124. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  125. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  126. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  127. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  128. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  129. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  130. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  132. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  133. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  136. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  137. package/docs/interfaces/Point.html +8 -8
  138. package/docs/interfaces/PointJson.html +8 -8
  139. package/docs/interfaces/Room.html +9 -9
  140. package/docs/interfaces/RoomInfo.html +7 -7
  141. package/docs/interfaces/RoomLabel.html +14 -14
  142. package/docs/interfaces/RoomRules.html +5 -5
  143. package/docs/interfaces/Rooms.html +5 -5
  144. package/docs/interfaces/Scissor.html +9 -9
  145. package/docs/interfaces/State.html +8 -8
  146. package/docs/interfaces/TagCache.html +10 -10
  147. package/docs/interfaces/TagConfig.html +10 -10
  148. package/docs/interfaces/TagIconUrl.html +9 -9
  149. package/docs/interfaces/Tags.html +9 -9
  150. package/docs/interfaces/TemporaryState.html +6 -6
  151. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  152. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  153. package/docs/modules/Util.html +5 -5
  154. package/docs/modules.html +4 -4
  155. package/docs/types/ArrayPosition.html +5 -5
  156. package/docs/types/CSS3DRenderExportType.html +5 -5
  157. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  158. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  159. package/docs/types/Color.html +5 -5
  160. package/docs/types/ContentTypeConfigKey.html +5 -5
  161. package/docs/types/ContentTypeMap.html +5 -5
  162. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  163. package/docs/types/Create3DElementReturnType.html +5 -5
  164. package/docs/types/CruisePluginExportType.html +5 -5
  165. package/docs/types/Direction-1.html +5 -5
  166. package/docs/types/Direction4.html +5 -5
  167. package/docs/types/FloorplanRuleLabels.html +5 -5
  168. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  169. package/docs/types/GuideLinePluginExportType.html +5 -5
  170. package/docs/types/HelperEventMap.html +5 -5
  171. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  172. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  173. package/docs/types/MediaData.html +5 -5
  174. package/docs/types/MediaStore.html +5 -5
  175. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  176. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  177. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  178. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  179. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  180. package/docs/types/MoveArgs.html +5 -5
  181. package/docs/types/MoveOpts.html +5 -5
  182. package/docs/types/Object3DHelperEventMap.html +5 -5
  183. package/docs/types/ObjectFit.html +5 -5
  184. package/docs/types/PaintBrushEventMap.html +5 -5
  185. package/docs/types/PanoCompassPluginData.html +5 -5
  186. package/docs/types/PanoCompassPluginExportType.html +5 -5
  187. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  188. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  189. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  190. package/docs/types/PanoIndex.html +5 -5
  191. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  192. package/docs/types/PanoMeasureReturnType.html +5 -5
  193. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  194. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  195. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  196. package/docs/types/PlaneTag.html +5 -5
  197. package/docs/types/PlaneTagElement.html +5 -5
  198. package/docs/types/Point2DElement.html +5 -5
  199. package/docs/types/Point2DTag.html +5 -5
  200. package/docs/types/Point3DElement.html +5 -5
  201. package/docs/types/Point3DTag.html +5 -5
  202. package/docs/types/PointTag.html +5 -5
  203. package/docs/types/PointTagElement.html +5 -5
  204. package/docs/types/Position.html +5 -5
  205. package/docs/types/RotateArgs.html +5 -5
  206. package/docs/types/RotateOpts.html +5 -5
  207. package/docs/types/RuleLabelsKey.html +5 -5
  208. package/docs/types/RuleLabelsValue.html +5 -5
  209. package/docs/types/StickType.html +5 -5
  210. package/docs/types/Tag.html +5 -5
  211. package/docs/types/Tag2D.html +5 -5
  212. package/docs/types/Tag3D.html +5 -5
  213. package/docs/types/TagContentType.html +5 -5
  214. package/docs/types/TagDimensionType.html +5 -5
  215. package/docs/types/TagElement.html +5 -5
  216. package/docs/types/TagEvents.html +5 -5
  217. package/docs/types/TagHooks.html +5 -5
  218. package/docs/types/TagIconSize.html +5 -5
  219. package/docs/types/TagId.html +5 -5
  220. package/docs/types/TagPointType.html +5 -5
  221. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  222. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  223. package/docs/types/WorkCode.html +5 -5
  224. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  225. package/docs/variables/PLUGIN.html +5 -5
  226. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  227. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  228. package/docs/variables/VERSION.html +5 -5
  229. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  230. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  231. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  232. package/libs/Object3DHelperPlugin/Controller.js +36 -34
  233. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +66 -53
  234. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +32 -32
  235. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +26 -26
  236. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  237. package/libs/PanoTagPlugin/controller/index.js +1 -1
  238. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +1 -1
  239. package/libs/PanoTagPlugin/utils/tag/format.js +10 -2
  240. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- var O = Object.defineProperty;
1
+ var g = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
3
  var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
- var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
4
+ var b = (i, s, e) => s in i ? g(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
5
5
  for (var e in s || (s = {}))
6
6
  M.call(s, e) && b(i, e, s[e]);
7
7
  if (w)
@@ -11,25 +11,25 @@ var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var p = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
13
13
  var u = (i, s, e) => new Promise((r, t) => {
14
- var l = (n) => {
14
+ var o = (l) => {
15
15
  try {
16
- d(e.next(n));
17
- } catch (h) {
18
- t(h);
16
+ h(e.next(l));
17
+ } catch (c) {
18
+ t(c);
19
19
  }
20
- }, c = (n) => {
20
+ }, m = (l) => {
21
21
  try {
22
- d(e.throw(n));
23
- } catch (h) {
24
- t(h);
22
+ h(e.throw(l));
23
+ } catch (c) {
24
+ t(c);
25
25
  }
26
- }, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
- d((e = e.apply(i, s)).next());
26
+ }, h = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, m);
27
+ h((e = e.apply(i, s)).next());
28
28
  });
29
29
  import { Controller as R } from "../base/BasePlugin.js";
30
30
  import "three";
31
- import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
- import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
31
+ import { MoveHelper as P } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import { RotateHelper as j } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
33
  import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
34
34
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
35
35
  import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
@@ -66,17 +66,17 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
66
66
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
67
67
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
68
68
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
69
- const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
69
+ const O = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${O}`, _ = () => {
70
70
  console.error(`${C} is disposed`);
71
71
  }, G = () => {
72
72
  console.warn(`${C} is disabled`);
73
73
  }, N = () => {
74
74
  console.error(`${C} is disabled`);
75
75
  };
76
- class je extends R {
76
+ class Pe extends R {
77
77
  constructor(e) {
78
78
  super(e);
79
- p(this, "version", g);
79
+ p(this, "version", O);
80
80
  p(this, "name", H);
81
81
  p(this, "state", {
82
82
  visible: !0,
@@ -128,33 +128,35 @@ class je extends R {
128
128
  }
129
129
  const t = new I();
130
130
  this.objectHelperMap.set(e, t);
131
- const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: d = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
132
- if (d) {
133
- const o = new j(e), a = new v(this.five, F, e, o);
131
+ const o = (S = this.five.getElement()) == null ? void 0 : S.parentElement, m = this.five.camera, { moveHelper: h = !0, rotateHelper: l = !0, scaleHelper: c = !0 } = r;
132
+ if (h) {
133
+ const n = new P(e), a = new v(this.five, F, e, n);
134
134
  t.addControllers({ moveController: a.helperController });
135
135
  }
136
- if (n) {
137
- let o;
138
- l && c && (o = { container: l });
139
- const a = new P(e, o), m = new v(this.five, k, e, a);
140
- t.addControllers({ rotateController: m.helperController });
136
+ if (l) {
137
+ let n;
138
+ o && m && (n = { container: o });
139
+ const a = new j(e, n), d = new v(this.five, k, e, a);
140
+ t.addControllers({ rotateController: d.helperController });
141
141
  }
142
- if (h && l) {
143
- const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
142
+ if (c && o) {
143
+ const n = new y(e, o, m, this.five.scene), a = new v(this.five, B, e, n);
144
144
  t.addControllers({ scaleController: a.helperController });
145
145
  }
146
146
  e.isCSS3DObjectPlus && $(this.five).then(() => {
147
- var m, D;
148
- const o = e, a = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : W(this.five);
149
- a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
147
+ var n, a;
148
+ if (e.isCSS3DObjectPlus) {
149
+ const d = e, D = (n = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? n : W(this.five);
150
+ D && e && (this.css3DObjectParentMap.set(d, d.parent), d.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(D), (a = this.css3DRender.getBehindCSS3DObjectGroup()) == null || a.add(d), this.css3DRender.render(this.five.camera));
151
+ }
150
152
  });
151
153
  }
152
154
  removeObject3DHelper(e) {
153
155
  const r = this.objectHelperMap.get(e);
154
156
  if (!!r) {
155
157
  if (e.isCSS3DObjectPlus) {
156
- const t = e, l = this.css3DObjectParentMap.get(t);
157
- l == null || l.add(t), this.css3DRender.render(this.five.camera);
158
+ const t = e, o = this.css3DObjectParentMap.get(t);
159
+ o == null || o.add(t), this.css3DRender.render(this.five.camera);
158
160
  }
159
161
  this.objectHelperMap.delete(e), r.dispose();
160
162
  }
@@ -180,7 +182,7 @@ class je extends R {
180
182
  }
181
183
  }
182
184
  export {
183
- je as Object3DHelperController,
185
+ Pe as Object3DHelperController,
184
186
  C as PLUGIN,
185
- g as VERSION
187
+ O as VERSION
186
188
  };
@@ -1,97 +1,110 @@
1
- import { SvelteComponent as G, init as U, safe_not_equal as q, append_styles as A, element as H, svg_element as _, attr as l, toggle_class as g, set_style as v, insert as L, append as m, transition_in as y, group_outros as I, transition_out as j, check_outros as M, detach as B, add_render_callback as O, create_in_transition as R, identity as b, create_out_transition as V } from "../../../../vendor/svelte/internal/index.js";
2
- import { draw as C } from "../../../../vendor/svelte/transition/index.js";
3
- import { uuid as E } from "../../../../shared-utils/uuid.js";
4
- function F(t) {
1
+ import { SvelteComponent as G, init as U, safe_not_equal as q, append_styles as A, empty as H, insert as y, noop as j, detach as w, element as I, svg_element as h, attr as l, toggle_class as g, set_style as v, append as m, transition_in as C, group_outros as M, transition_out as N, check_outros as O, add_render_callback as R, create_in_transition as V, identity as p, create_out_transition as E } from "../../../../vendor/svelte/internal/index.js";
2
+ import { draw as z } from "../../../../vendor/svelte/transition/index.js";
3
+ import { uuid as F } from "../../../../shared-utils/uuid.js";
4
+ function J(t) {
5
5
  A(t, "svelte-xuejcm", ".line.svelte-xuejcm{position:absolute;pointer-events:none}.line.vertical.svelte-xuejcm{transform:rotate(-90deg) translate3d(0.03125rem, 0, 0.625rem);transform-origin:0 0}.line.horizontal.svelte-xuejcm{transform:translate3d(0, -0.03125rem, 0.625rem)}.straight-line.svelte-xuejcm{display:block;width:100%;height:100%;overflow:visible}");
6
6
  }
7
- function z(t) {
8
- let e, i, h, r, s;
7
+ function L(t) {
8
+ let e, i, o, n, s, r, _, f = t[3] && B(t);
9
9
  return {
10
10
  c() {
11
- e = _("path"), l(e, "fill", "none"), l(e, "stroke", i = t[4] ? `url(#${t[10]})` : t[5]), l(e, "stroke-width", 1), l(e, "d", t[6]);
11
+ e = I("div"), i = h("svg"), o = h("defs"), n = h("linearGradient"), s = h("stop"), r = h("stop"), f && f.c(), l(s, "offset", "25%"), l(s, "stop-color", t[5]), l(s, "stop-opacity", "1"), l(r, "offset", "100%"), l(r, "stop-color", t[5]), l(r, "stop-opacity", "0.5"), l(n, "x1", 0.5), l(n, "y1", 0.5), l(n, "x2", t[8]), l(n, "y2", 0.5), l(n, "id", t[10]), l(n, "gradientUnits", "userSpaceOnUse"), l(i, "class", "straight-line svelte-xuejcm"), l(i, "viewBox", _ = "0 0 " + t[8] + " " + t[7]), l(i, "preserveAspectRatio", "none"), l(e, "class", "line svelte-xuejcm"), g(e, "vertical", t[9]), g(e, "horizontal", !t[9]), v(e, "width", t[8] + "px"), v(e, "height", t[7] + "px");
12
12
  },
13
13
  m(a, d) {
14
- L(a, e, d), s = !0;
14
+ y(a, e, d), m(e, i), m(i, o), m(o, n), m(n, s), m(n, r), f && f.m(i, null);
15
15
  },
16
16
  p(a, d) {
17
- t = a, (!s || d & 48 && i !== (i = t[4] ? `url(#${t[10]})` : t[5])) && l(e, "stroke", i), (!s || d & 64) && l(e, "d", t[6]);
17
+ d & 32 && l(s, "stop-color", a[5]), d & 32 && l(r, "stop-color", a[5]), d & 256 && l(n, "x2", a[8]), a[3] ? f ? (f.p(a, d), d & 8 && C(f, 1)) : (f = B(a), f.c(), C(f, 1), f.m(i, null)) : f && (M(), N(f, 1, 1, () => {
18
+ f = null;
19
+ }), O()), d & 384 && _ !== (_ = "0 0 " + a[8] + " " + a[7]) && l(i, "viewBox", _), d & 512 && g(e, "vertical", a[9]), d & 512 && g(e, "horizontal", !a[9]), d & 256 && v(e, "width", a[8] + "px"), d & 128 && v(e, "height", a[7] + "px");
18
20
  },
19
- i(a) {
20
- s || (a && O(() => {
21
- r && r.end(1), h = R(e, C, {
21
+ d(a) {
22
+ a && w(e), f && f.d();
23
+ }
24
+ };
25
+ }
26
+ function B(t) {
27
+ let e, i, o, n, s;
28
+ return {
29
+ c() {
30
+ e = h("path"), l(e, "fill", "none"), l(e, "stroke", i = t[4] ? `url(#${t[10]})` : t[5]), l(e, "stroke-width", 1), l(e, "d", t[6]);
31
+ },
32
+ m(r, _) {
33
+ y(r, e, _), s = !0;
34
+ },
35
+ p(r, _) {
36
+ t = r, (!s || _ & 48 && i !== (i = t[4] ? `url(#${t[10]})` : t[5])) && l(e, "stroke", i), (!s || _ & 64) && l(e, "d", t[6]);
37
+ },
38
+ i(r) {
39
+ s || (r && R(() => {
40
+ n && n.end(1), o = V(e, z, {
22
41
  duration: t[2],
23
42
  delay: t[0],
24
- easing: b
25
- }), h.start();
43
+ easing: p
44
+ }), o.start();
26
45
  }), s = !0);
27
46
  },
28
- o(a) {
29
- h && h.invalidate(), a && (r = V(e, C, {
47
+ o(r) {
48
+ o && o.invalidate(), r && (n = E(e, z, {
30
49
  duration: t[2],
31
50
  delay: t[1],
32
- easing: b
51
+ easing: p
33
52
  })), s = !1;
34
53
  },
35
- d(a) {
36
- a && B(e), a && r && r.end();
54
+ d(r) {
55
+ r && w(e), r && n && n.end();
37
56
  }
38
57
  };
39
58
  }
40
- function J(t) {
41
- let e, i, h, r, s, a, d, n = t[3] && z(t);
59
+ function K(t) {
60
+ let e, i = t[8] && L(t);
42
61
  return {
43
62
  c() {
44
- e = H("div"), i = _("svg"), h = _("defs"), r = _("linearGradient"), s = _("stop"), a = _("stop"), n && n.c(), l(s, "offset", "25%"), l(s, "stop-color", t[5]), l(s, "stop-opacity", "1"), l(a, "offset", "100%"), l(a, "stop-color", t[5]), l(a, "stop-opacity", "0.5"), l(r, "x1", 0.5), l(r, "y1", 0.5), l(r, "x2", t[8]), l(r, "y2", 0.5), l(r, "id", t[10]), l(r, "gradientUnits", "userSpaceOnUse"), l(i, "class", "straight-line svelte-xuejcm"), l(i, "viewBox", d = "0 0 " + t[8] + " " + t[7]), l(i, "preserveAspectRatio", "none"), l(e, "class", "line svelte-xuejcm"), g(e, "vertical", t[9]), g(e, "horizontal", !t[9]), v(e, "width", t[8] + "px"), v(e, "height", t[7] + "px");
45
- },
46
- m(o, u) {
47
- L(o, e, u), m(e, i), m(i, h), m(h, r), m(r, s), m(r, a), n && n.m(i, null);
48
- },
49
- p(o, [u]) {
50
- u & 32 && l(s, "stop-color", o[5]), u & 32 && l(a, "stop-color", o[5]), u & 256 && l(r, "x2", o[8]), o[3] ? n ? (n.p(o, u), u & 8 && y(n, 1)) : (n = z(o), n.c(), y(n, 1), n.m(i, null)) : n && (I(), j(n, 1, 1, () => {
51
- n = null;
52
- }), M()), u & 384 && d !== (d = "0 0 " + o[8] + " " + o[7]) && l(i, "viewBox", d), u & 512 && g(e, "vertical", o[9]), u & 512 && g(e, "horizontal", !o[9]), u & 256 && v(e, "width", o[8] + "px"), u & 128 && v(e, "height", o[7] + "px");
63
+ i && i.c(), e = H();
53
64
  },
54
- i(o) {
55
- y(n);
65
+ m(o, n) {
66
+ i && i.m(o, n), y(o, e, n);
56
67
  },
57
- o(o) {
58
- j(n);
68
+ p(o, [n]) {
69
+ o[8] ? i ? i.p(o, n) : (i = L(o), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
59
70
  },
71
+ i: j,
72
+ o: j,
60
73
  d(o) {
61
- o && B(e), n && n.d();
74
+ i && i.d(o), o && w(e);
62
75
  }
63
76
  };
64
77
  }
65
- function K(t, e, i) {
66
- let h, r, s, a, { inDelay: d = 0 } = e, { outDelay: n = 0 } = e, { duration: o = 1e3 } = e, { unfolded: u } = e, { length: c } = e, { direction: w = "horizontal" } = e, { useLinearColor: k = !1 } = e, { color: D = "white" } = e;
67
- const S = E();
68
- return t.$$set = (f) => {
69
- "inDelay" in f && i(0, d = f.inDelay), "outDelay" in f && i(1, n = f.outDelay), "duration" in f && i(2, o = f.duration), "unfolded" in f && i(3, u = f.unfolded), "length" in f && i(11, c = f.length), "direction" in f && i(12, w = f.direction), "useLinearColor" in f && i(4, k = f.useLinearColor), "color" in f && i(5, D = f.color);
78
+ function P(t, e, i) {
79
+ let o, n, s, r, { inDelay: _ = 0 } = e, { outDelay: f = 0 } = e, { duration: a = 1e3 } = e, { unfolded: d } = e, { length: c } = e, { direction: k = "horizontal" } = e, { useLinearColor: b = !1 } = e, { color: D = "white" } = e;
80
+ const S = F();
81
+ return t.$$set = (u) => {
82
+ "inDelay" in u && i(0, _ = u.inDelay), "outDelay" in u && i(1, f = u.outDelay), "duration" in u && i(2, a = u.duration), "unfolded" in u && i(3, d = u.unfolded), "length" in u && i(11, c = u.length), "direction" in u && i(12, k = u.direction), "useLinearColor" in u && i(4, b = u.useLinearColor), "color" in u && i(5, D = u.color);
70
83
  }, t.$$.update = () => {
71
- t.$$.dirty & 4096 && i(9, h = w === "vertical"), t.$$.dirty & 2048 && i(8, r = c), t.$$.dirty & 2048 && i(6, a = `M0.5 0.5 H ${c}`);
84
+ t.$$.dirty & 4096 && i(9, o = k === "vertical"), t.$$.dirty & 2048 && i(8, n = c), t.$$.dirty & 2048 && i(6, r = `M0.5 0.5 H ${c}`);
72
85
  }, i(7, s = 1), [
86
+ _,
87
+ f,
88
+ a,
73
89
  d,
74
- n,
75
- o,
76
- u,
77
- k,
90
+ b,
78
91
  D,
79
- a,
80
- s,
81
92
  r,
82
- h,
93
+ s,
94
+ n,
95
+ o,
83
96
  S,
84
97
  c,
85
- w
98
+ k
86
99
  ];
87
100
  }
88
- class T extends G {
101
+ class X extends G {
89
102
  constructor(e) {
90
103
  super(), U(
91
104
  this,
92
105
  e,
106
+ P,
93
107
  K,
94
- J,
95
108
  q,
96
109
  {
97
110
  inDelay: 0,
@@ -103,10 +116,10 @@ class T extends G {
103
116
  useLinearColor: 4,
104
117
  color: 5
105
118
  },
106
- F
119
+ J
107
120
  );
108
121
  }
109
122
  }
110
123
  export {
111
- T as Straight
124
+ X as Straight
112
125
  };
@@ -1,78 +1,78 @@
1
- import { SvelteComponent as q, init as A, safe_not_equal as F, append_styles as M, element as w, space as $, create_component as C, attr as _, set_style as u, toggle_class as b, insert as U, append as f, mount_component as D, listen as B, transition_in as I, transition_out as R, detach as E, destroy_component as j, getContext as G } from "../../../vendor/svelte/internal/index.js";
2
- import { Shadow as H } from "./Shadow.js";
3
- import { Icon as J } from "./Icon/Icon.js";
4
- import { Image_Default_Point as K } from "../../Assets/Icon.js";
5
- import { px2rem as y } from "../../utils/px2rem.js";
6
- function L(o) {
7
- M(o, "svelte-u8kmhd", '@charset "UTF-8";.click-helper.svelte-u8kmhd.svelte-u8kmhd{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-u8kmhd.svelte-u8kmhd{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-u8kmhd.svelte-u8kmhd,.tag-unfolded-point.svelte-u8kmhd.svelte-u8kmhd{transition:all 0.5s}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:1}.tag-point-wrapper.folded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:0}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:1;scale:1}');
8
- }
1
+ import { SvelteComponent as A, init as F, safe_not_equal as M, append_styles as U, element as w, space as $, create_component as D, attr as y, set_style as u, toggle_class as _, insert as B, append as f, mount_component as I, listen as E, transition_in as R, transition_out as j, detach as G, destroy_component as q, getContext as H } from "../../../vendor/svelte/internal/index.js";
2
+ import { Shadow as J } from "./Shadow.js";
3
+ import { Icon as K } from "./Icon/Icon.js";
4
+ import { Image_Default_Point as L } from "../../Assets/Icon.js";
5
+ import { px2rem as b } from "../../utils/px2rem.js";
9
6
  function N(o) {
10
- let t, s, p, l, h, a, c, n, r, d, g, k;
11
- return l = new H({
7
+ U(o, "svelte-u8kmhd", '@charset "UTF-8";.click-helper.svelte-u8kmhd.svelte-u8kmhd{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-u8kmhd.svelte-u8kmhd{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-u8kmhd.svelte-u8kmhd,.tag-unfolded-point.svelte-u8kmhd.svelte-u8kmhd{transition:all 0.5s}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:1}.tag-point-wrapper.folded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:0}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:1;scale:1}');
8
+ }
9
+ function O(o) {
10
+ let t, s, p, d, h, a, c, n, r, l, g, k;
11
+ return d = new J({
12
12
  props: {
13
13
  center: !0,
14
14
  blurRadius: 12,
15
15
  spreadRadius: 5
16
16
  }
17
- }), r = new J({
17
+ }), r = new K({
18
18
  props: {
19
19
  icon: o[2],
20
20
  width: o[1]
21
21
  }
22
22
  }), {
23
23
  c() {
24
- t = w("div"), s = w("div"), p = $(), C(l.$$.fragment), h = $(), a = w("div"), c = $(), n = w("div"), C(r.$$.fragment), _(s, "class", "click-helper svelte-u8kmhd"), _(a, "class", "tag-unfolded-point svelte-u8kmhd"), u(a, "transition-delay", (o[3] ? T : 0) + "ms"), _(n, "class", "tag-folded-point svelte-u8kmhd"), u(n, "transition-delay", (o[3] ? T : 0) + "ms"), _(t, "class", "tag-point-wrapper svelte-u8kmhd"), b(t, "unfolded", o[0]), b(t, "folded", o[3]), u(t, "width", y(o[1])), u(t, "height", y(o[1]));
24
+ t = w("div"), s = w("div"), p = $(), D(d.$$.fragment), h = $(), a = w("div"), c = $(), n = w("div"), D(r.$$.fragment), y(s, "class", "click-helper svelte-u8kmhd"), y(a, "class", "tag-unfolded-point svelte-u8kmhd"), u(a, "transition-delay", (o[3] ? T : 0) + "ms"), y(n, "class", "tag-folded-point svelte-u8kmhd"), u(n, "transition-delay", (o[3] ? T : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-u8kmhd"), _(t, "unfolded", o[0]), _(t, "folded", o[3]), u(t, "width", b(o[1])), u(t, "height", b(o[1]));
25
25
  },
26
26
  m(e, i) {
27
- U(e, t, i), f(t, s), f(t, p), D(l, t, null), f(t, h), f(t, a), f(t, c), f(t, n), D(r, n, null), d = !0, g || (k = B(s, "click", o[4]), g = !0);
27
+ B(e, t, i), f(t, s), f(t, p), I(d, t, null), f(t, h), f(t, a), f(t, c), f(t, n), I(r, n, null), l = !0, g || (k = E(s, "click", o[4]), g = !0);
28
28
  },
29
29
  p(e, [i]) {
30
30
  i & 8 && u(a, "transition-delay", (e[3] ? T : 0) + "ms");
31
31
  const m = {};
32
- i & 4 && (m.icon = e[2]), i & 2 && (m.width = e[1]), r.$set(m), i & 8 && u(n, "transition-delay", (e[3] ? T : 0) + "ms"), (!d || i & 1) && b(t, "unfolded", e[0]), (!d || i & 8) && b(t, "folded", e[3]), i & 2 && u(t, "width", y(e[1])), i & 2 && u(t, "height", y(e[1]));
32
+ i & 4 && (m.icon = e[2]), i & 2 && (m.width = e[1]), r.$set(m), i & 8 && u(n, "transition-delay", (e[3] ? T : 0) + "ms"), (!l || i & 1) && _(t, "unfolded", e[0]), (!l || i & 8) && _(t, "folded", e[3]), i & 2 && u(t, "width", b(e[1])), i & 2 && u(t, "height", b(e[1]));
33
33
  },
34
34
  i(e) {
35
- d || (I(l.$$.fragment, e), I(r.$$.fragment, e), d = !0);
35
+ l || (R(d.$$.fragment, e), R(r.$$.fragment, e), l = !0);
36
36
  },
37
37
  o(e) {
38
- R(l.$$.fragment, e), R(r.$$.fragment, e), d = !1;
38
+ j(d.$$.fragment, e), j(r.$$.fragment, e), l = !1;
39
39
  },
40
40
  d(e) {
41
- e && E(t), j(l), j(r), g = !1, k();
41
+ e && G(t), q(d), q(r), g = !1, k();
42
42
  }
43
43
  };
44
44
  }
45
45
  const T = 800;
46
- function O(o, t, s) {
47
- let p, l, h, a;
48
- const c = G("hooks");
49
- let { tag: n } = t, r, d = !1;
46
+ function Q(o, t, s) {
47
+ let p, d, h, a;
48
+ const c = H("hooks");
49
+ let { tag: n } = t, r, l = !1;
50
50
  const g = () => {
51
- r !== void 0 && clearTimeout(r), d = !0, r = setTimeout(
51
+ r !== void 0 && clearTimeout(r), l = !0, r = setTimeout(
52
52
  () => {
53
- d = !1;
53
+ l = !1;
54
54
  },
55
55
  800
56
56
  );
57
57
  }, k = (e) => {
58
- d || c.emit("click", { event: e, target: "TagPoint", tag: n });
58
+ l || c.emit("click", { event: e, target: "TagPoint", tag: n });
59
59
  };
60
60
  return o.$$set = (e) => {
61
61
  "tag" in e && s(5, n = e.tag);
62
62
  }, o.$$.update = () => {
63
- var e, i, m;
64
- o.$$.dirty & 32 && s(0, p = (e = n.state) == null ? void 0 : e.unfolded), o.$$.dirty & 1 && s(3, l = !p), o.$$.dirty & 32 && s(2, h = (m = (i = n.style) == null ? void 0 : i.point) != null ? m : { url: K }), o.$$.dirty & 32 && s(1, a = (() => {
65
- var P, S, z;
66
- const v = (z = (S = (P = n.style) == null ? void 0 : P.point) == null ? void 0 : S.size) != null ? z : "S";
63
+ var e, i, m, P;
64
+ o.$$.dirty & 32 && s(0, p = (e = n.state) == null ? void 0 : e.unfolded), o.$$.dirty & 1 && s(3, d = !p), o.$$.dirty & 32 && s(2, h = (m = (i = n.style) == null ? void 0 : i.point) != null && m.url ? (P = n.style) == null ? void 0 : P.point : { url: L }), o.$$.dirty & 32 && s(1, a = (() => {
65
+ var S, z, C;
66
+ const v = (C = (z = (S = n.style) == null ? void 0 : S.point) == null ? void 0 : z.size) != null ? C : "S";
67
67
  return typeof v == "number" ? v : v === "S" ? 20 : v === "M" ? 24 : 20;
68
68
  })());
69
- }, g(), [p, a, h, l, k, n];
69
+ }, g(), [p, a, h, d, k, n];
70
70
  }
71
- class Z extends q {
71
+ class x extends A {
72
72
  constructor(t) {
73
- super(), A(this, t, O, N, F, { tag: 5 }, L);
73
+ super(), F(this, t, Q, O, M, { tag: 5 }, N);
74
74
  }
75
75
  }
76
76
  export {
77
- Z as TagPoint
77
+ x as TagPoint
78
78
  };
@@ -1,12 +1,12 @@
1
- import { SvelteComponent as v, init as y, safe_not_equal as _, append_styles as $, element as s, create_component as d, space as u, attr as c, insert as g, mount_component as h, append as m, transition_in as f, transition_out as p, detach as w, destroy_component as x, noop as b } from "../../../vendor/svelte/internal/index.js";
2
- import { Shadow as k } from "../Common/Shadow.js";
3
- import { Icon as z } from "../Common/Icon/Icon.js";
4
- function j(a) {
5
- $(a, "svelte-1lmyni6", ".wrapper.svelte-1lmyni6{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-1lmyni6{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-1lmyni6{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
6
- }
1
+ import { SvelteComponent as v, init as _, safe_not_equal as $, append_styles as b, element as s, create_component as u, space as g, attr as c, insert as h, mount_component as w, append as m, transition_in as f, transition_out as p, detach as x, destroy_component as y, noop as k } from "../../../vendor/svelte/internal/index.js";
2
+ import { Shadow as z } from "../Common/Shadow.js";
3
+ import { Icon as j } from "../Common/Icon/Icon.js";
7
4
  function C(a) {
5
+ b(a, "svelte-1lmyni6", ".wrapper.svelte-1lmyni6{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-1lmyni6{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-1lmyni6{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
6
+ }
7
+ function D(a) {
8
8
  let e, i, r, o, n;
9
- return i = new k({
9
+ return i = new z({
10
10
  props: {
11
11
  outDelay: 0,
12
12
  inDelay: 0,
@@ -18,12 +18,12 @@ function C(a) {
18
18
  }
19
19
  }), {
20
20
  c() {
21
- e = s("div"), d(i.$$.fragment), r = u(), o = s("div"), o.textContent = `${a[0]}`, c(o, "class", "text svelte-1lmyni6"), c(e, "class", "text-wrapper svelte-1lmyni6");
21
+ e = s("div"), u(i.$$.fragment), r = g(), o = s("div"), o.textContent = `${a[1]}`, c(o, "class", "text svelte-1lmyni6"), c(e, "class", "text-wrapper svelte-1lmyni6");
22
22
  },
23
23
  m(t, l) {
24
- g(t, e, l), h(i, e, null), m(e, r), m(e, o), n = !0;
24
+ h(t, e, l), w(i, e, null), m(e, r), m(e, o), n = !0;
25
25
  },
26
- p: b,
26
+ p: k,
27
27
  i(t) {
28
28
  n || (f(i.$$.fragment, t), n = !0);
29
29
  },
@@ -31,23 +31,23 @@ function C(a) {
31
31
  p(i.$$.fragment, t), n = !1;
32
32
  },
33
33
  d(t) {
34
- t && w(e), x(i);
34
+ t && x(e), y(i);
35
35
  }
36
36
  };
37
37
  }
38
- function D(a) {
38
+ function R(a) {
39
39
  let e, i, r, o;
40
- i = new z({ props: { icon: a[1] } });
41
- let n = a[0] && C(a);
40
+ i = new j({ props: { icon: a[0] } });
41
+ let n = a[1] && D(a);
42
42
  return {
43
43
  c() {
44
- e = s("div"), d(i.$$.fragment), r = u(), n && n.c(), c(e, "class", "wrapper svelte-1lmyni6");
44
+ e = s("div"), u(i.$$.fragment), r = g(), n && n.c(), c(e, "class", "wrapper svelte-1lmyni6");
45
45
  },
46
46
  m(t, l) {
47
- g(t, e, l), h(i, e, null), m(e, r), n && n.m(e, null), o = !0;
47
+ h(t, e, l), w(i, e, null), m(e, r), n && n.m(e, null), o = !0;
48
48
  },
49
49
  p(t, [l]) {
50
- t[0] && n.p(t, l);
50
+ t[1] && n.p(t, l);
51
51
  },
52
52
  i(t) {
53
53
  o || (f(i.$$.fragment, t), f(n), o = !0);
@@ -56,22 +56,22 @@ function D(a) {
56
56
  p(i.$$.fragment, t), p(n), o = !1;
57
57
  },
58
58
  d(t) {
59
- t && w(e), x(i), n && n.d();
59
+ t && x(e), y(i), n && n.d();
60
60
  }
61
61
  };
62
62
  }
63
- function R(a, e, i) {
64
- var t;
65
- let { tag: r } = e, o = (t = r.data.title) != null ? t : r.data.text, n = r.data.icon;
66
- return a.$$set = (l) => {
67
- "tag" in l && i(2, r = l.tag);
63
+ function S(a, e, i) {
64
+ var t, l;
65
+ let { tag: r } = e, o = (t = r.data.icon) != null ? t : r.style.point, n = (l = r.data.title) != null ? l : r.data.text;
66
+ return a.$$set = (d) => {
67
+ "tag" in d && i(2, r = d.tag);
68
68
  }, [o, n, r];
69
69
  }
70
- class L extends v {
70
+ class T extends v {
71
71
  constructor(e) {
72
- super(), y(this, e, R, D, _, { tag: 2 }, j);
72
+ super(), _(this, e, S, R, $, { tag: 2 }, C);
73
73
  }
74
74
  }
75
75
  export {
76
- L as LinkTag
76
+ T as LinkTag
77
77
  };
@@ -97,7 +97,7 @@ function x(i, t, e) {
97
97
  "withAnimation" in m && e(0, _ = m.withAnimation), "tag" in m && e(1, s = m.tag), "mediaStore" in m && e(2, S = m.mediaStore), "state" in m && e(3, w = m.state), "temporaryState" in m && e(4, v = m.temporaryState);
98
98
  }, i.$$.update = () => {
99
99
  var m, y, k, T, A, P, z, C;
100
- i.$$.dirty & 2 && e(12, a = (() => !(s.contentType === "Link" || s.contentType === "Audio" && s.data.appearance === "plane"))()), i.$$.dirty & 2 && e(11, o = s.id), i.$$.dirty & 2 && e(10, n = !((m = s.pointTagStyle) != null && m.leftPercent) || !((y = s.pointTagStyle) != null && y.topPercent) || s.enabled === !1 || !s.state), i.$$.dirty & 2 && e(9, f = !((k = s.state) != null && k.visible) || !!((T = s.temporaryState) != null && T.visible)), i.$$.dirty & 2 && e(8, r = (A = s.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(7, l = ((P = s.pointTagStyle) == null ? void 0 : P.leftPercent) + "%"), i.$$.dirty & 2 && e(6, b = ((z = s.pointTagStyle) == null ? void 0 : z.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (C = s.state) != null && C.unfolded ? 1 : 0);
100
+ i.$$.dirty & 2 && e(12, a = (() => !(s.contentType === "Link" || s.contentType === "Audio" && s.data.appearance === "plane"))()), i.$$.dirty & 2 && e(11, o = s.id), i.$$.dirty & 2 && e(10, n = !((m = s.pointTagStyle) != null && m.leftPercent) || !((y = s.pointTagStyle) != null && y.topPercent) || s.enabled === !1 || !s.state), i.$$.dirty & 2 && e(9, f = !((k = s.state) != null && k.visible) || ((T = s.temporaryState) == null ? void 0 : T.visible) === !1), i.$$.dirty & 2 && e(8, r = (A = s.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(7, l = ((P = s.pointTagStyle) == null ? void 0 : P.leftPercent) + "%"), i.$$.dirty & 2 && e(6, b = ((z = s.pointTagStyle) == null ? void 0 : z.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (C = s.state) != null && C.unfolded ? 1 : 0);
101
101
  }, [
102
102
  _,
103
103
  s,
@@ -44,7 +44,7 @@ import { resizeObserver as D } from "../utils/resizeObserver.js";
44
44
  import { TagComputer as z } from "./TagComputer.js";
45
45
  import { CSS3DRenderPlugin as N } from "../../CSS3DRenderPlugin/index.js";
46
46
  import { formatTag as W } from "../utils/tag/format.js";
47
- const A = "2.0.0-dev.6", m = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, re = (h) => `${m}--${h}`;
47
+ const A = "2.0.0-dev.7", m = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, re = (h) => `${m}--${h}`;
48
48
  class ae extends z {
49
49
  constructor(e, t) {
50
50
  super(e);
@@ -94,7 +94,7 @@ interface ContentTypeMapInterface {
94
94
  title?: string;
95
95
  /** @deprecated: linkType 不再和样式绑定,使用 iconUrl 代替 */
96
96
  linkType?: 'vr' | 'normal';
97
- icon: TagIconUrl;
97
+ icon?: TagIconUrl;
98
98
  extraData?: Object;
99
99
  };
100
100
  /** VR跳转标签 */
@@ -1,10 +1,18 @@
1
- function i(n) {
1
+ function o(n) {
2
+ var i, t;
2
3
  if (!n.stickType) {
3
4
  const e = (() => n.pointType === "PointTag" && n.dimensionType === "3D" ? "3DPoint" : n.pointType === "PlaneTag" ? "Plane" : "2DPoint")();
4
5
  n.stickType = e;
5
6
  }
7
+ if (n.contentType === "VRLink" || n.contentType === "PanoLink" || n.contentType === "Link") {
8
+ const e = n;
9
+ !((i = e.data) != null && i.icon) && !((t = e.style) != null && t.point) && (e.data.icon = {
10
+ url: "//vrlab-static.ljcdn.com/release/web/test.09dee741.png",
11
+ steps: 28
12
+ });
13
+ }
6
14
  return n;
7
15
  }
8
16
  export {
9
- i as formatTag
17
+ o as formatTag
10
18
  };
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.3.5-dev.0",
10
+ "version": "2.3.5-dev.2",
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*",