@realsee/dnalogel 2.16.0-13 → 2.16.0-15

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 (314) hide show
  1. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +10 -5
  2. package/dist/GuideLinePlugin/typing.d.ts +7 -3
  3. package/dist/index.cjs.js +74 -58
  4. package/dist/index.js +2521 -2473
  5. package/dist/index.umd.js +76 -60
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/CSS3DRender.html +30 -30
  8. package/docs/classes/CruisePluginController.html +25 -25
  9. package/docs/classes/GuideLineItem.GuideLineItem.html +15 -15
  10. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +62 -28
  11. package/docs/classes/Magnifier.html +19 -19
  12. package/docs/classes/ModelRoomLabelController.html +10 -10
  13. package/docs/classes/Object3DHelperController.html +24 -24
  14. package/docs/classes/PaintBrush.html +14 -14
  15. package/docs/classes/PanoMeasurePluginLine.html +22 -22
  16. package/docs/classes/PanoMeasurePluginModel.html +21 -21
  17. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  18. package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
  19. package/docs/classes/PanoTagPluginController.html +46 -46
  20. package/docs/classes/Util.BetterTween.html +8 -8
  21. package/docs/classes/Util.FivePointSelector.html +11 -11
  22. package/docs/classes/Util.Interval.html +11 -11
  23. package/docs/classes/Util.Magnifier.html +16 -16
  24. package/docs/classes/Util.PointDomHelper.html +10 -10
  25. package/docs/classes/Util.PointHelper.html +10 -10
  26. package/docs/classes/Util.Rectangle.html +12 -12
  27. package/docs/enums/CameraMovementEffect.html +6 -6
  28. package/docs/enums/ContentType.html +18 -18
  29. package/docs/enums/DIRECTION.html +8 -8
  30. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  31. package/docs/enums/DimensionType.html +6 -6
  32. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  33. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  34. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  35. package/docs/enums/Rotation.html +7 -7
  36. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  37. package/docs/functions/CameraMovementPlugin.html +3 -3
  38. package/docs/functions/CruisePlugin.html +3 -3
  39. package/docs/functions/GuideLinePlugin.html +4 -4
  40. package/docs/functions/ItemLabelPlugin.html +3 -3
  41. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  42. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  43. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  44. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  45. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  46. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  47. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  48. package/docs/functions/ModelViewPlugin.html +3 -3
  49. package/docs/functions/Object3DHelperPlugin.html +3 -3
  50. package/docs/functions/PanoCompassPlugin.html +3 -3
  51. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  52. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  53. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  54. package/docs/functions/PanoMeasurePlugin.html +3 -3
  55. package/docs/functions/PanoRulerPlugin.html +3 -3
  56. package/docs/functions/PanoRulerProPlugin.html +3 -3
  57. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  58. package/docs/functions/PanoTagPlugin.html +3 -3
  59. package/docs/functions/PanoVideoPlugin.html +3 -3
  60. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  61. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  62. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  63. package/docs/functions/Util.getFrameTime.html +4 -4
  64. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  65. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  66. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  67. package/docs/functions/Util.isModelLike.html +4 -4
  68. package/docs/functions/Util.isNil.html +4 -4
  69. package/docs/functions/Util.isPanoramaLike.html +4 -4
  70. package/docs/functions/Util.nextFrame.html +4 -4
  71. package/docs/functions/Util.notNil.html +4 -4
  72. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  73. package/docs/functions/Util.tweenProgress.html +4 -4
  74. package/docs/functions/Util.uuid.html +4 -4
  75. package/docs/functions/pluginFlag.html +4 -4
  76. package/docs/index.html +4 -4
  77. package/docs/interfaces/AddTagConfig.html +5 -5
  78. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  79. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  80. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  81. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  82. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  83. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  84. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  85. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  86. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  87. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  88. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  89. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  90. package/docs/interfaces/EventMap.html +14 -14
  91. package/docs/interfaces/FloorplanBounding.html +7 -7
  92. package/docs/interfaces/FloorplanData.html +9 -9
  93. package/docs/interfaces/FloorplanEntrance.html +10 -10
  94. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  95. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  96. package/docs/interfaces/FloorplanFloorData.html +8 -8
  97. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  98. package/docs/interfaces/FloorplanObserver.html +8 -8
  99. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  100. package/docs/interfaces/FloorplanPosition.html +6 -6
  101. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  102. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  103. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  104. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  105. package/docs/interfaces/FloorplanServerData.html +6 -6
  106. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  107. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  108. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  109. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  110. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  111. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  112. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  113. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  114. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  115. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  116. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +15 -8
  117. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  118. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  119. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  120. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  121. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +31 -13
  122. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  123. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +38 -18
  124. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +18 -18
  125. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +38 -18
  126. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  127. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  128. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  129. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  130. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  131. package/docs/interfaces/HelperOffset.html +7 -7
  132. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  133. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  134. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  135. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  136. package/docs/interfaces/MinMax.html +6 -6
  137. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  138. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  139. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  140. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  141. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  142. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  143. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  144. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  145. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  146. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  147. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  148. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  149. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  150. package/docs/interfaces/Object3DHelperState.html +7 -7
  151. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  152. package/docs/interfaces/PaintBrushAction.html +11 -11
  153. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  154. package/docs/interfaces/PaintBrushState.html +9 -9
  155. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  156. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  157. package/docs/interfaces/PanoMeasureParameterType.html +13 -13
  158. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  159. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  160. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  161. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  162. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  163. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  164. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  165. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  166. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  167. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  168. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  169. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  170. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  171. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  172. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  173. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  174. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  175. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  176. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  177. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  178. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  179. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  180. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  181. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  182. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  185. package/docs/interfaces/Point.html +7 -7
  186. package/docs/interfaces/Room.html +8 -8
  187. package/docs/interfaces/RoomInfo.html +6 -6
  188. package/docs/interfaces/RoomLabel.html +13 -13
  189. package/docs/interfaces/RoomRules.html +4 -4
  190. package/docs/interfaces/Rooms.html +4 -4
  191. package/docs/interfaces/Scissor.html +8 -8
  192. package/docs/interfaces/State.html +7 -7
  193. package/docs/interfaces/TagCacheInterface.html +11 -11
  194. package/docs/interfaces/TagConfig.html +10 -10
  195. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  196. package/docs/interfaces/TagIconUrl.html +11 -11
  197. package/docs/interfaces/TagObjectGroup.html +5 -5
  198. package/docs/interfaces/TagStyle.html +5 -5
  199. package/docs/interfaces/Tags.html +8 -8
  200. package/docs/interfaces/TemporaryState.html +5 -5
  201. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  202. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  203. package/docs/modules/CruisePluginTypes.html +4 -4
  204. package/docs/modules/GuideLineItem.html +4 -4
  205. package/docs/modules/GuideLineModeItem.html +4 -4
  206. package/docs/modules/GuideLinePluginType.html +4 -4
  207. package/docs/modules/PanoVideoPluginType.html +4 -4
  208. package/docs/modules/Util.html +4 -4
  209. package/docs/modules.html +4 -4
  210. package/docs/types/ArrayPosition.html +4 -4
  211. package/docs/types/AudioAppearance.html +4 -4
  212. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  213. package/docs/types/CSS3DRenderExportType.html +4 -4
  214. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  215. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  216. package/docs/types/ClassFunctionParameters.html +4 -4
  217. package/docs/types/Color.html +4 -4
  218. package/docs/types/ContentTypeConfigKey.html +4 -4
  219. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  220. package/docs/types/ContentTypeMap.html +4 -4
  221. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  222. package/docs/types/Create3DElementReturnType.html +4 -4
  223. package/docs/types/CruisePluginExportType.html +4 -4
  224. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  225. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  226. package/docs/types/Direction-1.html +4 -4
  227. package/docs/types/Direction4.html +4 -4
  228. package/docs/types/FloorplanRuleLabels.html +4 -4
  229. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  230. package/docs/types/GuideLinePluginExportType.html +4 -4
  231. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  232. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  233. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  234. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  235. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  236. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  237. package/docs/types/HelperEventMap.html +4 -4
  238. package/docs/types/LoadTagConfig.html +4 -4
  239. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  240. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  241. package/docs/types/MediaData.html +4 -4
  242. package/docs/types/MediaStore.html +4 -4
  243. package/docs/types/ModelElement.html +4 -4
  244. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  245. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  246. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  247. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  248. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  249. package/docs/types/MoveArgs.html +4 -4
  250. package/docs/types/MoveOpts.html +4 -4
  251. package/docs/types/Object3DHelperEventMap.html +4 -4
  252. package/docs/types/ObjectFit.html +4 -4
  253. package/docs/types/PaintBrushEventMap.html +4 -4
  254. package/docs/types/PanoCompassPluginData.html +4 -4
  255. package/docs/types/PanoCompassPluginExportType.html +4 -4
  256. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  257. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  258. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  259. package/docs/types/PanoIndex.html +4 -4
  260. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  261. package/docs/types/PanoMeasureReturnType.html +4 -4
  262. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  263. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  264. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  265. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  266. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  267. package/docs/types/PlaneTag.html +4 -4
  268. package/docs/types/PlaneTagElement.html +4 -4
  269. package/docs/types/Point2DElement.html +4 -4
  270. package/docs/types/Point2DTag.html +4 -4
  271. package/docs/types/Point3DElement.html +4 -4
  272. package/docs/types/Point3DTag.html +4 -4
  273. package/docs/types/PointTag.html +4 -4
  274. package/docs/types/PointTagElement.html +4 -4
  275. package/docs/types/Position.html +4 -4
  276. package/docs/types/RotateArgs.html +4 -4
  277. package/docs/types/RotateOpts.html +4 -4
  278. package/docs/types/RuleLabelsKey.html +4 -4
  279. package/docs/types/RuleLabelsValue.html +4 -4
  280. package/docs/types/StickType.html +4 -4
  281. package/docs/types/Tag.html +4 -4
  282. package/docs/types/Tag2D.html +4 -4
  283. package/docs/types/Tag3D.html +4 -4
  284. package/docs/types/TagContentType.html +4 -4
  285. package/docs/types/TagDimensionType.html +4 -4
  286. package/docs/types/TagElement.html +4 -4
  287. package/docs/types/TagEvents.html +4 -4
  288. package/docs/types/TagGLTFObject.html +4 -4
  289. package/docs/types/TagHooks.html +4 -4
  290. package/docs/types/TagIconSize.html +4 -4
  291. package/docs/types/TagId.html +4 -4
  292. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  293. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  294. package/docs/types/WorkCode.html +4 -4
  295. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  296. package/docs/variables/PLUGIN.html +4 -4
  297. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  298. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  299. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  300. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  301. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  302. package/libs/CruisePlugin/Controller.js +1 -1
  303. package/libs/CruisePlugin/index.js +1 -1
  304. package/libs/GuideLinePlugin/Components/Tag.js +33 -22
  305. package/libs/GuideLinePlugin/Controller.js +18 -17
  306. package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -54
  307. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  308. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +115 -78
  309. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +10 -5
  310. package/libs/GuideLinePlugin/index.js +1 -1
  311. package/libs/GuideLinePlugin/typing.d.ts +7 -3
  312. package/libs/base/BasePlugin.js +1 -1
  313. package/libs/index.js +1 -1
  314. package/package.json +1 -1
@@ -1,118 +1,117 @@
1
- var G = Object.defineProperty;
1
+ var L = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
- var L = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
4
- var d = (o, e, t) => e in o ? G(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, c = (o, e) => {
3
+ var S = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
+ var d = (o, e, t) => e in o ? L(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, h = (o, e) => {
5
5
  for (var t in e || (e = {}))
6
- L.call(e, t) && d(o, t, e[t]);
6
+ S.call(e, t) && d(o, t, e[t]);
7
7
  if (w)
8
8
  for (var t of w(e))
9
- P.call(e, t) && d(o, t, e[t]);
9
+ _.call(e, t) && d(o, t, e[t]);
10
10
  return o;
11
11
  };
12
12
  var s = (o, e, t) => (d(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- var h = (o, e, t) => new Promise((r, n) => {
14
- var l = (i) => {
13
+ var c = (o, e, t) => new Promise((r, n) => {
14
+ var l = (a) => {
15
15
  try {
16
- a(t.next(i));
17
- } catch (m) {
18
- n(m);
16
+ i(t.next(a));
17
+ } catch (p) {
18
+ n(p);
19
19
  }
20
- }, p = (i) => {
20
+ }, m = (a) => {
21
21
  try {
22
- a(t.throw(i));
23
- } catch (m) {
24
- n(m);
22
+ i(t.throw(a));
23
+ } catch (p) {
24
+ n(p);
25
25
  }
26
- }, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(l, p);
27
- a((t = t.apply(o, e)).next());
26
+ }, i = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(l, m);
27
+ i((t = t.apply(o, e)).next());
28
28
  });
29
- import { objectAssignDeepExports as S } from "../../vendor/object-assign-deep/objectAssignDeep.js";
30
- import { GuideLineModeItem as x } from "../GuideLineModeItem/index.js";
31
- import _ from "../../CruisePlugin/Controller.js";
32
- import { logError as k } from "../../shared-utils/log.js";
33
- import { to as v } from "../../shared-utils/to.js";
34
- import { Subscribe as C } from "@realsee/five";
35
- import { changeMode as b } from "../../shared-utils/five/changeMode.js";
36
- class E {
29
+ import { GuideLineModeItem as y } from "../GuideLineModeItem/index.js";
30
+ import P from "../../CruisePlugin/Controller.js";
31
+ import { logError as x } from "../../shared-utils/log.js";
32
+ import { to as k } from "../../shared-utils/to.js";
33
+ import { Subscribe as v } from "@realsee/five";
34
+ import { changeMode as C } from "../../shared-utils/five/changeMode.js";
35
+ class M {
37
36
  constructor(e) {
38
37
  s(this, "id");
39
38
  s(this, "renderID");
40
39
  s(this, "isGuideLine", !0);
41
40
  s(this, "panoramaItem");
42
41
  s(this, "modelItem");
43
- s(this, "hooks", new C());
42
+ s(this, "hooks", new v());
44
43
  s(this, "plugin");
45
44
  s(this, "five");
46
- s(this, "logError", (e) => k("GuideLineItem: ", e));
47
- this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new x(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new x(this.five, { mode: "model", plugin: this.plugin, parent: this });
45
+ s(this, "logError", (e) => x("GuideLineItem: ", e));
46
+ this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new y(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new y(this.five, { mode: "model", plugin: this.plugin, parent: this });
48
47
  }
49
48
  setData(e) {
50
49
  this.setDataByMode("panorama", e), this.setDataByMode("model", e);
51
50
  }
52
51
  setDataByMode(e, t) {
53
- const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, p = { url: this.plugin.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }, a = n, i = S({ texture: p }, n);
52
+ const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, m = n, i = n;
54
53
  if (t.pano_group) {
55
- const m = e === "panorama";
56
- r.setGeometryByPanoGroup(t.pano_group, c({ skipPanoGroup: m }, a));
54
+ const a = e === "panorama";
55
+ r.setGeometryByPanoGroup(t.pano_group, h({ skipPanoGroup: a }, m));
57
56
  } else
58
- t.path && r.setGeometryByPath(l, a);
57
+ t.path && r.setGeometryByPath(l, m);
59
58
  r.setMartial(i), n != null && n.start_tag && r.setStartTag(n.start_tag), n != null && n.end_tag && r.setEndTag(n.end_tag);
60
59
  }
61
60
  dispose() {
62
61
  this.panoramaItem.dispose(), this.modelItem.dispose();
63
62
  }
64
63
  walk(e) {
65
- return h(this, null, function* () {
64
+ return c(this, null, function* () {
66
65
  if (!this.panoramaItem.panoGroup)
67
66
  return;
68
- const t = c({ panoIndexList: this.panoramaItem.panoGroup }, e);
67
+ const t = h({ panoIndexList: this.panoramaItem.panoGroup }, e);
69
68
  this.hooks.emit("walkStart", { userAction: !0 });
70
- const [r] = yield v(M(this.five, t));
69
+ const [r] = yield k(E(this.five, t));
71
70
  if (this.hooks.emit("walkEnded", { userAction: !0 }), r)
72
71
  return this.logError(r.message);
73
72
  });
74
73
  }
75
74
  }
76
- function M(o, e) {
77
- return h(this, null, function* () {
75
+ function E(o, e) {
76
+ return c(this, null, function* () {
78
77
  if (e.panoIndexList.length === 0)
79
78
  return;
80
79
  const t = o.getCurrentState();
81
- t.mode !== "Panorama" && (yield b(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
82
- const r = new _(o, { useGuideLine: !1 });
80
+ t.mode !== "Panorama" && (yield C(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
81
+ const r = new P(o, { useGuideLine: !1 });
83
82
  yield r.load(e), yield new Promise((n, l) => {
84
- const p = o.getCurrentState();
85
- let a = e.panoIndexList.slice();
86
- p.panoIndex === a[0] && m(p.panoIndex), r.playFromStart();
87
- function i(u) {
83
+ const m = o.getCurrentState();
84
+ let i = e.panoIndexList.slice();
85
+ m.panoIndex === i[0] && p(m.panoIndex), r.playFromStart();
86
+ function a(u) {
88
87
  if (u !== "Panorama")
89
88
  return f(new Error("mode not match"));
90
89
  }
91
- function m(u) {
92
- const I = a[0];
93
- if (a = a.slice(1), u !== I)
90
+ function p(u) {
91
+ const I = i[0];
92
+ if (i = i.slice(1), u !== I)
94
93
  return f(new Error("panoIndex not match, wanted: " + I + ", got: " + u));
95
- if (a.length === 0)
96
- return y();
94
+ if (i.length === 0)
95
+ return G();
97
96
  }
98
97
  function g() {
99
- o.off("modeChange", i), o.off("panoArrived", m);
98
+ o.off("modeChange", a), o.off("panoArrived", p);
100
99
  }
101
100
  function f(u) {
102
101
  g(), l(u);
103
102
  }
104
- function y() {
103
+ function G() {
105
104
  g(), n();
106
105
  }
107
- o.on("modeChange", i), o.on("panoArrived", m);
106
+ o.on("modeChange", a), o.on("panoArrived", p);
108
107
  });
109
108
  });
110
109
  }
111
- const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
110
+ const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
112
111
  __proto__: null,
113
- GuideLineItem: E
112
+ GuideLineItem: M
114
113
  }, Symbol.toStringTag, { value: "Module" }));
115
114
  export {
116
- E as GuideLineItem,
117
- z as GuideLineItem$1
115
+ M as GuideLineItem,
116
+ O as GuideLineItem$1
118
117
  };
@@ -1,4 +1,3 @@
1
- import "../vendor/object-assign-deep/objectAssignDeep.js";
2
1
  import "./GuideLineModeItem/index.js";
3
2
  import "../CruisePlugin/Controller.js";
4
3
  import "../shared-utils/log.js";
@@ -36,6 +35,7 @@ import "../shared-utils/animationFrame/BetterTween.js";
36
35
  import "../shared-utils/animationFrame/index.js";
37
36
  import "../shared-utils/three/loadTexture.js";
38
37
  import "../PanoTagPlugin/controller/index.js";
38
+ import "../vendor/object-assign-deep/objectAssignDeep.js";
39
39
  import "../PanoTagPlugin/utils/addDebugPoints.js";
40
40
  import "../PanoTagPlugin/utils/tag/tagCheck.js";
41
41
  import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
@@ -1,31 +1,32 @@
1
- var v = Object.defineProperty;
2
- var g = Object.getOwnPropertySymbols;
3
- var b = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var h = (r, e, i) => e in r ? v(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
1
+ var C = Object.defineProperty, y = Object.defineProperties;
2
+ var k = Object.getOwnPropertyDescriptors;
3
+ var v = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
+ var m = (o, e, i) => e in o ? C(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, u = (o, e) => {
5
6
  for (var i in e || (e = {}))
6
- b.call(e, i) && h(r, i, e[i]);
7
- if (g)
8
- for (var i of g(e))
9
- k.call(e, i) && h(r, i, e[i]);
10
- return r;
11
- };
12
- var t = (r, e, i) => (h(r, typeof e != "symbol" ? e + "" : e, i), i);
7
+ w.call(e, i) && m(o, i, e[i]);
8
+ if (v)
9
+ for (var i of v(e))
10
+ U.call(e, i) && m(o, i, e[i]);
11
+ return o;
12
+ }, g = (o, e) => y(o, k(e));
13
+ var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
13
14
  import * as l from "three";
14
- import { logWarning as y, logError as C } from "../../shared-utils/log.js";
15
- import { createLineGeometry as w } from "../utils/createLineGeometry.js";
16
- import { isPanoramaLike as P, isModelLike as U } from "../../shared-utils/five/mode.js";
15
+ import { logWarning as P, logError as T } from "../../shared-utils/log.js";
16
+ import { createLineGeometry as x } from "../utils/createLineGeometry.js";
17
+ import { isPanoramaLike as E, isModelLike as _ } from "../../shared-utils/five/mode.js";
17
18
  import "hammerjs";
18
19
  import "@realsee/five";
19
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
20
21
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
21
22
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
- import { BetterTween as T, tweenProgress as x } from "../../shared-utils/animationFrame/BetterTween.js";
23
- import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
24
- import p from "../../PanoTagPlugin/controller/index.js";
25
- import L from "../Components/Tag.js";
26
- import { filterAdjacentDistinct as V } from "../utils/index.js";
27
- import { objectAssignDeepExports as G } from "../../vendor/object-assign-deep/objectAssignDeep.js";
28
- const M = (
23
+ import { BetterTween as L, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
24
+ import { loadTexture as V } from "../../shared-utils/three/loadTexture.js";
25
+ import b from "../../PanoTagPlugin/controller/index.js";
26
+ import G from "../Components/Tag.js";
27
+ import { filterAdjacentDistinct as M } from "../utils/index.js";
28
+ import { objectAssignDeepExports as F } from "../../vendor/object-assign-deep/objectAssignDeep.js";
29
+ const A = (
29
30
  /* glsl */
30
31
  `
31
32
  varying vec2 vUv;
@@ -35,7 +36,7 @@ const M = (
35
36
  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
36
37
  }
37
38
  `
38
- ), _ = (
39
+ ), S = (
39
40
  /* glsl */
40
41
  `
41
42
  // 是否使用颜色
@@ -48,6 +49,10 @@ const M = (
48
49
  uniform float mapOpacity;
49
50
  // 背景颜色
50
51
  uniform vec3 backgroundColor;
52
+ // 边框颜色
53
+ uniform vec3 borderColor;
54
+ // 边框透明度
55
+ uniform float borderOpacity;
51
56
  // 背景透明度
52
57
  uniform float backgroundOpacity;
53
58
  // 整体透明度
@@ -62,7 +67,7 @@ const M = (
62
67
  varying vec2 vUv;
63
68
 
64
69
  // 获取纹理颜色
65
- vec4 getTextureColor() {
70
+ vec4 getImage() {
66
71
  vec2 uv = vUv;
67
72
  uv.y = uv.y - vOffset;
68
73
  // 原始贴图颜色
@@ -78,24 +83,36 @@ const M = (
78
83
 
79
84
  // 获取线性渐变的透明度
80
85
  float linearGradientOpacity() {
81
- // 当前的 u
82
- float u = vUv.y;
86
+ // 当前的 v
87
+ float v = vUv.y;
83
88
  float gradientLength = 1.0;
84
- if (u <= gradientLength) {
85
- return u / gradientLength; // 在 [0, gradientLength] 范围内,透明度为 [0, 1]
86
- } else if (u <= maxU - gradientLength) {
89
+ if (v <= gradientLength) {
90
+ return v / gradientLength; // 在 [0, gradientLength] 范围内,透明度为 [0, 1]
91
+ } else if (v <= maxU - gradientLength) {
87
92
  return 1.0; // 在 (gradientLength, maxU - gradientLength) 范围内,透明度为 1
88
93
  } else {
89
- return (maxU - u) / gradientLength; // 在 [maxU - gradientLength, maxU] 范围内,透明度为 [1, 0]
94
+ return (maxU - v) / gradientLength; // 在 [maxU - gradientLength, maxU] 范围内,透明度为 [1, 0]
95
+ }
96
+ }
97
+
98
+ vec4 getBorder() {
99
+ float u = vUv.x;
100
+ float borderSize = 0.05;
101
+ if (u <= borderSize || u >= 1.0 - borderSize) {
102
+ return vec4(borderColor, borderOpacity);
90
103
  }
104
+ return vec4(0.0, 0.0, 0.0, 0.0);
91
105
  }
92
106
 
93
107
  void main() {
94
- vec4 image = getTextureColor();
108
+ vec4 image = getImage();
109
+ vec4 border = getBorder();
95
110
  // 设置背景颜色
96
111
  gl_FragColor = vec4(backgroundColor, backgroundOpacity);
97
112
  // 混合颜色和背景
98
113
  gl_FragColor = mix(gl_FragColor, image, image.a);
114
+ // 混合边框
115
+ gl_FragColor = mix(gl_FragColor, border, border.a);
99
116
  // 设置整体透明度
100
117
  gl_FragColor.a = gl_FragColor.a * opacity;
101
118
  gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
@@ -103,7 +120,7 @@ const M = (
103
120
  }
104
121
  `
105
122
  );
106
- class A {
123
+ class B {
107
124
  constructor(e, i) {
108
125
  t(this, "startTagContainer");
109
126
  t(this, "endTagContainer");
@@ -129,12 +146,12 @@ class A {
129
146
  t(this, "plugin");
130
147
  t(this, "textureHasLoaded", !1);
131
148
  t(this, "disposed", !1);
132
- t(this, "flowAnime", new T({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
133
- t(this, "flickerAnime", x(300).yoyo(!0).repeat(5));
149
+ t(this, "flowAnime", new L({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
150
+ t(this, "flickerAnime", O(300).yoyo(!0).repeat(5));
134
151
  t(this, "dispose", () => {
135
- this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide());
152
+ var e, i;
153
+ this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
136
154
  });
137
- t(this, "onTagContainerChange", (e, i) => new L({ target: e, intro: !0, props: i.data }).$destroy);
138
155
  /** 当设置 GuideLinePLugin 展示 */
139
156
  t(this, "onPluginShow", () => {
140
157
  this.updateVisible();
@@ -161,22 +178,23 @@ class A {
161
178
  });
162
179
  /** 模型状态变更 */
163
180
  t(this, "onFiveModeChange", (e) => {
164
- this.modeVisible = this.mode === "panorama" ? P(e) : U(e), this.updateVisible();
181
+ this.modeVisible = this.mode === "panorama" ? E(e) : _(e), this.updateVisible();
165
182
  });
166
183
  t(this, "onFlowAnimeUpdate", (e) => {
167
184
  const { progress: i } = e;
168
185
  this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
169
186
  });
170
187
  t(this, "onFlickerAnimeUpdate", (e) => {
171
- const { progress: i } = e;
172
- this.mesh.material.uniforms.flicker.value = 1 - i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
188
+ var a, s;
189
+ const { progress: i } = e, r = 1 - i;
190
+ this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
173
191
  });
174
- t(this, "logWarning", (e) => y("GuideLineModeItem: ", e));
175
- t(this, "logError", (e) => C("GuideLineModeItem: ", e));
176
- this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new p(this.five) }, this.endTagContainer = { tag: null, plugin: new p(this.five) };
177
- const s = new l.BufferGeometry(), a = new l.ShaderMaterial({
178
- vertexShader: M,
179
- fragmentShader: _,
192
+ t(this, "logWarning", (e) => P("GuideLineModeItem: ", e));
193
+ t(this, "logError", (e) => T("GuideLineModeItem: ", e));
194
+ this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new b(this.five) }, this.endTagContainer = { tag: null, plugin: new b(this.five) };
195
+ const r = new l.BufferGeometry(), a = new l.ShaderMaterial({
196
+ vertexShader: A,
197
+ fragmentShader: S,
180
198
  transparent: !0,
181
199
  uniforms: {
182
200
  map: { value: null },
@@ -185,13 +203,15 @@ class A {
185
203
  mapOpacity: { value: 1 },
186
204
  backgroundColor: { value: new l.Color() },
187
205
  backgroundOpacity: { value: 0 },
206
+ borderColor: { value: new l.Color() },
207
+ borderOpacity: { value: 0 },
188
208
  opacity: { value: 1 },
189
209
  flicker: { value: 1 },
190
210
  maxU: { value: 0 },
191
211
  vOffset: { value: 0 }
192
212
  }
193
213
  });
194
- this.mesh = new l.Mesh(s, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
214
+ this.mesh = new l.Mesh(r, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
195
215
  }
196
216
  get panoGroup() {
197
217
  return this._panoGroup;
@@ -226,53 +246,59 @@ class A {
226
246
  return this.logError("disposed");
227
247
  if (!this.five.work)
228
248
  return this.logError("setPathByPanoGroup: work is not ready");
229
- const s = V(e);
230
- if (this._panoGroup = s, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
231
- const o = i.skipPanoGroup ? s.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
232
- this.skippedPositions = o;
249
+ const r = M(e);
250
+ if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
251
+ const s = i.skipPanoGroup ? r.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
252
+ this.skippedPositions = s;
233
253
  }
234
- const a = this.getPathFromPanoGroup(s, this.five.work, i);
254
+ const a = this.getPathFromPanoGroup(r, this.five.work, i);
235
255
  this.path = a, this.setGeometryByPath(a, i);
236
256
  }
237
257
  /** 通过路径设置线条形状 */
238
258
  setGeometryByPath(e, i) {
239
- var d, u, m;
259
+ var d, p, c;
240
260
  if (this.disposed)
241
261
  return this.logError("disposed");
242
- const s = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, a = (u = i == null ? void 0 : i.width) != null ? u : this.width, o = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
243
- this.path = e, this.scale = s, this.width = a, this.unitLength = o;
244
- const { geometry: n, maxU: c } = w({
262
+ const r = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, a = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (c = i == null ? void 0 : i.unit_length) != null ? c : this.unitLength;
263
+ this.path = e, this.scale = r, this.width = a, this.unitLength = s;
264
+ const { geometry: n, maxU: h } = x({
245
265
  path: e,
246
- width: a * s,
247
- unitLength: o * s,
266
+ width: a * r,
267
+ unitLength: s * r,
248
268
  skipPositions: this.skippedPositions
249
269
  });
250
- this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = c, this.five.needsRender = !0;
270
+ this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = h, this.five.needsRender = !0;
251
271
  }
252
272
  /** 设置线条材质 */
253
273
  setMartial(e) {
254
274
  var i;
255
275
  if (this.disposed)
256
276
  return this.logError("disposed");
257
- (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity);
277
+ (e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((i = e == null ? void 0 : e.texture) == null ? void 0 : i.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
258
278
  }
259
279
  /** 设置贴图颜色 */
260
280
  setColor(e) {
261
281
  if (this.disposed)
262
282
  return this.logError("disposed");
263
- this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new l.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
283
+ e && (this.mesh.material.uniforms.mapColor.value = new l.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
264
284
  }
265
- /** 设置背景颜色 */
266
- setBackgroundColor(e) {
285
+ /** 设置边框 */
286
+ setBorderColor(e) {
267
287
  if (this.disposed)
268
288
  return this.logError("disposed");
269
- this.mesh.material.uniforms.backgroundColor.value = new l.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
289
+ this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
270
290
  }
271
- /** 设置整体透明度 */
272
- setOpacity(e) {
291
+ /** 设置边框透明度 */
292
+ setBorderOpacity(e) {
273
293
  if (this.disposed)
274
294
  return this.logError("disposed");
275
- this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
295
+ this.mesh.material.uniforms.borderOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
296
+ }
297
+ /** 设置背景颜色 */
298
+ setBackgroundColor(e) {
299
+ if (this.disposed)
300
+ return this.logError("disposed");
301
+ console.log("🐶 ==> color:", e), this.mesh.material.uniforms.backgroundColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
276
302
  }
277
303
  /** 设置背景透明度 */
278
304
  setBackgroundOpacity(e) {
@@ -280,6 +306,12 @@ class A {
280
306
  return this.logError("disposed");
281
307
  this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
282
308
  }
309
+ /** 设置整体透明度 */
310
+ setOpacity(e) {
311
+ if (this.disposed)
312
+ return this.logError("disposed");
313
+ this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
314
+ }
283
315
  /** 设置贴图透明度 */
284
316
  setMapOpacity(e) {
285
317
  if (this.disposed)
@@ -290,7 +322,7 @@ class A {
290
322
  setTextureUrl(e) {
291
323
  if (this.disposed)
292
324
  return this.logError("disposed");
293
- this.textureUrl = e, E(e).then((i) => {
325
+ this.textureUrl = e, V(e).then((i) => {
294
326
  this.disposed || this.textureUrl === e && (i.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
295
327
  });
296
328
  }
@@ -307,14 +339,19 @@ class A {
307
339
  this.flickerAnime.play();
308
340
  }
309
341
  setTag(e, i) {
310
- const a = G({}, {
342
+ const a = F({}, {
311
343
  contentType: "Custom",
312
344
  stickType: "2DPoint",
313
345
  config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"] } },
314
346
  style: { point: { enabled: !1 } },
315
347
  data: {}
316
- }, i), o = e === "start" ? this.startTagContainer : this.endTagContainer;
317
- o.tag = a, F(a) && (o.tag.element = (n) => this.onTagContainerChange(n, a)), o.plugin.load({ tagList: [o.tag] });
348
+ }, i), s = e === "start" ? this.startTagContainer : this.endTagContainer;
349
+ s.tag = a, f(a) && (s.tag.element = (n) => {
350
+ var d;
351
+ (d = s.app) == null || d.$destroy();
352
+ const h = new G({ target: n, intro: !0, props: a.data });
353
+ return s.app = h, () => h.$destroy();
354
+ }), s.plugin.load({ tagList: [s.tag] });
318
355
  }
319
356
  /** 更新可见性 */
320
357
  updateVisible() {
@@ -328,21 +365,21 @@ class A {
328
365
  this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.five.needsRender = !0;
329
366
  }
330
367
  /** 通过 panoIndex 数组计算路径 */
331
- getPathFromPanoGroup(e, i, s) {
368
+ getPathFromPanoGroup(e, i, r) {
332
369
  if (e.length < 2)
333
370
  return [];
334
- const o = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
335
- return [f({ type: "CatmullRomCurve3", points: o }, s)];
371
+ const s = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
372
+ return [u({ type: "CatmullRomCurve3", points: s }, r)];
336
373
  }
337
374
  }
338
- function F(r) {
339
- return r.contentType === "Custom";
375
+ function f(o) {
376
+ return o.contentType === "Custom";
340
377
  }
341
- const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
378
+ const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
342
379
  __proto__: null,
343
- GuideLineModeItem: A
380
+ GuideLineModeItem: B
344
381
  }, Symbol.toStringTag, { value: "Module" }));
345
382
  export {
346
- A as GuideLineModeItem,
347
- Q as GuideLineModeItem$1
383
+ B as GuideLineModeItem,
384
+ Z as GuideLineModeItem$1
348
385
  };
@@ -5,11 +5,13 @@ import type * as PluginType from './typing';
5
5
  import type { GuideLineItem } from './GuideLineItem';
6
6
  import * as THREE from 'three';
7
7
  import { PanoTagPluginController } from '../PanoTagPlugin';
8
+ import CustomTag from './Components/Tag.svelte';
8
9
  /** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
9
10
  type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
10
11
  export interface GuideLineTagContainer {
11
12
  tag: Tag | null;
12
13
  plugin: PanoTagPluginController;
14
+ app?: CustomTag;
13
15
  }
14
16
  /** 在不同模态下的 GuideLine */
15
17
  declare class GuideLineModeItem {
@@ -63,13 +65,17 @@ declare class GuideLineModeItem {
63
65
  /** 设置线条材质 */
64
66
  setMartial(options?: PluginType.GuideLineMaterialStyle): void;
65
67
  /** 设置贴图颜色 */
66
- setColor(color: null | number[]): void;
68
+ setColor(color: null | string): void;
69
+ /** 设置边框 */
70
+ setBorderColor(color: string): void;
71
+ /** 设置边框透明度 */
72
+ setBorderOpacity(opacity: number): void;
67
73
  /** 设置背景颜色 */
68
- setBackgroundColor(color: number[]): void;
69
- /** 设置整体透明度 */
70
- setOpacity(opacity: number): void;
74
+ setBackgroundColor(color: string): void;
71
75
  /** 设置背景透明度 */
72
76
  setBackgroundOpacity(opacity: number): void;
77
+ /** 设置整体透明度 */
78
+ setOpacity(opacity: number): void;
73
79
  /** 设置贴图透明度 */
74
80
  setMapOpacity(opacity: number): void;
75
81
  /** 设置贴图 */
@@ -79,7 +85,6 @@ declare class GuideLineModeItem {
79
85
  /** 闪烁 */
80
86
  flicker(): void;
81
87
  private setTag;
82
- private onTagContainerChange;
83
88
  /** 当设置 GuideLinePLugin 展示 */
84
89
  private onPluginShow;
85
90
  /** 当设置 GuideLinePLugin 隐藏 */
@@ -34,7 +34,6 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
34
34
  import "../CruisePlugin/utils/formatRad.js";
35
35
  import "../CruisePlugin/utils/linerValue.js";
36
36
  import "../CruisePlugin/utils/sleep.js";
37
- import "../vendor/object-assign-deep/objectAssignDeep.js";
38
37
  import "../shared-utils/log.js";
39
38
  import "./utils/createLineGeometry.js";
40
39
  import "../vendor/polyline-normals/index.js";
@@ -49,6 +48,7 @@ import "../shared-utils/animationFrame/BetterTween.js";
49
48
  import "../shared-utils/animationFrame/index.js";
50
49
  import "../shared-utils/three/loadTexture.js";
51
50
  import "../PanoTagPlugin/controller/index.js";
51
+ import "../vendor/object-assign-deep/objectAssignDeep.js";
52
52
  import "../PanoTagPlugin/utils/addDebugPoints.js";
53
53
  import "../PanoTagPlugin/utils/tag/tagCheck.js";
54
54
  import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
@@ -103,12 +103,16 @@ export interface GuideLineGeometryStyle {
103
103
  export interface GuideLineMaterialStyle {
104
104
  /** 是否可见 */
105
105
  visible?: boolean;
106
- /** rgb 颜色 [r, g, b] */
107
- color?: number[];
106
+ /** hex 颜色 */
107
+ color?: string;
108
108
  /** 背景颜色 */
109
- background_color?: number[];
109
+ background_color?: string;
110
110
  /** 背景透明度 */
111
111
  background_opacity?: number;
112
+ /** 边框颜色 */
113
+ border_color?: string;
114
+ /** 边框透明度 */
115
+ border_opacity?: number;
112
116
  /** 透明度 */
113
117
  opacity?: number;
114
118
  /** 贴图 */
@@ -14,7 +14,7 @@ let n = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- e(this, "VERSION", "2.16.0-13");
17
+ e(this, "VERSION", "2.16.0-15");
18
18
  e(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
package/libs/index.js CHANGED
@@ -363,7 +363,7 @@ import "./shared-utils/three/PointHelper.js";
363
363
  import "./shared-utils/three/Assets/index.js";
364
364
  import "./shared-utils/three/PointDomHelper.js";
365
365
  import "./shared-utils/three/FivePointSelector.js";
366
- console.info("@realsee/dnalogel %cv2.16.0-13", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
366
+ console.info("@realsee/dnalogel %cv2.16.0-15", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
367
367
  export {
368
368
  le as CSS3DRender,
369
369
  Zm as CSS3DRenderPlugin,