@realsee/dnalogel 2.3.8 → 2.3.9-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
- package/dist/PanoTagPlugin/controller/index.d.ts +24 -13
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +21 -17
- package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
- package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/dist/index.cjs.js +54 -56
- package/dist/index.js +7446 -6329
- package/dist/index.umd.js +47 -49
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +221 -174
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +75 -35
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +19 -15
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +19 -15
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +39 -13
- package/docs/functions/CameraMovementPlugin.html +39 -13
- package/docs/functions/CruisePlugin.html +39 -13
- package/docs/functions/GuideLinePlugin.html +40 -14
- package/docs/functions/ItemLabelPlugin.html +39 -13
- package/docs/functions/MapviewFloorplanPlugin.html +39 -13
- package/docs/functions/ModelChassisCompassPlugin.html +39 -13
- package/docs/functions/ModelEntryDoorGuidePlugin.html +39 -13
- package/docs/functions/ModelFloorplanPlugin.html +39 -13
- package/docs/functions/ModelItemLabelPlugin.html +39 -13
- package/docs/functions/ModelRoomLabelPlugin.html +39 -13
- package/docs/functions/ModelTVVideoPlugin.html +39 -13
- package/docs/functions/ModelViewPlugin.html +39 -13
- package/docs/functions/Object3DHelperPlugin.html +39 -13
- package/docs/functions/PanoCompassPlugin.html +39 -13
- package/docs/functions/PanoCursorRaycasterPlugin.html +39 -13
- package/docs/functions/PanoDoorLabelPlugin.html +39 -13
- package/docs/functions/PanoFloorplanRadarPlugin.html +39 -13
- package/docs/functions/PanoMeasurePlugin.html +39 -13
- package/docs/functions/PanoRulerPlugin.html +39 -13
- package/docs/functions/PanoRulerProPlugin.html +39 -13
- package/docs/functions/PanoSpatialTagPlugin.html +39 -13
- package/docs/functions/PanoTagPlugin.html +45 -23
- package/docs/functions/TopviewFloorplanPlugin.html +39 -13
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +40 -14
- package/docs/index.html +39 -13
- package/docs/interfaces/AddTagConfig.html +64 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +298 -0
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/MinMax.html +71 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +40 -14
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +40 -14
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +40 -14
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +40 -14
- package/docs/interfaces/Rooms.html +40 -14
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +89 -0
- package/docs/interfaces/TagCache.html +92 -0
- package/docs/interfaces/TagConfig.html +15 -19
- package/docs/interfaces/TagIconUrl.html +91 -0
- package/docs/interfaces/Tags.html +14 -12
- package/docs/interfaces/TemporaryState.html +64 -0
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +73 -21
- package/docs/types/ArrayPosition.html +41 -15
- package/docs/types/AudioAppearance.html +251 -0
- package/docs/types/AudioTagTypeConfigKey.html +251 -0
- package/docs/types/CSS3DRenderExportType.html +40 -14
- package/docs/types/CSS3DRenderPluginExportType.html +40 -14
- package/docs/types/CSS3DRenderPluginParameterType.html +40 -14
- package/docs/types/Color.html +40 -14
- package/docs/types/ContentTypeConfigKey.html +41 -15
- package/docs/types/ContentTypeConfigKeySplit.html +251 -0
- package/docs/types/ContentTypeMap.html +251 -0
- package/docs/types/Create3DDomContainerReturnType.html +40 -14
- package/docs/types/Create3DElementReturnType.html +40 -14
- package/docs/types/CruisePluginExportType.html +40 -14
- package/docs/types/Direction-1.html +40 -14
- package/docs/types/Direction4.html +40 -14
- package/docs/types/FloorplanRuleLabels.html +40 -14
- package/docs/types/FloorplanServerRuleLabels.html +40 -14
- package/docs/types/GuideLinePluginExportType.html +40 -14
- package/docs/types/HelperEventMap.html +40 -14
- package/docs/types/LoadTagConfig.html +251 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/MapviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/MediaData.html +40 -14
- package/docs/types/MediaStore.html +251 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +40 -14
- package/docs/types/ModelFloorplanPluginParameterType.html +40 -14
- package/docs/types/ModelFloorplanPluginReturnType.html +40 -14
- package/docs/types/ModelRoomLabelPluginParameters.html +40 -14
- package/docs/types/ModelRoomLabelPluginReturnType.html +40 -14
- package/docs/types/MoveArgs.html +40 -14
- package/docs/types/MoveOpts.html +40 -14
- package/docs/types/Object3DHelperEventMap.html +40 -14
- package/docs/types/ObjectFit.html +40 -14
- package/docs/types/PaintBrushEventMap.html +40 -14
- package/docs/types/PanoCompassPluginData.html +40 -14
- package/docs/types/PanoCompassPluginExportType.html +40 -14
- package/docs/types/PanoCompassPluginParameterType.html +40 -14
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +40 -14
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +40 -14
- package/docs/types/{ContentTypeConfigKeyArray.html → PanoIndex.html} +43 -17
- package/docs/types/PanoMeasurePluginEvent.html +40 -14
- package/docs/types/PanoMeasureReturnType.html +40 -14
- package/docs/types/PanoSpatialTagPluginId.html +40 -14
- package/docs/types/PanoTagPluginExportInterface.html +40 -14
- package/docs/types/PanoTagPluginParamsInterface.html +40 -14
- package/docs/types/PlaneTag.html +43 -19
- package/docs/types/PlaneTagElement.html +256 -0
- package/docs/types/Point2DElement.html +256 -0
- package/docs/types/Point2DTag.html +258 -0
- package/docs/types/Point3DElement.html +256 -0
- package/docs/types/Point3DTag.html +258 -0
- package/docs/types/PointTag.html +43 -23
- package/docs/types/PointTagElement.html +256 -0
- package/docs/types/Position.html +40 -14
- package/docs/types/RotateArgs.html +40 -14
- package/docs/types/RotateOpts.html +40 -14
- package/docs/types/RuleLabelsKey.html +40 -14
- package/docs/types/RuleLabelsValue.html +40 -14
- package/docs/types/StickType.html +251 -0
- package/docs/types/Tag.html +44 -22
- package/docs/types/Tag2D.html +45 -20
- package/docs/types/Tag3D.html +45 -20
- package/docs/types/TagContentType.html +251 -0
- package/docs/types/TagDimensionType.html +251 -0
- package/docs/types/TagElement.html +258 -0
- package/docs/types/TagEvents.html +286 -0
- package/docs/types/TagHooks.html +251 -0
- package/docs/types/TagIconSize.html +254 -0
- package/docs/types/TagId.html +40 -14
- package/docs/types/TagPointType.html +254 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/TopviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/WorkCode.html +251 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +40 -14
- package/docs/variables/PLUGIN.html +40 -14
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +40 -14
- package/docs/variables/ROOM_TYPE_MAP.html +40 -14
- package/docs/variables/VERSION.html +40 -14
- package/docs/variables/itemLabelPluginServerParams.html +40 -14
- package/docs/variables/modelItemLabelPluginServerParams.html +40 -14
- package/docs/variables/modelRoomLabelPluginServerParams.html +40 -14
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
- package/libs/CSS3DRenderPlugin/utils/index.js +12 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -3
- package/libs/CSS3DRenderPlugin/utils/random.js +6 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +6 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
- package/libs/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/utils/coordinatesAngle.js +3 -2
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +3 -0
- package/libs/GuideLinePlugin/utils/getPoint.js +18 -0
- package/libs/Object3DHelperPlugin/Controller.js +38 -36
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +25 -15
- package/libs/PanoMeasurePlugin/Controller/EditController.js +21 -9
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +23 -10
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +25 -14
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +44 -29
- package/libs/PanoMeasurePlugin/Controller/index.js +58 -21
- package/libs/PanoMeasurePlugin/Model/index.js +47 -40
- package/libs/PanoMeasurePlugin/Model/line.js +15 -11
- package/libs/PanoMeasurePlugin/Model/point.js +5 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +24 -16
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +4 -3
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +8 -5
- package/libs/PanoMeasurePlugin/index.js +2 -2
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -0
- package/libs/PanoMeasurePlugin/typings/index.js +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +6 -0
- package/libs/PanoMeasurePlugin/utils/constants.js +15 -16
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +7 -6
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +1 -0
- package/libs/PanoMeasurePlugin/utils/math.js +2 -1
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +137 -132
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +175 -0
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +95 -59
- package/libs/PanoTagPlugin/Components/Common/Media.js +275 -249
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +143 -79
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +10 -9
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +80 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +145 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +195 -0
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +213 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +215 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +120 -0
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +126 -131
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +58 -96
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -3
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +75 -45
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +102 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +134 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +115 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +235 -148
- package/libs/PanoTagPlugin/Components/TagContainer.js +144 -109
- package/libs/PanoTagPlugin/Components/TagItem.js +233 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
- package/libs/PanoTagPlugin/controller/TagComputer.js +186 -151
- package/libs/PanoTagPlugin/controller/index.d.ts +24 -13
- package/libs/PanoTagPlugin/controller/index.js +245 -165
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +32 -21
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/tag.config.js +31 -16
- package/libs/PanoTagPlugin/typings/controller.d.ts +21 -17
- package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
- package/libs/PanoTagPlugin/typings/index.js +7 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
- package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/color.js +17 -0
- package/libs/PanoTagPlugin/utils/constants.js +2 -1
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.js +51 -0
- package/libs/PanoTagPlugin/utils/index.js +35 -0
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
- package/libs/PanoTagPlugin/utils/search.js +27 -9
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -0
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +10 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +83 -74
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/index.js +112 -101
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +17 -20
- package/libs/vendor/svelte/internal/index.js +382 -338
- package/package.json +3 -3
- package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/docs/enums/LinkType.html +0 -67
- package/docs/interfaces/ContentTypeMap.html +0 -212
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
- package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
- package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/libs/PanoTagPlugin/typings/tag.js +0 -7
|
@@ -1 +1,13 @@
|
|
|
1
|
+
import { centerPoint as e } from "./centerPoint.js";
|
|
2
|
+
import { even as n } from "./even.js";
|
|
3
|
+
import { random as p } from "./random.js";
|
|
4
|
+
import { anyPositionToVector3 as c, arrayPositionToVector3 as f, positionToVector3 as x } from "./positionToVector3.js";
|
|
1
5
|
import "three";
|
|
6
|
+
export {
|
|
7
|
+
c as anyPositionToVector3,
|
|
8
|
+
f as arrayPositionToVector3,
|
|
9
|
+
e as centerPoint,
|
|
10
|
+
n as even,
|
|
11
|
+
x as positionToVector3,
|
|
12
|
+
p as random
|
|
13
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 } from 'three';
|
|
2
|
-
export declare type AnyPosition = Vector3 | [
|
|
2
|
+
export declare type AnyPosition = Vector3 | number[] | {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
5
5
|
z: number;
|
|
@@ -9,5 +9,5 @@ export declare const positionToVector3: ({ x, y, z }: {
|
|
|
9
9
|
y: number;
|
|
10
10
|
z: number;
|
|
11
11
|
}) => Vector3;
|
|
12
|
-
export declare const arrayPositionToVector3: (
|
|
12
|
+
export declare const arrayPositionToVector3: (arrayPosition: number[]) => Vector3;
|
|
13
13
|
export declare const anyPositionToVector3: (position: AnyPosition) => Vector3;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Vector3 as
|
|
2
|
-
const n = ({ x: r, y:
|
|
1
|
+
import { Vector3 as e } from "three";
|
|
2
|
+
const n = ({ x: r, y: o, z: t }) => new e(r, o, t), c = (r) => new e().fromArray(r), s = (r) => r instanceof e ? r : Array.isArray(r) ? c(r) : n(r);
|
|
3
3
|
export {
|
|
4
4
|
s as anyPositionToVector3,
|
|
5
|
-
c as arrayPositionToVector3
|
|
5
|
+
c as arrayPositionToVector3,
|
|
6
|
+
n as positionToVector3
|
|
6
7
|
};
|
|
@@ -3,7 +3,7 @@ var d = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var s = (r, t, e) => (d(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as u from "three";
|
|
5
5
|
import { Subscribe as p } from "../../../shared-utils/Subscribe.js";
|
|
6
|
-
import
|
|
6
|
+
import i from "../getAllCSS3DObject.js";
|
|
7
7
|
class h extends u.Group {
|
|
8
8
|
constructor(e) {
|
|
9
9
|
super();
|
|
@@ -49,5 +49,6 @@ class g extends h {
|
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
51
|
g as CSS3DBehindGroup,
|
|
52
|
-
m as CSS3DFrontGroup
|
|
52
|
+
m as CSS3DFrontGroup,
|
|
53
|
+
h as CSS3DGroup
|
|
53
54
|
};
|
|
@@ -6,7 +6,7 @@ import { Vector3 as l } from "three";
|
|
|
6
6
|
import { even as S } from "../even.js";
|
|
7
7
|
import { centerPoint as W } from "../centerPoint.js";
|
|
8
8
|
import { Subscribe as H } from "../../../shared-utils/Subscribe.js";
|
|
9
|
-
import
|
|
9
|
+
import k from "./OpacityMesh.js";
|
|
10
10
|
const w = 1, A = `CSS3DObjectPlus@${w}`, Q = 216e-5, R = 3e-3;
|
|
11
11
|
class U extends F {
|
|
12
12
|
constructor(t) {
|
|
@@ -111,5 +111,6 @@ class U extends F {
|
|
|
111
111
|
}
|
|
112
112
|
export {
|
|
113
113
|
U as CSS3DObjectPlus,
|
|
114
|
+
R as DefaultRatio,
|
|
114
115
|
Q as MinRatio
|
|
115
116
|
};
|
|
@@ -2,9 +2,10 @@ var d = Object.defineProperty;
|
|
|
2
2
|
var l = (r, t, e) => t in r ? d(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var s = (r, t, e) => (l(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { CSS3DRenderer as p } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
import h from "../getAllCSS3DObject.js";
|
|
6
|
+
import u from "../createResizeObserver.js";
|
|
7
|
+
import "../even.js";
|
|
8
|
+
class A extends p {
|
|
8
9
|
constructor() {
|
|
9
10
|
super();
|
|
10
11
|
s(this, "wrapper");
|
|
@@ -42,5 +43,6 @@ class v extends p {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
A as ICSS3DRenderer,
|
|
47
|
+
A as default
|
|
46
48
|
};
|
|
@@ -2,7 +2,7 @@ var i = Object.defineProperty;
|
|
|
2
2
|
var a = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
3
|
var d = (n, r, e) => (a(n, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
4
|
import * as c from "three";
|
|
5
|
-
import
|
|
5
|
+
import o from "../getAllCSS3DObject.js";
|
|
6
6
|
class m extends c.Scene {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
2
|
+
var l = (r, t, e) => t in r ? c(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var a = (r, t, e) => (l(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as s from "three";
|
|
5
5
|
class p extends s.Mesh {
|
|
6
|
-
constructor(e,
|
|
7
|
-
const n = new s.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: s.DoubleSide }), i = new s.PlaneGeometry(e,
|
|
6
|
+
constructor(e, o) {
|
|
7
|
+
const n = new s.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: s.DoubleSide }), i = new s.PlaneGeometry(e, o);
|
|
8
8
|
super(i, n);
|
|
9
|
-
|
|
9
|
+
a(this, "name", "opacity-mesh");
|
|
10
10
|
}
|
|
11
11
|
removeFromParent() {
|
|
12
12
|
const e = this.parent;
|
|
@@ -14,5 +14,5 @@ class p extends s.Mesh {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
|
-
p as
|
|
17
|
+
p as default
|
|
18
18
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var t = (o, n, e) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var t = (o, n, e) => new Promise((u, r) => {
|
|
2
|
+
var c = (d) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
l
|
|
4
|
+
a(e.next(d));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
r(l);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, f = (d) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
l
|
|
10
|
+
a(e.throw(d));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
r(l);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, a = (d) => d.done ? u(d.value) : Promise.resolve(d.value).then(c, f);
|
|
15
|
+
a((e = e.apply(o, n)).next());
|
|
16
16
|
});
|
|
17
|
-
function
|
|
17
|
+
function m(o) {
|
|
18
18
|
return t(this, null, function* () {
|
|
19
19
|
return new Promise((n) => {
|
|
20
20
|
var e;
|
|
@@ -27,5 +27,5 @@ function f(o) {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
m as default
|
|
31
31
|
};
|
|
@@ -35,7 +35,7 @@ import { safeCall as _ } from "./utils/safeCall.js";
|
|
|
35
35
|
import { equal as R } from "../shared-utils/equal.js";
|
|
36
36
|
import { vectorToCoordinates as N } from "./utils/vectorToCoordinates.js";
|
|
37
37
|
import * as j from "three";
|
|
38
|
-
import
|
|
38
|
+
import H from "./utils/linerValue.js";
|
|
39
39
|
import { sleep as J } from "./utils/sleep.js";
|
|
40
40
|
import "../base/BasePlugin.js";
|
|
41
41
|
import "../shared-utils/Subscribe.js";
|
|
@@ -28,7 +28,7 @@ var u = (n, s, e) => new Promise((i, t) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { Controller as $ } from "../base/BasePluginWithData.js";
|
|
30
30
|
import * as b from "three";
|
|
31
|
-
import
|
|
31
|
+
import y from "./utils/getLineGeometries.js";
|
|
32
32
|
import { getArrowMaterial as M } from "./utils/getArrowMaterial.js";
|
|
33
33
|
import { notNil as w } from "../shared-utils/isNil.js";
|
|
34
34
|
import { equal as N } from "../shared-utils/equal.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as e from "three";
|
|
2
|
+
const o = [];
|
|
3
|
+
function c(r = new e.Vector3(1, 1, 1), a = 0) {
|
|
4
|
+
const n = new e.SphereGeometry(0.02, 16, 16), t = [
|
|
5
|
+
new e.MeshBasicMaterial({ color: 16776960 }),
|
|
6
|
+
new e.MeshBasicMaterial({ color: 16711935 }),
|
|
7
|
+
new e.MeshBasicMaterial({ color: 16711680 }),
|
|
8
|
+
new e.MeshBasicMaterial({ color: 65535 })
|
|
9
|
+
][a], s = new e.Mesh(n, t);
|
|
10
|
+
return t.depthTest = !1, t.transparent = !0, t.opacity = 0.6, t.side = e.DoubleSide, s.position.copy(r), o.push(s), s;
|
|
11
|
+
}
|
|
12
|
+
function l() {
|
|
13
|
+
return o;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
c as default,
|
|
17
|
+
l as getAllMesh
|
|
18
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
3
|
var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var b = (i, s, e) => s in i ?
|
|
4
|
+
var b = (i, s, e) => s in i ? g(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
6
|
M.call(s, e) && b(i, e, s[e]);
|
|
7
7
|
if (w)
|
|
@@ -11,25 +11,25 @@ var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
var p = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
13
|
var u = (i, s, e) => new Promise((r, t) => {
|
|
14
|
-
var
|
|
14
|
+
var o = (l) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
t(
|
|
16
|
+
h(e.next(l));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
t(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, m = (l) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
t(
|
|
22
|
+
h(e.throw(l));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
t(c);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, h = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, m);
|
|
27
|
+
h((e = e.apply(i, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as R } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
31
|
-
import { MoveHelper as
|
|
32
|
-
import { RotateHelper as
|
|
31
|
+
import { MoveHelper as P } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import { RotateHelper as j } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
33
|
import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
35
|
import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
@@ -38,8 +38,8 @@ import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
|
|
|
38
38
|
import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
39
|
import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
40
|
import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
41
|
-
import
|
|
42
|
-
import
|
|
41
|
+
import $ from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import W from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
43
|
import "../shared-utils/Subscribe.js";
|
|
44
44
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
45
45
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
@@ -66,17 +66,17 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
66
66
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
67
67
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
68
68
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
69
|
-
const
|
|
69
|
+
const O = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${O}`, _ = () => {
|
|
70
70
|
console.error(`${C} is disposed`);
|
|
71
71
|
}, G = () => {
|
|
72
72
|
console.warn(`${C} is disabled`);
|
|
73
73
|
}, N = () => {
|
|
74
74
|
console.error(`${C} is disabled`);
|
|
75
75
|
};
|
|
76
|
-
class
|
|
76
|
+
class Pe extends R {
|
|
77
77
|
constructor(e) {
|
|
78
78
|
super(e);
|
|
79
|
-
p(this, "version",
|
|
79
|
+
p(this, "version", O);
|
|
80
80
|
p(this, "name", H);
|
|
81
81
|
p(this, "state", {
|
|
82
82
|
visible: !0,
|
|
@@ -128,33 +128,35 @@ class je extends R {
|
|
|
128
128
|
}
|
|
129
129
|
const t = new I();
|
|
130
130
|
this.objectHelperMap.set(e, t);
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
const
|
|
131
|
+
const o = (S = this.five.getElement()) == null ? void 0 : S.parentElement, m = this.five.camera, { moveHelper: h = !0, rotateHelper: l = !0, scaleHelper: c = !0 } = r;
|
|
132
|
+
if (h) {
|
|
133
|
+
const n = new P(e), a = new v(this.five, F, e, n);
|
|
134
134
|
t.addControllers({ moveController: a.helperController });
|
|
135
135
|
}
|
|
136
|
-
if (
|
|
137
|
-
let
|
|
138
|
-
|
|
139
|
-
const a = new
|
|
140
|
-
t.addControllers({ rotateController:
|
|
136
|
+
if (l) {
|
|
137
|
+
let n;
|
|
138
|
+
o && m && (n = { container: o });
|
|
139
|
+
const a = new j(e, n), d = new v(this.five, k, e, a);
|
|
140
|
+
t.addControllers({ rotateController: d.helperController });
|
|
141
141
|
}
|
|
142
|
-
if (
|
|
143
|
-
const
|
|
142
|
+
if (c && o) {
|
|
143
|
+
const n = new y(e, o, m, this.five.scene), a = new v(this.five, B, e, n);
|
|
144
144
|
t.addControllers({ scaleController: a.helperController });
|
|
145
145
|
}
|
|
146
146
|
e.isCSS3DObjectPlus && $(this.five).then(() => {
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
var n, a;
|
|
148
|
+
if (e.isCSS3DObjectPlus) {
|
|
149
|
+
const d = e, D = (n = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? n : W(this.five);
|
|
150
|
+
D && e && (this.css3DObjectParentMap.set(d, d.parent), d.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(D), (a = this.css3DRender.getBehindCSS3DObjectGroup()) == null || a.add(d), this.css3DRender.render(this.five.camera));
|
|
151
|
+
}
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
154
|
removeObject3DHelper(e) {
|
|
153
155
|
const r = this.objectHelperMap.get(e);
|
|
154
156
|
if (!!r) {
|
|
155
157
|
if (e.isCSS3DObjectPlus) {
|
|
156
|
-
const t = e,
|
|
157
|
-
|
|
158
|
+
const t = e, o = this.css3DObjectParentMap.get(t);
|
|
159
|
+
o == null || o.add(t), this.css3DRender.render(this.five.camera);
|
|
158
160
|
}
|
|
159
161
|
this.objectHelperMap.delete(e), r.dispose();
|
|
160
162
|
}
|
|
@@ -180,7 +182,7 @@ class je extends R {
|
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
export {
|
|
183
|
-
|
|
185
|
+
Pe as Object3DHelperController,
|
|
184
186
|
C as PLUGIN,
|
|
185
|
-
|
|
187
|
+
O as VERSION
|
|
186
188
|
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (i, e, o) => e in i ?
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var a = (i, e, o) => e in i ? u(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
|
|
3
3
|
var t = (i, e, o) => (a(i, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { preventDefault as
|
|
7
|
-
|
|
4
|
+
import l from "../Model/line.js";
|
|
5
|
+
import m from "../Model/point.js";
|
|
6
|
+
import { preventDefault as n } from "../utils/ironbox.js";
|
|
7
|
+
import "../../shared-utils/uuid.js";
|
|
8
|
+
import "../Model/polyline.js";
|
|
9
|
+
import "../utils/line.js";
|
|
10
|
+
import "@realsee/five/line";
|
|
11
|
+
import "../utils/constants.js";
|
|
12
|
+
import "three";
|
|
13
|
+
import "@realsee/five";
|
|
14
|
+
import "../utils/distanceDom.js";
|
|
15
|
+
import "../utils/isNDCPointInScreen.js";
|
|
16
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
17
|
+
class H {
|
|
8
18
|
constructor(e) {
|
|
9
19
|
t(this, "model");
|
|
10
20
|
t(this, "five");
|
|
@@ -22,10 +32,10 @@ class G {
|
|
|
22
32
|
t(this, "updateDistanceUI", () => {
|
|
23
33
|
this.dashed.distanceItem.update(this.five), this.model.lines.forEach((e) => e.distanceItem.update(this.five));
|
|
24
34
|
});
|
|
25
|
-
var s,
|
|
26
|
-
this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (
|
|
35
|
+
var s, r;
|
|
36
|
+
this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (r = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? r : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new l(new m([0, 0, 0]), new m([0, 0, 0]), this.model), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
27
37
|
const o = this.five.getElement();
|
|
28
|
-
o && (o.addEventListener("touchstart",
|
|
38
|
+
o && (o.addEventListener("touchstart", n), o.addEventListener("contextmenu", n));
|
|
29
39
|
}
|
|
30
40
|
removeLine(e) {
|
|
31
41
|
this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
|
|
@@ -33,21 +43,21 @@ class G {
|
|
|
33
43
|
updateMouseGroup(e, o) {
|
|
34
44
|
if (!e)
|
|
35
45
|
return this.mouseGroup;
|
|
36
|
-
const s = this.fiveHelper.getAdsorbentPoint(e),
|
|
37
|
-
if (this.mouseGroup.position.copy(
|
|
46
|
+
const s = this.fiveHelper.getAdsorbentPoint(e), r = s || e.point;
|
|
47
|
+
if (this.mouseGroup.position.copy(r), o)
|
|
38
48
|
this.mouseGroup.quaternion.copy(o.quaternion);
|
|
39
49
|
else if (e.face) {
|
|
40
|
-
const h = e.face.normal.clone().multiplyScalar(0.05),
|
|
41
|
-
this.mouseGroup.lookAt(
|
|
50
|
+
const h = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(h).clone().add(h);
|
|
51
|
+
this.mouseGroup.lookAt(d);
|
|
42
52
|
}
|
|
43
53
|
return this.mouseGroup;
|
|
44
54
|
}
|
|
45
55
|
dispose() {
|
|
46
56
|
this.disposed = !0, this.magnifier.remove(), this.model.lines.forEach((o) => this.removeLine(o));
|
|
47
57
|
const e = this.five.getElement();
|
|
48
|
-
e && (e.removeEventListener("touchstart",
|
|
58
|
+
e && (e.removeEventListener("touchstart", n), e.removeEventListener("contextmenu", n));
|
|
49
59
|
}
|
|
50
60
|
}
|
|
51
61
|
export {
|
|
52
|
-
|
|
62
|
+
H as default
|
|
53
63
|
};
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (h, n, e) => n in h ?
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var m = (h, n, e) => n in h ? d(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
|
|
3
3
|
var s = (h, n, e) => (m(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import u from "hammerjs";
|
|
5
5
|
import { Model as f } from "../Model/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import l from "../Model/line.js";
|
|
7
|
+
import p from "../Model/point.js";
|
|
8
8
|
import { throttle as v } from "../../shared-utils/throttle.js";
|
|
9
|
-
import
|
|
9
|
+
import c from "./BaseController.js";
|
|
10
10
|
import { getIntersectionFromEvent as r } from "../utils/getIntersectionFromEvent.js";
|
|
11
|
-
|
|
11
|
+
import "@realsee/five";
|
|
12
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
13
|
+
import "../Model/polyline.js";
|
|
14
|
+
import "../../shared-utils/uuid.js";
|
|
15
|
+
import "../utils/line.js";
|
|
16
|
+
import "@realsee/five/line";
|
|
17
|
+
import "../utils/constants.js";
|
|
18
|
+
import "three";
|
|
19
|
+
import "../utils/distanceDom.js";
|
|
20
|
+
import "../utils/isNDCPointInScreen.js";
|
|
21
|
+
import "../utils/ironbox.js";
|
|
22
|
+
import "../utils/getPointFromHammerEvent.js";
|
|
23
|
+
class q extends c {
|
|
12
24
|
constructor(e) {
|
|
13
25
|
var i;
|
|
14
26
|
super(e);
|
|
@@ -48,7 +60,7 @@ class A extends c {
|
|
|
48
60
|
const [t] = r(this.five, e);
|
|
49
61
|
if (!t || !t.face)
|
|
50
62
|
return;
|
|
51
|
-
const i = new
|
|
63
|
+
const i = new p(t.point);
|
|
52
64
|
this.pressPoint = i, this.onIntersectionUpdate(t);
|
|
53
65
|
});
|
|
54
66
|
s(this, "onPan", (e) => {
|
|
@@ -64,7 +76,7 @@ class A extends c {
|
|
|
64
76
|
this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh)), this.hasAppendDashed = !0;
|
|
65
77
|
const [t] = r(this.five, e);
|
|
66
78
|
this.updateMouseGroup(t);
|
|
67
|
-
const i = new
|
|
79
|
+
const i = new p(this.mouseGroup.position), o = this.lastPoint;
|
|
68
80
|
if (i && (this.lastPoint = i), i && o) {
|
|
69
81
|
const a = new l(o, i, this.model);
|
|
70
82
|
a.distanceItem.appendTo(this.container), this.model.addLine(a), this.group.add(a.mesh), a.distanceItem.update(this.five);
|
|
@@ -98,5 +110,5 @@ class A extends c {
|
|
|
98
110
|
}
|
|
99
111
|
}
|
|
100
112
|
export {
|
|
101
|
-
|
|
113
|
+
q as default
|
|
102
114
|
};
|
|
@@ -2,14 +2,27 @@ var b = Object.defineProperty;
|
|
|
2
2
|
var k = (h, n, e) => n in h ? b(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
|
|
3
3
|
var t = (h, n, e) => (k(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import { Model as S } from "../Model/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import T from "../Model/line.js";
|
|
6
|
+
import D from "./BaseController.js";
|
|
7
|
+
import M from "../Modules/DeleteDom/index.js";
|
|
8
8
|
import { findAssociatedLines as G } from "../utils/findAssociatedLines.js";
|
|
9
9
|
import { Vector2 as m } from "three";
|
|
10
|
-
import
|
|
10
|
+
import v from "../utils/isNDCPointInScreen.js";
|
|
11
11
|
import { closestPointOnLine as N } from "../utils/math.js";
|
|
12
|
-
|
|
12
|
+
import "../Model/point.js";
|
|
13
|
+
import "../../shared-utils/uuid.js";
|
|
14
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
15
|
+
import "@realsee/five";
|
|
16
|
+
import "../Model/polyline.js";
|
|
17
|
+
import "../utils/line.js";
|
|
18
|
+
import "@realsee/five/line";
|
|
19
|
+
import "../utils/constants.js";
|
|
20
|
+
import "../utils/distanceDom.js";
|
|
21
|
+
import "../utils/ironbox.js";
|
|
22
|
+
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
23
|
+
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
24
|
+
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
25
|
+
class $ extends D {
|
|
13
26
|
constructor(e) {
|
|
14
27
|
super(e);
|
|
15
28
|
t(this, "state", "watching");
|
|
@@ -32,18 +45,18 @@ class V extends D {
|
|
|
32
45
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
33
46
|
if (!i)
|
|
34
47
|
return;
|
|
35
|
-
const o = this.five.camera,
|
|
48
|
+
const o = this.five.camera, p = i.point.clone().project(o), r = this.container.clientWidth, d = this.container.clientHeight, f = new m(p.x * r, p.y * d), g = this.model.lines.map((s) => {
|
|
36
49
|
const [a, L] = s.points, l = a.position.clone().project(o), c = L.position.clone().project(o);
|
|
37
50
|
if (!v(l) && !v(c))
|
|
38
51
|
return null;
|
|
39
|
-
const C = new m(l.x *
|
|
52
|
+
const C = new m(l.x * r, l.y * d), w = new m(c.x * r, c.y * d);
|
|
40
53
|
return { id: s.id, points: [C, w] };
|
|
41
54
|
}).filter((s) => !!s);
|
|
42
55
|
if (g.length === 0)
|
|
43
56
|
return;
|
|
44
57
|
const u = g.map((s) => {
|
|
45
|
-
const a = N(
|
|
46
|
-
return { id: s.id, distance: a.distanceTo(
|
|
58
|
+
const a = N(f, s.points);
|
|
59
|
+
return { id: s.id, distance: a.distanceTo(f) };
|
|
47
60
|
}).sort((s, a) => s.distance - a.distance)[0];
|
|
48
61
|
if (u.distance > 20)
|
|
49
62
|
return;
|
|
@@ -121,5 +134,5 @@ class V extends D {
|
|
|
121
134
|
}
|
|
122
135
|
}
|
|
123
136
|
export {
|
|
124
|
-
|
|
137
|
+
$ as default
|
|
125
138
|
};
|