@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.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 (521) hide show
  1. package/README.md +3 -12
  2. package/docs/classes/CruisePluginController.html +24 -24
  3. package/docs/classes/Magnifier.html +16 -16
  4. package/docs/classes/ModelRoomLabelController.html +11 -11
  5. package/docs/classes/Object3DHelperController.html +24 -24
  6. package/docs/classes/PaintBrush.html +15 -15
  7. package/docs/classes/PanoTagPluginController.html +39 -39
  8. package/docs/classes/Util.BetterTween.html +8 -8
  9. package/docs/classes/Util.FivePointSelector.html +12 -12
  10. package/docs/classes/Util.Interval.html +12 -12
  11. package/docs/classes/Util.Magnifier.html +17 -17
  12. package/docs/classes/Util.PointDomHelper.html +11 -11
  13. package/docs/classes/Util.PointHelper.html +11 -11
  14. package/docs/classes/Util.Rectangle.html +13 -13
  15. package/docs/enums/CameraMovementEffect.html +7 -7
  16. package/docs/enums/ContentType.html +12 -12
  17. package/docs/enums/DIRECTION.html +9 -9
  18. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  19. package/docs/enums/DimensionType.html +7 -7
  20. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  21. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/LinkType.html +7 -7
  23. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  24. package/docs/enums/PointType.html +7 -7
  25. package/docs/enums/Rotation.html +8 -8
  26. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  27. package/docs/functions/CameraMovementPlugin.html +4 -4
  28. package/docs/functions/CruisePlugin.html +4 -4
  29. package/docs/functions/GuideLinePlugin.html +5 -5
  30. package/docs/functions/ItemLabelPlugin.html +4 -4
  31. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  32. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  33. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  34. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  36. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  37. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  38. package/docs/functions/ModelViewPlugin.html +4 -4
  39. package/docs/functions/Object3DHelperPlugin.html +4 -4
  40. package/docs/functions/PanoCompassPlugin.html +4 -4
  41. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  42. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  43. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  44. package/docs/functions/PanoMeasurePlugin.html +4 -4
  45. package/docs/functions/PanoRulerPlugin.html +4 -4
  46. package/docs/functions/PanoRulerProPlugin.html +4 -4
  47. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  48. package/docs/functions/PanoTagPlugin.html +4 -4
  49. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  50. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  51. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  52. package/docs/functions/Util.getFrameTime.html +5 -5
  53. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  54. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  55. package/docs/functions/Util.isNil.html +5 -5
  56. package/docs/functions/Util.nextFrame.html +5 -5
  57. package/docs/functions/Util.notNil.html +5 -5
  58. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  59. package/docs/functions/Util.tweenProgress.html +5 -5
  60. package/docs/functions/pluginFlag.html +5 -5
  61. package/docs/index.html +6 -11
  62. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  63. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  64. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  65. package/docs/interfaces/ContentTypeMap.html +12 -12
  66. package/docs/interfaces/FloorplanBounding.html +8 -8
  67. package/docs/interfaces/FloorplanData.html +10 -10
  68. package/docs/interfaces/FloorplanEntrance.html +11 -11
  69. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  70. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  71. package/docs/interfaces/FloorplanFloorData.html +9 -9
  72. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  73. package/docs/interfaces/FloorplanObserver.html +9 -9
  74. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  75. package/docs/interfaces/FloorplanPosition.html +7 -7
  76. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  77. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  78. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  79. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  80. package/docs/interfaces/FloorplanServerData.html +7 -7
  81. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  82. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  83. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  85. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  86. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  87. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  88. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  90. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  91. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  92. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  93. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  94. package/docs/interfaces/LineJson.html +7 -7
  95. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  96. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  97. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  98. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  99. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  100. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  103. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  104. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  105. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  107. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  108. package/docs/interfaces/Object3DHelperState.html +8 -8
  109. package/docs/interfaces/OpenParameter.html +7 -7
  110. package/docs/interfaces/PaintBrushAction.html +12 -12
  111. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  112. package/docs/interfaces/PaintBrushState.html +10 -10
  113. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  114. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  115. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  116. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  117. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  118. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  119. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  120. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  121. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  122. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  123. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  124. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  125. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  126. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  127. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  128. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  129. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  130. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  132. package/docs/interfaces/Point.html +8 -8
  133. package/docs/interfaces/PointJson.html +8 -8
  134. package/docs/interfaces/Room.html +9 -9
  135. package/docs/interfaces/RoomInfo.html +7 -7
  136. package/docs/interfaces/RoomLabel.html +14 -14
  137. package/docs/interfaces/RoomRules.html +5 -5
  138. package/docs/interfaces/Rooms.html +5 -5
  139. package/docs/interfaces/Scissor.html +9 -9
  140. package/docs/interfaces/TagConfig.html +10 -10
  141. package/docs/interfaces/Tags.html +9 -9
  142. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  143. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  144. package/docs/modules/Util.html +5 -5
  145. package/docs/modules.html +4 -4
  146. package/docs/types/ArrayPosition.html +5 -5
  147. package/docs/types/CSS3DRenderExportType.html +5 -5
  148. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  149. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  150. package/docs/types/Color.html +5 -5
  151. package/docs/types/ContentTypeConfigKey.html +5 -5
  152. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  153. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  154. package/docs/types/Create3DElementReturnType.html +5 -5
  155. package/docs/types/CruisePluginExportType.html +5 -5
  156. package/docs/types/Direction-1.html +5 -5
  157. package/docs/types/Direction4.html +5 -5
  158. package/docs/types/FloorplanRuleLabels.html +5 -5
  159. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  160. package/docs/types/GuideLinePluginExportType.html +5 -5
  161. package/docs/types/HelperEventMap.html +5 -5
  162. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  163. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  164. package/docs/types/MediaData.html +5 -5
  165. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  166. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  167. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  168. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  169. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  170. package/docs/types/MoveArgs.html +5 -5
  171. package/docs/types/MoveOpts.html +5 -5
  172. package/docs/types/Object3DHelperEventMap.html +5 -5
  173. package/docs/types/ObjectFit.html +5 -5
  174. package/docs/types/PaintBrushEventMap.html +5 -5
  175. package/docs/types/PanoCompassPluginData.html +5 -5
  176. package/docs/types/PanoCompassPluginExportType.html +5 -5
  177. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  178. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  179. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  180. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  181. package/docs/types/PanoMeasureReturnType.html +5 -5
  182. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  183. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  184. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  185. package/docs/types/PlaneTag.html +5 -5
  186. package/docs/types/PointTag.html +5 -5
  187. package/docs/types/Position.html +5 -5
  188. package/docs/types/RotateArgs.html +5 -5
  189. package/docs/types/RotateOpts.html +5 -5
  190. package/docs/types/RuleLabelsKey.html +5 -5
  191. package/docs/types/RuleLabelsValue.html +5 -5
  192. package/docs/types/Tag.html +5 -5
  193. package/docs/types/Tag2D.html +5 -5
  194. package/docs/types/Tag3D.html +5 -5
  195. package/docs/types/TagId.html +5 -5
  196. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  198. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  199. package/docs/variables/PLUGIN.html +5 -5
  200. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  201. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  202. package/docs/variables/VERSION.html +5 -5
  203. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  204. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  205. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  206. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -331
  207. package/libs/CSS3DRenderPlugin/Controller.js +1 -84
  208. package/libs/CSS3DRenderPlugin/index.js +1 -6
  209. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  210. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
  211. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
  212. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
  213. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  214. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
  215. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  216. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
  217. package/libs/CameraMovementPlugin/index.js +1 -0
  218. package/libs/CameraMovementPlugin/typing.js +1 -5
  219. package/libs/CruisePlugin/Controller.js +1 -484
  220. package/libs/CruisePlugin/index.js +1 -8
  221. package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
  222. package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
  223. package/libs/CruisePlugin/utils/formatRad.js +1 -7
  224. package/libs/CruisePlugin/utils/linerValue.js +1 -7
  225. package/libs/CruisePlugin/utils/safeCall.js +1 -28
  226. package/libs/CruisePlugin/utils/sleep.js +1 -10
  227. package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
  228. package/libs/GuideLinePlugin/Controller.js +1 -144
  229. package/libs/GuideLinePlugin/index.js +1 -6
  230. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
  231. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
  232. package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
  233. package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
  234. package/libs/ItemLabelPlugin/Plugin.js +2 -76
  235. package/libs/ItemLabelPlugin/index.js +1 -12
  236. package/libs/ItemLabelPlugin/typings.js +1 -4
  237. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
  238. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
  239. package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
  240. package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
  241. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
  242. package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
  243. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  244. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
  245. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  246. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
  247. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
  248. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
  249. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  250. package/libs/ModelItemLabelPlugin/index.js +1 -12
  251. package/libs/ModelItemLabelPlugin/typings.js +1 -4
  252. package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
  253. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
  254. package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
  255. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
  256. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
  257. package/libs/ModelRoomLabelPlugin/index.js +1 -10
  258. package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
  259. package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
  260. package/libs/ModelTVVideoPlugin/index.js +1 -0
  261. package/libs/ModelTVVideoPlugin/typings.js +1 -4
  262. package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
  263. package/libs/ModelViewPlugin/Plugin.js +1 -107
  264. package/libs/ModelViewPlugin/index.js +1 -0
  265. package/libs/Object3DHelperPlugin/Controller.js +1 -145
  266. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
  267. package/libs/Object3DHelperPlugin/index.js +1 -10
  268. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
  269. package/libs/PanoCompassPlugin/Controller.js +1 -224
  270. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
  271. package/libs/PanoCompassPlugin/index.js +1 -6
  272. package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
  273. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
  274. package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
  275. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
  276. package/libs/PanoDoorLabelPlugin/index.js +1 -6
  277. package/libs/PanoDoorLabelPlugin/utils.js +1 -23
  278. package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
  279. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
  280. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
  281. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
  282. package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
  283. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
  284. package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
  285. package/libs/PanoMeasurePlugin/Model/index.js +1 -92
  286. package/libs/PanoMeasurePlugin/Model/line.js +1 -56
  287. package/libs/PanoMeasurePlugin/Model/point.js +1 -30
  288. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
  289. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
  290. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
  291. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
  292. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
  293. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
  294. package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
  295. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
  296. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
  297. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
  298. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
  299. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
  300. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
  301. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
  302. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
  303. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
  304. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
  305. package/libs/PanoMeasurePlugin/index.js +1 -11
  306. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
  307. package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
  308. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
  309. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
  310. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
  311. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
  312. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
  313. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
  314. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
  315. package/libs/PanoMeasurePlugin/utils/line.js +1 -18
  316. package/libs/PanoMeasurePlugin/utils/math.js +1 -13
  317. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
  318. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
  319. package/libs/PanoRulerPlugin/Plugin.js +2 -263
  320. package/libs/PanoRulerPlugin/index.js +1 -0
  321. package/libs/PanoRulerPlugin/style.js +2 -5
  322. package/libs/PanoRulerProPlugin/Controller.js +1 -93
  323. package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
  324. package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
  325. package/libs/PanoRulerProPlugin/index.js +1 -6
  326. package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
  327. package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
  328. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
  329. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  330. package/libs/PanoSpatialTagPlugin/store.js +1 -5
  331. package/libs/PanoSpatialTagPlugin/style.js +1 -11
  332. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  333. package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
  334. package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
  335. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
  336. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
  337. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
  338. package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
  339. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
  340. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
  341. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
  342. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
  343. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
  344. package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
  345. package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
  346. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
  347. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
  348. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
  349. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
  350. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
  351. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
  352. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
  353. package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
  354. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
  355. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
  356. package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
  357. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
  358. package/libs/PanoTagPlugin/controller/index.js +1 -377
  359. package/libs/PanoTagPlugin/index.js +1 -9
  360. package/libs/PanoTagPlugin/tag.config.js +1 -44
  361. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  362. package/libs/PanoTagPlugin/typings/index.js +1 -0
  363. package/libs/PanoTagPlugin/typings/tag.js +1 -7
  364. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
  365. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
  366. package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
  367. package/libs/PanoTagPlugin/utils/constants.js +1 -8
  368. package/libs/PanoTagPlugin/utils/debounce.js +1 -12
  369. package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
  370. package/libs/PanoTagPlugin/utils/index.js +1 -0
  371. package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
  372. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
  373. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
  374. package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
  375. package/libs/PanoTagPlugin/utils/search.js +1 -15
  376. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
  377. package/libs/PanoTagPlugin/utils/throttle.js +1 -11
  378. package/libs/base/BasePlugin.js +1 -18
  379. package/libs/base/BasePluginWithData.js +1 -6
  380. package/libs/components/PaintBrush/Controller.js +1 -308
  381. package/libs/components/PaintBrush/Subscribe.js +1 -47
  382. package/libs/components/PaintBrush/index.js +1 -45
  383. package/libs/components/PaintBrush/style.js +2 -5
  384. package/libs/components/PaintBrush/tween.js +1 -11
  385. package/libs/components/PaintBrush/typings.js +1 -4
  386. package/libs/components/PaintBrush/utils.js +1 -45
  387. package/libs/components/index.js +1 -0
  388. package/libs/floorplan/Assets/camera.js +1 -4
  389. package/libs/floorplan/Assets/compass.js +1 -4
  390. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
  391. package/libs/floorplan/Components/BaseImage.js +1 -103
  392. package/libs/floorplan/Components/Camera.js +1 -62
  393. package/libs/floorplan/Components/Compass.js +1 -60
  394. package/libs/floorplan/Components/CurrentFloor.js +1 -246
  395. package/libs/floorplan/Components/Main.js +1 -264
  396. package/libs/floorplan/Components/Normalmage.js +1 -37
  397. package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
  398. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
  399. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
  400. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
  401. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
  402. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
  403. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
  404. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
  405. package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
  406. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
  407. package/libs/floorplan/Components/SvgImage.js +2 -39
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
  409. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
  410. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
  411. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
  412. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
  413. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
  414. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
  418. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
  419. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
  420. package/libs/floorplan/constant.js +1 -4
  421. package/libs/floorplan/index.js +1 -0
  422. package/libs/floorplan/typings/floorplanData.js +1 -0
  423. package/libs/floorplan/typings/floorplanServerData.js +1 -101
  424. package/libs/floorplan/utils/constant.js +1 -7
  425. package/libs/floorplan/utils/correctFiveState.js +1 -54
  426. package/libs/floorplan/utils/formatData.js +1 -104
  427. package/libs/floorplan/utils/formatPosition.js +1 -35
  428. package/libs/index.js +1 -92
  429. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
  430. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
  431. package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
  432. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
  433. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
  434. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
  435. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
  436. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
  437. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
  438. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
  439. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
  440. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
  441. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
  442. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
  443. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  445. package/libs/shared-utils/Object3DHelper/index.js +1 -169
  446. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
  451. package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
  452. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
  454. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  455. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  456. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  457. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  458. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
  459. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
  460. package/libs/shared-utils/Subscribe.js +1 -50
  461. package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
  462. package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
  463. package/libs/shared-utils/animationFrame/formatRad.js +1 -11
  464. package/libs/shared-utils/animationFrame/index.js +1 -31
  465. package/libs/shared-utils/animationFrame/tween.js +1 -30
  466. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
  467. package/libs/shared-utils/createCanvasTextTexture.js +1 -11
  468. package/libs/shared-utils/createLine/index.js +1 -9
  469. package/libs/shared-utils/debounce.js +1 -11
  470. package/libs/shared-utils/equal.js +1 -54
  471. package/libs/shared-utils/filter.js +1 -10
  472. package/libs/shared-utils/five/changeMode.js +1 -39
  473. package/libs/shared-utils/getPxmm.js +1 -21
  474. package/libs/shared-utils/index.js +1 -31
  475. package/libs/shared-utils/isNil.js +1 -10
  476. package/libs/shared-utils/isTruelyObject.js +1 -6
  477. package/libs/shared-utils/math/Interval.js +1 -23
  478. package/libs/shared-utils/math/Rectangle.js +1 -23
  479. package/libs/shared-utils/math/index.js +1 -0
  480. package/libs/shared-utils/math/planimetry.js +1 -48
  481. package/libs/shared-utils/math/rad2Deg.js +1 -6
  482. package/libs/shared-utils/nearlyEqual.js +1 -6
  483. package/libs/shared-utils/nextFrame.js +1 -6
  484. package/libs/shared-utils/noop.js +1 -5
  485. package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
  486. package/libs/shared-utils/removeArrayItem.js +1 -8
  487. package/libs/shared-utils/tap.js +1 -6
  488. package/libs/shared-utils/three/Assets/index.js +1 -4
  489. package/libs/shared-utils/three/FivePointSelector.js +1 -49
  490. package/libs/shared-utils/three/Magnifier.js +1 -104
  491. package/libs/shared-utils/three/PointDomHelper.js +1 -60
  492. package/libs/shared-utils/three/PointHelper.js +3 -60
  493. package/libs/shared-utils/three/getCoords.js +1 -13
  494. package/libs/shared-utils/three/getIntersect.js +1 -8
  495. package/libs/shared-utils/three/getRaycaster.js +1 -12
  496. package/libs/shared-utils/three/index.js +1 -0
  497. package/libs/shared-utils/three/loadTexture.js +1 -28
  498. package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
  499. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
  500. package/libs/shared-utils/throttle.js +1 -11
  501. package/libs/shared-utils/tinyEJSrender.js +14 -138
  502. package/libs/shared-utils/to.js +1 -29
  503. package/libs/shared-utils/uuid.js +1 -10
  504. package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
  505. package/libs/vendor/swiper/components-shared/get-params.js +1 -0
  506. package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
  507. package/libs/vendor/swiper/components-shared/params-list.js +1 -0
  508. package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
  509. package/libs/vendor/swiper/components-shared/utils.js +1 -0
  510. package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
  511. package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
  512. package/libs/vendor/swiper/svelte/swiper.js +1 -0
  513. package/package.json +187 -17
  514. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
  515. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
  516. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
  517. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
  518. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
  519. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
  520. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
  521. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.1.2-alpha.0</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.1.2-alpha.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.1.2-alpha.2</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.1.2-alpha.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,13 +6,13 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.1.2-alpha.0</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.1.2-alpha.2</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">如视看房插件合集 - v2.1.2-alpha.0</a></li>
15
+ <li><a href="../modules.html">如视看房插件合集 - v2.1.2-alpha.2</a></li>
16
16
  <li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
17
17
  <h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
18
18
  <div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
@@ -24,7 +24,7 @@
24
24
  <li class="tsd-parameter">
25
25
  <h5>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
26
26
  <ul>
27
- <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/8462b9b/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
27
+ <li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/ca1a1ce/plugins/src/ModelRoomLabelPlugin/index.ts#L12">plugins/src/ModelRoomLabelPlugin/index.ts:12</a></li></ul></aside></div>
28
28
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
29
29
  <div class="tsd-navigation settings">
30
30
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -41,7 +41,7 @@
41
41
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
42
42
  <div class="tsd-accordion-details">
43
43
  <ul>
44
- <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.1.2-<wbr/>alpha.0</a>
44
+ <li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.1.2-<wbr/>alpha.2</a>
45
45
  <ul>
46
46
  <li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
47
47
  <nav class="tsd-navigation secondary menu-sticky">
@@ -1,331 +1 @@
1
- var Z = Object.defineProperty;
2
- var x = Object.getOwnPropertySymbols;
3
- var ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
4
- var F = (b, e, t) => e in b ? Z(b, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[e] = t, U = (b, e) => {
5
- for (var t in e || (e = {}))
6
- ee.call(e, t) && F(b, t, e[t]);
7
- if (x)
8
- for (var t of x(e))
9
- te.call(e, t) && F(b, t, e[t]);
10
- return b;
11
- };
12
- var l = (b, e, t) => (F(b, typeof e != "symbol" ? e + "" : e, t), t);
13
- var C = (b, e, t) => new Promise((s, n) => {
14
- var d = (i) => {
15
- try {
16
- a(t.next(i));
17
- } catch (f) {
18
- n(f);
19
- }
20
- }, c = (i) => {
21
- try {
22
- a(t.throw(i));
23
- } catch (f) {
24
- n(f);
25
- }
26
- }, a = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(d, c);
27
- a((t = t.apply(b, e)).next());
28
- });
29
- import * as y from "three";
30
- import { CSS3DRenderer as H } from "three/examples/jsm/renderers/CSS3DRenderer";
31
- import { Subscribe as se } from "../shared-utils/Subscribe.js";
32
- import { evenNumber as N } from "./utils/evenNumber.js";
33
- import { anyPositionToVector3 as oe } from "./utils/positionToVector3.js";
34
- import { CSS3DObjectPlus as ne } from "./utils/CSS3DObjectPlus.js";
35
- import { MinRatio as Se } from "./utils/CSS3DObjectPlus.js";
36
- const re = "v2.0.1", _ = "CSS3DRenderer", m = `${_}@${re}`, V = (b) => `${m}--${b}`, o = {};
37
- class fe {
38
- constructor() {
39
- l(this, "hooks", new se());
40
- l(this, "state", {
41
- enabled: !0,
42
- visible: !0,
43
- disposed: !1
44
- });
45
- l(this, "store", {
46
- rendered: !1,
47
- disposers: [],
48
- frontModeCSS3DObjects: {},
49
- behindModeCSS3DObjects: {}
50
- });
51
- l(this, "create3DElement", (e, t, s) => {
52
- if (this.state.disposed)
53
- return this.disposedErrorLog();
54
- const n = (() => {
55
- const r = {
56
- ratio: 216e-5,
57
- devicePixelRatio: 1,
58
- mode: "front",
59
- autoRender: !0,
60
- container: document.createElement("div"),
61
- pointerEvents: "none"
62
- };
63
- return Object.assign(r, s);
64
- })(), d = t.map(oe);
65
- if ((d == null ? void 0 : d.length) < 4)
66
- return console.error(`${m}: requires 4 point but params may have fewer`);
67
- const { ratio: c, devicePixelRatio: a, mode: i, autoRender: f, container: u, pointerEvents: G } = n, z = [], { css3DObject: h, opacityMesh: O } = this.createObject(d, { ratio: c, dpr: a, container: u, mode: i, pointerEvents: G });
68
- u.id = `container--${h.uuid}`;
69
- const Q = i === "front" && !o.frontModeStore, W = i === "behind" && !o.behindModeStore;
70
- i === "front" && this.initGlobalModeStore("front"), i === "behind" && this.initGlobalModeStore("behind", n.scene), h.hooks.on("changeMode", (r, D, M) => {
71
- var B, L, P;
72
- if (r === D)
73
- return;
74
- r === "front" && this.initGlobalModeStore("front"), r === "behind" && this.initGlobalModeStore("behind", M);
75
- const S = D === "front" ? o.frontModeStore : o.behindModeStore, p = r === "front" ? o.frontModeStore : o.behindModeStore, I = D === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects, w = r === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects;
76
- if (!I || !w)
77
- return console.error(`${m}: changeMode error: prevObjects or nextObjects is undefined`);
78
- const j = I[h.uuid];
79
- if (!j)
80
- return console.error(`${m}: changeMode error: prevObject is undefined`);
81
- if (r === "behind") {
82
- const T = (B = j.opacityMesh) != null ? B : this.createOpacityMesh(j.css3DObject);
83
- S == null || S.css3DScene.remove(j.css3DObject), w[h.uuid] = { css3DObject: h, opacityMesh: T, visible: !0, enabled: !0, mode: r, scene: M }, p == null || p.css3DScene.add(h), M == null || M.add(T);
84
- }
85
- r === "front" && (S == null || S.css3DScene.remove(j.css3DObject), (P = (L = I[h.uuid]) == null ? void 0 : L.scene) == null || P.remove(j.opacityMesh), w[h.uuid] = { css3DObject: h, visible: !0, enabled: !0, mode: r }, p == null || p.css3DScene.add(h)), r === "behind" && this.appendToElement(o.behindModeContainer, "behind"), r === "front" && this.appendToElement(o.frontModeContainer, "front"), this.render(e), console.log("change success");
86
- });
87
- const g = i === "front" ? o.frontModeStore : o.behindModeStore, { css3DScene: E, css3DRenderer: v } = g, q = (() => {
88
- const r = () => {
89
- var M, S;
90
- const D = h.mode;
91
- if (D === "front")
92
- this.store.frontModeCSS3DObjects[h.uuid] = {
93
- visible: !0,
94
- enabled: !0,
95
- css3DObject: h,
96
- mode: "front"
97
- };
98
- else {
99
- if (!n.scene)
100
- return;
101
- this.store.behindModeCSS3DObjects[h.uuid] = {
102
- visible: !0,
103
- enabled: !0,
104
- css3DObject: h,
105
- opacityMesh: O,
106
- mode: "behind",
107
- scene: n.scene
108
- };
109
- }
110
- E.getObjectById(h.id) || E.add(h), D === "behind" && O && ((M = n.scene) != null && M.getObjectById(O.id) || (S = n.scene) == null || S.add(O), z.push(() => {
111
- var p;
112
- return O && ((p = n.scene) == null ? void 0 : p.remove(O));
113
- }));
114
- };
115
- return Q || W ? (v.domElement.style.position = "absolute", v.domElement.style.top = "0", v.domElement.style.userSelect = "none", v.domElement.style.pointerEvents = "none", v.domElement.classList.add(V(i)), () => {
116
- r(), this.render(e);
117
- }) : (this.store.rendered = !0, () => r());
118
- })(), k = i === "front" ? o.frontModeContainer : o.behindModeContainer;
119
- if (k) {
120
- this.appendToElement(k, i);
121
- const r = i === "front" ? o.frontModeStore : o.behindModeStore;
122
- r && (r.appendedToPage = !0);
123
- }
124
- const R = (r) => this.setVisibleById(h.uuid, r), A = (r) => this.setEnabledById(h.uuid, r), J = () => R(!0), K = () => R(!1), X = () => A(!0), Y = () => A(!1), $ = () => (delete this.store.frontModeCSS3DObjects[h.uuid], delete this.store.behindModeCSS3DObjects[h.uuid], z.forEach((r) => r == null ? void 0 : r()), E.remove(h), E.children.length === 0 && (typeof g.requestAnimationFrameId == "number" && cancelAnimationFrame(g.requestAnimationFrameId), v.domElement.remove(), i === "front" && (o.frontModeStore = void 0), i === "behind" && (o.behindModeStore = void 0), o.frontModeResizeObserver = void 0, o.behindModeResizeObserver = void 0), !0);
125
- return this.store.disposers.push($), f && q(), {
126
- id: h.uuid,
127
- container: u,
128
- dispose: $,
129
- css3DObject: h,
130
- render: f ? void 0 : q,
131
- show: J,
132
- hide: K,
133
- setVisible: R,
134
- disable: Y,
135
- enable: X,
136
- setEnabled: A,
137
- appendToElement: (r) => this.appendToElement(r, i)
138
- };
139
- });
140
- l(this, "setVisibleById", (e, t) => {
141
- var n;
142
- const s = (n = this.store.frontModeCSS3DObjects[e]) != null ? n : this.store.behindModeCSS3DObjects[e];
143
- if (!s)
144
- return console.error("id not found", e);
145
- s.visible = t, this.state.visible && (s.css3DObject.visible = t, s.mode === "behind" && (s.opacityMesh.visible = t));
146
- });
147
- l(this, "setEnabledById", (e, t) => {
148
- var d, c, a;
149
- const s = (d = this.store.frontModeCSS3DObjects[e]) != null ? d : this.store.behindModeCSS3DObjects[e];
150
- if (!s)
151
- return;
152
- const n = s.mode === "front" ? (c = o.frontModeStore) == null ? void 0 : c.css3DScene : (a = o.behindModeStore) == null ? void 0 : a.css3DScene;
153
- !n || (t ? (n.add(s.css3DObject), s.mode === "behind" && s.scene.add(s.opacityMesh)) : (n.remove(s.css3DObject), s.mode === "behind" && s.scene.remove(s.opacityMesh)), s.enabled = t);
154
- });
155
- l(this, "createObject", (e, t) => {
156
- const { ratio: s, dpr: n, container: d, mode: c, pointerEvents: a } = t, i = new ne(d, e, s, n, c);
157
- d.style.pointerEvents = a, d.classList.add(`${_}__container`);
158
- const f = c === "behind" ? this.createOpacityMesh(i) : void 0;
159
- return { css3DObject: i, opacityMesh: f };
160
- });
161
- l(this, "createOpacityMesh", (e) => {
162
- const { domWidthPx: t, domHeightPx: s } = e, n = new y.MeshBasicMaterial({
163
- opacity: 0,
164
- color: 0,
165
- transparent: !1,
166
- side: y.DoubleSide
167
- }), d = new y.PlaneGeometry(t, s), c = new y.Mesh(d, n);
168
- return c.name = V("mesh"), c.position.copy(e.position), c.rotation.copy(e.rotation), c.scale.copy(e.scale), e.hooks.on("applyMatrix4", (a) => c.applyMatrix4(a)), e.hooks.on("applyQuaternion", (a) => c.applyQuaternion(a)), e.hooks.on("applyScaleMatrix4", (a) => c.scale.applyMatrix4(a)), c;
169
- });
170
- l(this, "createResizeObserver", (e, t, s = !0) => {
171
- if (!e)
172
- return console.error("createResizeObserver: element is undefined"), { observe: () => {
173
- }, unobserve: () => {
174
- } };
175
- const n = () => {
176
- const c = N(e.clientWidth, { smaller: !0 }), a = N(e.clientHeight, { smaller: !0 });
177
- t(c, a);
178
- };
179
- if (typeof ResizeObserver == "undefined" || !ResizeObserver)
180
- return console.warn("createResizeObserver: ResizeObserver is undefined"), { observe: () => n(), unobserve: () => {
181
- } };
182
- const d = new ResizeObserver(n);
183
- return s && n(), {
184
- observe: () => d.observe(e),
185
- unobserve: () => d.unobserve(e)
186
- };
187
- });
188
- l(this, "disposedErrorLog", () => {
189
- console.error(`${m} is disposed`);
190
- });
191
- }
192
- getCurrentState() {
193
- return this.state;
194
- }
195
- setState(e, t = { userAction: !0 }) {
196
- if (this.state.disposed)
197
- return this.disposedErrorLog();
198
- const s = U({}, this.state);
199
- this.state = Object.assign(this.state, e), s.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), s.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: t.userAction });
200
- }
201
- dispose() {
202
- this.store.disposers.forEach((e) => e == null ? void 0 : e()), this.store.disposers = [], this.hooks.emit("dispose"), this.state.disposed = !0;
203
- }
204
- show() {
205
- return C(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
206
- if (this.state.disposed)
207
- return this.disposedErrorLog();
208
- this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
209
- });
210
- }
211
- hide() {
212
- return C(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
213
- if (this.state.disposed)
214
- return this.disposedErrorLog();
215
- this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
216
- });
217
- }
218
- enable({ userAction: e } = { userAction: !0 }) {
219
- if (this.state.disposed)
220
- return this.disposedErrorLog();
221
- this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
222
- }
223
- disable({ userAction: e } = { userAction: !0 }) {
224
- if (this.state.disposed)
225
- return this.disposedErrorLog();
226
- this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
227
- }
228
- setContainer(e, t) {
229
- t === "front" ? o.frontModeContainer = e : o.behindModeContainer = e;
230
- }
231
- appendToElement(e, t) {
232
- const s = t === "front" ? o.frontModeStore : o.behindModeStore;
233
- if (!s) {
234
- if (t === "front" && !o.frontModeContainer) {
235
- if (!e)
236
- throw new Error(`${m} Cannot append to container: front mode but container is ${e}`);
237
- o.frontModeContainer = e;
238
- }
239
- if (t === "behind" && !o.behindModeContainer) {
240
- if (!e)
241
- throw new Error(`${m} Cannot append to container: behind mode but container is ${e}`);
242
- o.behindModeContainer = e;
243
- }
244
- return;
245
- }
246
- if (s.appendedToPage)
247
- return;
248
- const n = t === "behind" ? o.behindModeContainer : o.frontModeContainer;
249
- if (!n)
250
- return console.error("wrapper is undefined");
251
- if (n.appendChild(s.css3DRenderer.domElement), t === "behind" && !o.behindModeResizeObserver) {
252
- const d = (i, f) => {
253
- var u;
254
- (u = o.behindModeStore) == null || u.css3DRenderer.setSize(i, f);
255
- }, { observe: c, unobserve: a } = this.createResizeObserver(n, d, !0);
256
- o.behindModeResizeObserver = { observe: c, unobserve: a }, c(), this.store.disposers.push(a);
257
- }
258
- if (t === "front" && !o.frontModeResizeObserver) {
259
- const d = (i, f) => {
260
- var u;
261
- (u = o.frontModeStore) == null || u.css3DRenderer.setSize(i, f);
262
- }, { observe: c, unobserve: a } = this.createResizeObserver(n, d, !0);
263
- o.frontModeResizeObserver = { observe: c, unobserve: a }, c(), this.store.disposers.push(a);
264
- }
265
- s.appendedToPage = !0;
266
- }
267
- render(e) {
268
- const t = o.behindModeStore, s = o.frontModeStore;
269
- if (t && Object.keys(this.store.behindModeCSS3DObjects).length > 0 && !t.requestAnimationFrameId) {
270
- const n = () => {
271
- const d = requestAnimationFrame(n);
272
- t.requestAnimationFrameId = d, t.css3DRenderer.render(t.css3DScene, e);
273
- };
274
- n();
275
- }
276
- if (s && Object.keys(this.store.frontModeCSS3DObjects).length > 0 && !s.requestAnimationFrameId) {
277
- const n = () => {
278
- const d = requestAnimationFrame(n);
279
- s.requestAnimationFrameId = d, s.css3DRenderer.render(s.css3DScene, e);
280
- };
281
- n();
282
- }
283
- Object.keys(this.store.frontModeCSS3DObjects).length === 0 && (s == null ? void 0 : s.requestAnimationFrameId) !== void 0 && (cancelAnimationFrame(s.requestAnimationFrameId), s.requestAnimationFrameId = void 0), Object.keys(this.store.behindModeCSS3DObjects).length === 0 && (t == null ? void 0 : t.requestAnimationFrameId) !== void 0 && (cancelAnimationFrame(t.requestAnimationFrameId), t.requestAnimationFrameId = void 0);
284
- }
285
- initGlobalModeStore(e, t) {
286
- const s = e === "front" && !o.frontModeStore;
287
- e === "behind" && !o.behindModeStore && (o.behindModeStore = { scene: t, css3DScene: new y.Scene(), css3DRenderer: new H() }), s && (o.frontModeStore = { css3DScene: new y.Scene(), css3DRenderer: new H() });
288
- }
289
- handleShow() {
290
- return C(this, null, function* () {
291
- Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
292
- e.css3DObject.visible = e.visible;
293
- }), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
294
- e.css3DObject.visible = e.visible, e.opacityMesh.visible = e.visible;
295
- });
296
- });
297
- }
298
- handleHide() {
299
- return C(this, null, function* () {
300
- Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
301
- e.css3DObject.visible = !1;
302
- }), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
303
- e.css3DObject.visible = !1, e.opacityMesh.visible = !1;
304
- });
305
- });
306
- }
307
- handleEnable() {
308
- Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
309
- var t;
310
- !e.enabled || (t = o.frontModeStore) == null || t.css3DScene.add(e.css3DObject);
311
- }), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
312
- var t, s;
313
- !e.enabled || ((t = o.behindModeStore) == null || t.css3DScene.add(e.css3DObject), (s = o.behindModeStore) == null || s.scene.add(e.opacityMesh));
314
- });
315
- }
316
- handleDisable() {
317
- Object.values(this.store.frontModeCSS3DObjects).forEach((e) => {
318
- var t;
319
- (t = o.frontModeStore) == null || t.css3DScene.remove(e.css3DObject);
320
- }), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
321
- var t, s;
322
- (t = o.behindModeStore) == null || t.css3DScene.remove(e.css3DObject), (s = o.behindModeStore) == null || s.scene.remove(e.opacityMesh);
323
- });
324
- }
325
- }
326
- export {
327
- fe as CSS3DRender,
328
- Se as MinRatio,
329
- m as PLUGIN,
330
- o as globalStore
331
- };
1
+ "use strict";var Z=Object.defineProperty;var L=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var q=(b,e,t)=>e in b?Z(b,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):b[e]=t,N=(b,e)=>{for(var t in e||(e={}))ee.call(e,t)&&q(b,t,e[t]);if(L)for(var t of L(e))te.call(e,t)&&q(b,t,e[t]);return b};var f=(b,e,t)=>(q(b,typeof e!="symbol"?e+"":e,t),t);var y=(b,e,t)=>new Promise((s,n)=>{var d=i=>{try{a(t.next(i))}catch(u){n(u)}},c=i=>{try{a(t.throw(i))}catch(u){n(u)}},a=i=>i.done?s(i.value):Promise.resolve(i.value).then(d,c);a((t=t.apply(b,e)).next())});const se=require("three"),x=require("three/examples/jsm/renderers/CSS3DRenderer"),oe=require("../shared-utils/Subscribe.js"),U=require("./utils/evenNumber.js"),ne=require("./utils/positionToVector3.js"),re=require("./utils/CSS3DObjectPlus.js");function ie(b){if(b&&b.__esModule)return b;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(b){for(const t in b)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(b,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>b[t]})}}return e.default=b,Object.freeze(e)}const C=ie(se),de="v2.0.1",V="CSS3DRenderer",m=`${V}@${de}`,H=b=>`${m}--${b}`,o={};class ce{constructor(){f(this,"hooks",new oe.Subscribe);f(this,"state",{enabled:!0,visible:!0,disposed:!1});f(this,"store",{rendered:!1,disposers:[],frontModeCSS3DObjects:{},behindModeCSS3DObjects:{}});f(this,"create3DElement",(e,t,s)=>{if(this.state.disposed)return this.disposedErrorLog();const n=(()=>{const r={ratio:.00216,devicePixelRatio:1,mode:"front",autoRender:!0,container:document.createElement("div"),pointerEvents:"none"};return Object.assign(r,s)})(),d=t.map(ne.anyPositionToVector3);if((d==null?void 0:d.length)<4)return console.error(`${m}: requires 4 point but params may have fewer`);const{ratio:c,devicePixelRatio:a,mode:i,autoRender:u,container:l,pointerEvents:G}=n,F=[],{css3DObject:h,opacityMesh:O}=this.createObject(d,{ratio:c,dpr:a,container:l,mode:i,pointerEvents:G});l.id=`container--${h.uuid}`;const Q=i==="front"&&!o.frontModeStore,W=i==="behind"&&!o.behindModeStore;i==="front"&&this.initGlobalModeStore("front"),i==="behind"&&this.initGlobalModeStore("behind",n.scene),h.hooks.on("changeMode",(r,D,M)=>{var T,_,$;if(r===D)return;r==="front"&&this.initGlobalModeStore("front"),r==="behind"&&this.initGlobalModeStore("behind",M);const S=D==="front"?o.frontModeStore:o.behindModeStore,p=r==="front"?o.frontModeStore:o.behindModeStore,I=D==="behind"?this.store.behindModeCSS3DObjects:this.store.frontModeCSS3DObjects,w=r==="behind"?this.store.behindModeCSS3DObjects:this.store.frontModeCSS3DObjects;if(!I||!w)return console.error(`${m}: changeMode error: prevObjects or nextObjects is undefined`);const j=I[h.uuid];if(!j)return console.error(`${m}: changeMode error: prevObject is undefined`);if(r==="behind"){const B=(T=j.opacityMesh)!=null?T:this.createOpacityMesh(j.css3DObject);S==null||S.css3DScene.remove(j.css3DObject),w[h.uuid]={css3DObject:h,opacityMesh:B,visible:!0,enabled:!0,mode:r,scene:M},p==null||p.css3DScene.add(h),M==null||M.add(B)}r==="front"&&(S==null||S.css3DScene.remove(j.css3DObject),($=(_=I[h.uuid])==null?void 0:_.scene)==null||$.remove(j.opacityMesh),w[h.uuid]={css3DObject:h,visible:!0,enabled:!0,mode:r},p==null||p.css3DScene.add(h)),r==="behind"&&this.appendToElement(o.behindModeContainer,"behind"),r==="front"&&this.appendToElement(o.frontModeContainer,"front"),this.render(e),console.log("change success")});const g=i==="front"?o.frontModeStore:o.behindModeStore,{css3DScene:E,css3DRenderer:v}=g,z=(()=>{const r=()=>{var M,S;const D=h.mode;if(D==="front")this.store.frontModeCSS3DObjects[h.uuid]={visible:!0,enabled:!0,css3DObject:h,mode:"front"};else{if(!n.scene)return;this.store.behindModeCSS3DObjects[h.uuid]={visible:!0,enabled:!0,css3DObject:h,opacityMesh:O,mode:"behind",scene:n.scene}}E.getObjectById(h.id)||E.add(h),D==="behind"&&O&&((M=n.scene)!=null&&M.getObjectById(O.id)||(S=n.scene)==null||S.add(O),F.push(()=>{var p;return O&&((p=n.scene)==null?void 0:p.remove(O))}))};return Q||W?(v.domElement.style.position="absolute",v.domElement.style.top="0",v.domElement.style.userSelect="none",v.domElement.style.pointerEvents="none",v.domElement.classList.add(H(i)),()=>{r(),this.render(e)}):(this.store.rendered=!0,()=>r())})(),P=i==="front"?o.frontModeContainer:o.behindModeContainer;if(P){this.appendToElement(P,i);const r=i==="front"?o.frontModeStore:o.behindModeStore;r&&(r.appendedToPage=!0)}const R=r=>this.setVisibleById(h.uuid,r),A=r=>this.setEnabledById(h.uuid,r),J=()=>R(!0),K=()=>R(!1),X=()=>A(!0),Y=()=>A(!1),k=()=>(delete this.store.frontModeCSS3DObjects[h.uuid],delete this.store.behindModeCSS3DObjects[h.uuid],F.forEach(r=>r==null?void 0:r()),E.remove(h),E.children.length===0&&(typeof g.requestAnimationFrameId=="number"&&cancelAnimationFrame(g.requestAnimationFrameId),v.domElement.remove(),i==="front"&&(o.frontModeStore=void 0),i==="behind"&&(o.behindModeStore=void 0),o.frontModeResizeObserver=void 0,o.behindModeResizeObserver=void 0),!0);return this.store.disposers.push(k),u&&z(),{id:h.uuid,container:l,dispose:k,css3DObject:h,render:u?void 0:z,show:J,hide:K,setVisible:R,disable:Y,enable:X,setEnabled:A,appendToElement:r=>this.appendToElement(r,i)}});f(this,"setVisibleById",(e,t)=>{var n;const s=(n=this.store.frontModeCSS3DObjects[e])!=null?n:this.store.behindModeCSS3DObjects[e];if(!s)return console.error("id not found",e);s.visible=t,this.state.visible&&(s.css3DObject.visible=t,s.mode==="behind"&&(s.opacityMesh.visible=t))});f(this,"setEnabledById",(e,t)=>{var d,c,a;const s=(d=this.store.frontModeCSS3DObjects[e])!=null?d:this.store.behindModeCSS3DObjects[e];if(!s)return;const n=s.mode==="front"?(c=o.frontModeStore)==null?void 0:c.css3DScene:(a=o.behindModeStore)==null?void 0:a.css3DScene;!n||(t?(n.add(s.css3DObject),s.mode==="behind"&&s.scene.add(s.opacityMesh)):(n.remove(s.css3DObject),s.mode==="behind"&&s.scene.remove(s.opacityMesh)),s.enabled=t)});f(this,"createObject",(e,t)=>{const{ratio:s,dpr:n,container:d,mode:c,pointerEvents:a}=t,i=new re.CSS3DObjectPlus(d,e,s,n,c);d.style.pointerEvents=a,d.classList.add(`${V}__container`);const u=c==="behind"?this.createOpacityMesh(i):void 0;return{css3DObject:i,opacityMesh:u}});f(this,"createOpacityMesh",e=>{const{domWidthPx:t,domHeightPx:s}=e,n=new C.MeshBasicMaterial({opacity:0,color:0,transparent:!1,side:C.DoubleSide}),d=new C.PlaneGeometry(t,s),c=new C.Mesh(d,n);return c.name=H("mesh"),c.position.copy(e.position),c.rotation.copy(e.rotation),c.scale.copy(e.scale),e.hooks.on("applyMatrix4",a=>c.applyMatrix4(a)),e.hooks.on("applyQuaternion",a=>c.applyQuaternion(a)),e.hooks.on("applyScaleMatrix4",a=>c.scale.applyMatrix4(a)),c});f(this,"createResizeObserver",(e,t,s=!0)=>{if(!e)return console.error("createResizeObserver: element is undefined"),{observe:()=>{},unobserve:()=>{}};const n=()=>{const c=U.evenNumber(e.clientWidth,{smaller:!0}),a=U.evenNumber(e.clientHeight,{smaller:!0});t(c,a)};if(typeof ResizeObserver=="undefined"||!ResizeObserver)return console.warn("createResizeObserver: ResizeObserver is undefined"),{observe:()=>n(),unobserve:()=>{}};const d=new ResizeObserver(n);return s&&n(),{observe:()=>d.observe(e),unobserve:()=>d.unobserve(e)}});f(this,"disposedErrorLog",()=>{console.error(`${m} is disposed`)})}getCurrentState(){return this.state}setState(e,t={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();const s=N({},this.state);this.state=Object.assign(this.state,e),s.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),s.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:s,userAction:t.userAction})}dispose(){this.store.disposers.forEach(e=>e==null?void 0:e()),this.store.disposers=[],this.hooks.emit("dispose"),this.state.disposed=!0}show(){return y(this,arguments,function*({userAction:e}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:e}),this.hooks.emit("show",{userAction:e})})}hide(){return y(this,arguments,function*({userAction:e}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:e}),this.hooks.emit("hide",{userAction:e})})}enable({userAction:e}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:e}),this.hooks.emit("enable",{userAction:e})}disable({userAction:e}={userAction:!0}){if(this.state.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:e}),this.hooks.emit("disable",{userAction:e})}setContainer(e,t){t==="front"?o.frontModeContainer=e:o.behindModeContainer=e}appendToElement(e,t){const s=t==="front"?o.frontModeStore:o.behindModeStore;if(!s){if(t==="front"&&!o.frontModeContainer){if(!e)throw new Error(`${m} Cannot append to container: front mode but container is ${e}`);o.frontModeContainer=e}if(t==="behind"&&!o.behindModeContainer){if(!e)throw new Error(`${m} Cannot append to container: behind mode but container is ${e}`);o.behindModeContainer=e}return}if(s.appendedToPage)return;const n=t==="behind"?o.behindModeContainer:o.frontModeContainer;if(!n)return console.error("wrapper is undefined");if(n.appendChild(s.css3DRenderer.domElement),t==="behind"&&!o.behindModeResizeObserver){const d=(i,u)=>{var l;(l=o.behindModeStore)==null||l.css3DRenderer.setSize(i,u)},{observe:c,unobserve:a}=this.createResizeObserver(n,d,!0);o.behindModeResizeObserver={observe:c,unobserve:a},c(),this.store.disposers.push(a)}if(t==="front"&&!o.frontModeResizeObserver){const d=(i,u)=>{var l;(l=o.frontModeStore)==null||l.css3DRenderer.setSize(i,u)},{observe:c,unobserve:a}=this.createResizeObserver(n,d,!0);o.frontModeResizeObserver={observe:c,unobserve:a},c(),this.store.disposers.push(a)}s.appendedToPage=!0}render(e){const t=o.behindModeStore,s=o.frontModeStore;if(t&&Object.keys(this.store.behindModeCSS3DObjects).length>0&&!t.requestAnimationFrameId){const n=()=>{const d=requestAnimationFrame(n);t.requestAnimationFrameId=d,t.css3DRenderer.render(t.css3DScene,e)};n()}if(s&&Object.keys(this.store.frontModeCSS3DObjects).length>0&&!s.requestAnimationFrameId){const n=()=>{const d=requestAnimationFrame(n);s.requestAnimationFrameId=d,s.css3DRenderer.render(s.css3DScene,e)};n()}Object.keys(this.store.frontModeCSS3DObjects).length===0&&(s==null?void 0:s.requestAnimationFrameId)!==void 0&&(cancelAnimationFrame(s.requestAnimationFrameId),s.requestAnimationFrameId=void 0),Object.keys(this.store.behindModeCSS3DObjects).length===0&&(t==null?void 0:t.requestAnimationFrameId)!==void 0&&(cancelAnimationFrame(t.requestAnimationFrameId),t.requestAnimationFrameId=void 0)}initGlobalModeStore(e,t){const s=e==="front"&&!o.frontModeStore;e==="behind"&&!o.behindModeStore&&(o.behindModeStore={scene:t,css3DScene:new C.Scene,css3DRenderer:new x.CSS3DRenderer}),s&&(o.frontModeStore={css3DScene:new C.Scene,css3DRenderer:new x.CSS3DRenderer})}handleShow(){return y(this,null,function*(){Object.values(this.store.frontModeCSS3DObjects).forEach(e=>{e.css3DObject.visible=e.visible}),Object.values(this.store.behindModeCSS3DObjects).forEach(e=>{e.css3DObject.visible=e.visible,e.opacityMesh.visible=e.visible})})}handleHide(){return y(this,null,function*(){Object.values(this.store.frontModeCSS3DObjects).forEach(e=>{e.css3DObject.visible=!1}),Object.values(this.store.behindModeCSS3DObjects).forEach(e=>{e.css3DObject.visible=!1,e.opacityMesh.visible=!1})})}handleEnable(){Object.values(this.store.frontModeCSS3DObjects).forEach(e=>{var t;!e.enabled||(t=o.frontModeStore)==null||t.css3DScene.add(e.css3DObject)}),Object.values(this.store.behindModeCSS3DObjects).forEach(e=>{var t,s;!e.enabled||((t=o.behindModeStore)==null||t.css3DScene.add(e.css3DObject),(s=o.behindModeStore)==null||s.scene.add(e.opacityMesh))})}handleDisable(){Object.values(this.store.frontModeCSS3DObjects).forEach(e=>{var t;(t=o.frontModeStore)==null||t.css3DScene.remove(e.css3DObject)}),Object.values(this.store.behindModeCSS3DObjects).forEach(e=>{var t,s;(t=o.behindModeStore)==null||t.css3DScene.remove(e.css3DObject),(s=o.behindModeStore)==null||s.scene.remove(e.opacityMesh)})}}exports.CSS3DRender=ce;
@@ -1,84 +1 @@
1
- var y = Object.defineProperty, F = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var R = Object.getOwnPropertySymbols;
4
- var S = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
- var h = (s, n, e) => n in s ? y(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e, v = (s, n) => {
6
- for (var e in n || (n = {}))
7
- S.call(n, e) && h(s, e, n[e]);
8
- if (R)
9
- for (var e of R(n))
10
- D.call(n, e) && h(s, e, n[e]);
11
- return s;
12
- }, m = (s, n) => F(s, P(n));
13
- var l = (s, n, e) => (h(s, typeof n != "symbol" ? n + "" : n, e), e);
14
- import { CSS3DRender as w } from "./CSS3DRender.js";
15
- const x = "v2.0.1", C = `CSS3DRenderPlugin@${x}`;
16
- class N extends w {
17
- constructor(e) {
18
- super();
19
- l(this, "five");
20
- l(this, "behindFiveContainer");
21
- l(this, "staticPrefix", "//vrlab-static.ljcdn.com");
22
- l(this, "create3DDomContainer", (e, t) => {
23
- if (this.state.disposed)
24
- return;
25
- const i = (() => {
26
- var E;
27
- (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${C}: please use "config.devicePixelRatio" replace "config.dpr"`);
28
- const a = {
29
- ratio: 216e-5,
30
- devicePixelRatio: (E = t == null ? void 0 : t.dpr) != null ? E : 1,
31
- mode: "front",
32
- autoRender: !0
33
- };
34
- return Object.assign(a, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
35
- })(), o = this.five.getElement();
36
- if (!o) {
37
- console.error(`${C}: five.getElement() is ${o}`);
38
- return;
39
- }
40
- const { autoRender: d, mode: r } = i, p = r === "front" ? o.parentElement : i.behindFiveContainer;
41
- this.setContainer(p || document.body, "front");
42
- const f = this.getBehindFiveElement();
43
- f && this.setContainer(f, "behind"), this.appendToElement(p || document.body, r);
44
- const u = this.create3DElement(this.five.camera, e, m(v({}, i), { autoRender: !1 }));
45
- if (!u)
46
- return;
47
- const c = u.render, b = () => {
48
- var a;
49
- r === "front" && c(), r === "behind" && ((a = this.five.model) != null && a.loaded ? c() : this.five.once("modelLoaded", () => c()));
50
- };
51
- return d && b(), m(v({}, u), { render: d ? void 0 : b });
52
- });
53
- this.five = e;
54
- }
55
- disposeAll() {
56
- return this.dispose();
57
- }
58
- setState(...e) {
59
- const t = super.setState(...e);
60
- return this.five.needsRender = !0, t;
61
- }
62
- getBehindFiveElement() {
63
- var r;
64
- const { behindFiveContainer: e } = this;
65
- if (e)
66
- return e;
67
- const t = document.createElement("div");
68
- t.style.position = "absolute", t.style.pointerEvents = "none", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", this.behindFiveContainer = t;
69
- const i = this.five.getElement();
70
- if (!i)
71
- return;
72
- const o = (r = i == null ? void 0 : i.style.position) != null ? r : getComputedStyle(i);
73
- (!o || o === "static") && console.warn(
74
- "if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute"
75
- );
76
- const d = i == null ? void 0 : i.parentElement;
77
- if (d)
78
- return d.insertBefore(t, i), t;
79
- }
80
- }
81
- export {
82
- C as PLUGIN_NAME,
83
- N as default
84
- };
1
+ "use strict";var S=Object.defineProperty,y=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var h=(s,n,e)=>n in s?S(s,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[n]=e,v=(s,n)=>{for(var e in n||(n={}))P.call(n,e)&&h(s,e,n[e]);if(R)for(var e of R(n))F.call(n,e)&&h(s,e,n[e]);return s},m=(s,n)=>y(s,D(n));var l=(s,n,e)=>(h(s,typeof n!="symbol"?n+"":n,e),e);const w=require("./CSS3DRender.js"),x="v2.0.1",E=`CSS3DRenderPlugin@${x}`;class $ extends w.CSS3DRender{constructor(e){super();l(this,"five");l(this,"behindFiveContainer");l(this,"staticPrefix","//vrlab-static.ljcdn.com");l(this,"create3DDomContainer",(e,t)=>{if(this.state.disposed)return;const i=(()=>{var C;(t==null?void 0:t.dpr)!==void 0&&console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);const a={ratio:.00216,devicePixelRatio:(C=t==null?void 0:t.dpr)!=null?C:1,mode:"front",autoRender:!0};return Object.assign(a,t,(t==null?void 0:t.mode)==="behind"?{scene:this.five.scene}:void 0)})(),o=this.five.getElement();if(!o){console.error(`${E}: five.getElement() is ${o}`);return}const{autoRender:d,mode:r}=i,p=r==="front"?o.parentElement:i.behindFiveContainer;this.setContainer(p||document.body,"front");const f=this.getBehindFiveElement();f&&this.setContainer(f,"behind"),this.appendToElement(p||document.body,r);const u=this.create3DElement(this.five.camera,e,m(v({},i),{autoRender:!1}));if(!u)return;const c=u.render,b=()=>{var a;r==="front"&&c(),r==="behind"&&((a=this.five.model)!=null&&a.loaded?c():this.five.once("modelLoaded",()=>c()))};return d&&b(),m(v({},u),{render:d?void 0:b})});this.five=e}disposeAll(){return this.dispose()}setState(...e){const t=super.setState(...e);return this.five.needsRender=!0,t}getBehindFiveElement(){var r;const{behindFiveContainer:e}=this;if(e)return e;const t=document.createElement("div");t.style.position="absolute",t.style.pointerEvents="none",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",this.behindFiveContainer=t;const i=this.five.getElement();if(!i)return;const o=(r=i==null?void 0:i.style.position)!=null?r:getComputedStyle(i);(!o||o==="static")&&console.warn("if you want to use css3DRenderPlugin behind mode, five element position is static, please set position to relative or absolute");const d=i==null?void 0:i.parentElement;if(d)return d.insertBefore(t,i),t}}exports.Controller=$;
@@ -1,6 +1 @@
1
- import o from "./Controller.js";
2
- const n = (e) => new o(e);
3
- export {
4
- n as CSS3DRenderPlugin,
5
- n as default
6
- };
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./Controller.js");require("./CSS3DRender.js");require("three");require("three/examples/jsm/renderers/CSS3DRenderer");require("../shared-utils/Subscribe.js");require("./utils/evenNumber.js");require("./utils/positionToVector3.js");require("./utils/CSS3DObjectPlus.js");require("./utils/centerPoint.js");const e=r=>new u.Controller(r);exports.CSS3DRenderPlugin=e;exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,67 +1 @@
1
- var P = Object.defineProperty;
2
- var k = (p, h, t) => h in p ? P(p, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[h] = t;
3
- var s = (p, h, t) => (k(p, typeof h != "symbol" ? h + "" : h, t), t);
4
- import { CSS3DObject as D } from "three/examples/jsm/renderers/CSS3DRenderer";
5
- import { Vector3 as n } from "three";
6
- import { evenNumber as f } from "./evenNumber.js";
7
- import { centerPoint as W } from "./centerPoint.js";
8
- import { Subscribe as j } from "../../shared-utils/Subscribe.js";
9
- const w = "1.0.2", v = `CSS3DObjectPlus@${w}`, C = 216e-5, E = 3e-3;
10
- class z extends D {
11
- constructor(t, e, o = E, x = 1, M = "front") {
12
- const l = Math.max(C, o), d = e[0].distanceTo(e[1]), m = e[1].distanceTo(e[2]), c = f(d / o * x), a = f(m / o * x), r = W(...e);
13
- let u;
14
- if (l === o)
15
- t.style.width = `${c}px`, t.style.height = `${a}px`, u = t;
16
- else {
17
- const i = document.createElement("div");
18
- i.style.width = `${c}px`, i.style.height = `${a}px`, i.style.pointerEvents = "none";
19
- const b = o / l;
20
- t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.width = `${b * c}px`, t.style.height = `${b * a}px`, i.appendChild(t), u = i;
21
- }
22
- super(u);
23
- s(this, "version", w);
24
- s(this, "width");
25
- s(this, "height");
26
- s(this, "domWidthPx");
27
- s(this, "domHeightPx");
28
- s(this, "cornerPoints");
29
- s(this, "ratio");
30
- s(this, "container");
31
- s(this, "centerPosition");
32
- s(this, "mode", "front");
33
- s(this, "hooks", new j());
34
- s(this, "isCSS3DObjectPlus", !0);
35
- if (this.scale.set(l, l, l), this.cornerPoints = e, this.ratio = o, this.container = t, this.mode = M, l === o)
36
- this.width = d, this.height = m, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = r;
37
- else {
38
- const i = o / l;
39
- this.width = i * d, this.height = i * m, this.domWidthPx = i * c, this.domHeightPx = i * a, this.centerPosition = new n().subVectors(r, e[0]).multiplyScalar(i).add(e[0]);
40
- }
41
- t.classList.add(`${v}__container`);
42
- const V = new n().subVectors(e[1], e[0]), y = new n().subVectors(e[3], e[0]), $ = new n().crossVectors(V, y).normalize();
43
- this.lookAt($);
44
- const g = this.up.clone().applyQuaternion(this.quaternion), S = y.clone(), O = new n().crossVectors(g, S).normalize();
45
- this.rotateOnWorldAxis(O, g.angleTo(S)), this.position.copy(r);
46
- }
47
- changeMode(t, e) {
48
- if (t === this.mode)
49
- return;
50
- const o = this.mode;
51
- this.mode = t, this.hooks.emit("changeMode", t, o, e);
52
- }
53
- applyScaleMatrix4(t) {
54
- this.scale.applyMatrix4(t), this.hooks.emit("applyScaleMatrix4", t);
55
- }
56
- applyMatrix4(t) {
57
- super.applyMatrix4(t), this.hooks.emit("applyMatrix4", t);
58
- }
59
- applyQuaternion(t) {
60
- return super.applyQuaternion(t), this.hooks.emit("applyQuaternion", t), this;
61
- }
62
- }
63
- export {
64
- z as CSS3DObjectPlus,
65
- E as DefaultRatio,
66
- C as MinRatio
67
- };
1
+ "use strict";var C=Object.defineProperty;var R=(n,h,e)=>h in n?C(n,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[h]=e;var s=(n,h,e)=>(R(n,typeof h!="symbol"?h+"":h,e),e);const v=require("three/examples/jsm/renderers/CSS3DRenderer"),a=require("three"),V=require("./evenNumber.js"),O=require("./centerPoint.js"),$=require("../../shared-utils/Subscribe.js"),w="1.0.2",f=`CSS3DObjectPlus@${w}`,E=.00216,N=.003;class _ extends v.CSS3DObject{constructor(e,t,o=N,S=1,M="front"){const l=Math.max(E,o),d=t[0].distanceTo(t[1]),p=t[1].distanceTo(t[2]),c=V.evenNumber(d/o*S),r=V.evenNumber(p/o*S),u=O.centerPoint(...t);let m;if(l===o)e.style.width=`${c}px`,e.style.height=`${r}px`,m=e;else{const i=document.createElement("div");i.style.width=`${c}px`,i.style.height=`${r}px`,i.style.pointerEvents="none";const g=o/l;e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.width=`${g*c}px`,e.style.height=`${g*r}px`,i.appendChild(e),m=i}super(m);s(this,"version",w);s(this,"width");s(this,"height");s(this,"domWidthPx");s(this,"domHeightPx");s(this,"cornerPoints");s(this,"ratio");s(this,"container");s(this,"centerPosition");s(this,"mode","front");s(this,"hooks",new $.Subscribe);s(this,"isCSS3DObjectPlus",!0);if(this.scale.set(l,l,l),this.cornerPoints=t,this.ratio=o,this.container=e,this.mode=M,l===o)this.width=d,this.height=p,this.domWidthPx=c,this.domHeightPx=r,this.centerPosition=u;else{const i=o/l;this.width=i*d,this.height=i*p,this.domWidthPx=i*c,this.domHeightPx=i*r,this.centerPosition=new a.Vector3().subVectors(u,t[0]).multiplyScalar(i).add(t[0])}e.classList.add(`${f}__container`);const P=new a.Vector3().subVectors(t[1],t[0]),x=new a.Vector3().subVectors(t[3],t[0]),D=new a.Vector3().crossVectors(P,x).normalize();this.lookAt(D);const y=this.up.clone().applyQuaternion(this.quaternion),b=x.clone(),j=new a.Vector3().crossVectors(y,b).normalize();this.rotateOnWorldAxis(j,y.angleTo(b)),this.position.copy(u)}changeMode(e,t){if(e===this.mode)return;const o=this.mode;this.mode=e,this.hooks.emit("changeMode",e,o,t)}applyScaleMatrix4(e){this.scale.applyMatrix4(e),this.hooks.emit("applyScaleMatrix4",e)}applyMatrix4(e){super.applyMatrix4(e),this.hooks.emit("applyMatrix4",e)}applyQuaternion(e){return super.applyQuaternion(e),this.hooks.emit("applyQuaternion",e),this}}exports.CSS3DObjectPlus=_;
@@ -1,10 +1 @@
1
- import { Vector3 as r } from "three";
2
- function c(...t) {
3
- const e = new r();
4
- return t.forEach((n) => {
5
- e.add(n);
6
- }), e.divideScalar(t.length), e;
7
- }
8
- export {
9
- c as centerPoint
10
- };
1
+ "use strict";const r=require("three");function c(...t){const e=new r.Vector3;return t.forEach(n=>{e.add(n)}),e.divideScalar(t.length),e}exports.centerPoint=c;
@@ -1,7 +1 @@
1
- function t(u, r) {
2
- const e = Math.round(u);
3
- return e % 2 === 0 ? e : e + Number(r != null && r.smaller ? -1 : 1);
4
- }
5
- export {
6
- t as evenNumber
7
- };
1
+ "use strict";function t(u,e){const r=Math.round(u);return r%2===0?r:r+Number(e!=null&&e.smaller?-1:1)}exports.evenNumber=t;
@@ -0,0 +1 @@
1
+ "use strict";require("three");
@@ -1,7 +1 @@
1
- import { Vector3 as t } from "three";
2
- const n = ({ x: r, y: e, z: o }) => new t(r, e, o), c = ([r, e, o]) => new t(r, e, o), s = (r) => r instanceof t ? r : Array.isArray(r) ? c(r) : n(r);
3
- export {
4
- s as anyPositionToVector3,
5
- c as arrayPositionToVector3,
6
- n as positionToVector3
7
- };
1
+ "use strict";const t=require("three"),n=({x:r,y:e,z:o})=>new t.Vector3(r,e,o),c=([r,e,o])=>new t.Vector3(r,e,o),s=r=>r instanceof t.Vector3?r:Array.isArray(r)?c(r):n(r);exports.anyPositionToVector3=s;exports.arrayPositionToVector3=c;
@@ -0,0 +1 @@
1
+ "use strict";