@realsee/dnalogel 2.4.0 → 2.5.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 +25 -14
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +23 -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/actionAfterFiveModelLoad.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -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 +52 -54
- package/dist/index.js +7771 -6537
- package/dist/index.umd.js +44 -46
- package/dist/shared-utils/audio.d.ts +31 -0
- 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 +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +223 -176
- 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/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/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 +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- 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/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 +256 -0
- package/docs/types/AudioTagTypeConfigKey.html +256 -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 +256 -0
- package/docs/types/ContentTypeMap.html +256 -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 +256 -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 +256 -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/PanoIndex.html +256 -0
- 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 +261 -0
- package/docs/types/Point2DElement.html +261 -0
- package/docs/types/Point2DTag.html +263 -0
- package/docs/types/Point3DElement.html +261 -0
- package/docs/types/Point3DTag.html +263 -0
- package/docs/types/PointTag.html +43 -23
- package/docs/types/PointTagElement.html +261 -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 +256 -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 +256 -0
- package/docs/types/TagDimensionType.html +256 -0
- package/docs/types/TagElement.html +263 -0
- package/docs/types/TagEvents.html +291 -0
- package/docs/types/TagHooks.html +256 -0
- package/docs/types/TagIconSize.html +259 -0
- package/docs/types/TagId.html +40 -14
- package/docs/types/TagPointType.html +259 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/TopviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +43 -17
- 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 +2 -2
- 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 +18 -9
- package/libs/PanoMeasurePlugin/Controller/EditController.js +16 -5
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +38 -19
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +13 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +31 -20
- package/libs/PanoMeasurePlugin/Controller/index.js +54 -18
- package/libs/PanoMeasurePlugin/Model/index.js +41 -34
- package/libs/PanoMeasurePlugin/Model/line.js +9 -6
- package/libs/PanoMeasurePlugin/Model/point.js +3 -3
- package/libs/PanoMeasurePlugin/Model/polyline.js +19 -12
- 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 +24 -24
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- 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 +16 -16
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +4 -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 +103 -140
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +198 -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 +11 -10
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +81 -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 +172 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +223 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +123 -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 +75 -97
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +166 -143
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +75 -45
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +130 -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 +264 -157
- package/libs/PanoTagPlugin/Components/TagContainer.js +164 -109
- package/libs/PanoTagPlugin/Components/TagItem.js +253 -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 +25 -14
- package/libs/PanoTagPlugin/controller/index.js +265 -170
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +51 -35
- 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 +23 -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/actionAfterFiveModelLoad.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -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 +36 -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 +126 -114
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +29 -39
- package/libs/shared-utils/audio.d.ts +31 -0
- package/libs/shared-utils/audio.js +81 -0
- 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,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,19 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (i, e, o) => (
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
var l = (i, e, o) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
|
|
3
|
+
var t = (i, e, o) => (l(i, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
+
import u from "../Model/line.js";
|
|
5
|
+
import m from "../Model/point.js";
|
|
6
6
|
import { preventDefault as r } from "../utils/ironbox.js";
|
|
7
|
-
|
|
7
|
+
import "three";
|
|
8
|
+
import "../../shared-utils/uuid.js";
|
|
9
|
+
import "@realsee/five";
|
|
10
|
+
import "../utils/line.js";
|
|
11
|
+
import "@realsee/five/line";
|
|
12
|
+
import "../utils/constants.js";
|
|
13
|
+
import "../utils/distanceDom.js";
|
|
14
|
+
import "../utils/isNDCPointInScreen.js";
|
|
15
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
16
|
+
class w {
|
|
8
17
|
constructor(e) {
|
|
9
18
|
t(this, "model");
|
|
10
19
|
t(this, "five");
|
|
@@ -23,7 +32,7 @@ class L {
|
|
|
23
32
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
|
|
24
33
|
});
|
|
25
34
|
var s, n;
|
|
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 = (n = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? n : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new
|
|
35
|
+
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 = (n = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? n : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new u(new m([0, 0, 0]), new m([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
27
36
|
const o = this.five.getElement();
|
|
28
37
|
o && (o.addEventListener("touchstart", r), o.addEventListener("contextmenu", r));
|
|
29
38
|
}
|
|
@@ -37,8 +46,8 @@ class L {
|
|
|
37
46
|
if (this.mouseGroup.position.copy(n), o)
|
|
38
47
|
this.mouseGroup.quaternion.copy(o.quaternion);
|
|
39
48
|
else if (e.face) {
|
|
40
|
-
const h = e.face.normal.clone().multiplyScalar(0.05),
|
|
41
|
-
this.mouseGroup.lookAt(
|
|
49
|
+
const h = e.face.normal.clone().multiplyScalar(0.05), d = e.point.clone().add(h).clone().add(h);
|
|
50
|
+
this.mouseGroup.lookAt(d);
|
|
42
51
|
}
|
|
43
52
|
return this.mouseGroup;
|
|
44
53
|
}
|
|
@@ -49,5 +58,5 @@ class L {
|
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
export {
|
|
52
|
-
|
|
61
|
+
w as default
|
|
53
62
|
};
|
|
@@ -3,13 +3,24 @@ var l = (h, n, e) => n in h ? d(h, n, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (h, n, e) => (l(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import m from "hammerjs";
|
|
5
5
|
import { Model as u } from "../Model/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import f 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 { Polyline as P } from "../Model/polyline.js";
|
|
12
|
-
|
|
12
|
+
import "three";
|
|
13
|
+
import "@realsee/five/line";
|
|
14
|
+
import "../utils/constants.js";
|
|
15
|
+
import "@realsee/five";
|
|
16
|
+
import "../../shared-utils/uuid.js";
|
|
17
|
+
import "../utils/line.js";
|
|
18
|
+
import "../utils/distanceDom.js";
|
|
19
|
+
import "../utils/isNDCPointInScreen.js";
|
|
20
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
21
|
+
import "../utils/ironbox.js";
|
|
22
|
+
import "../utils/getPointFromHammerEvent.js";
|
|
23
|
+
class V extends c {
|
|
13
24
|
constructor(e) {
|
|
14
25
|
var s;
|
|
15
26
|
super(e);
|
|
@@ -97,5 +108,5 @@ class w extends c {
|
|
|
97
108
|
}
|
|
98
109
|
}
|
|
99
110
|
export {
|
|
100
|
-
|
|
111
|
+
V as default
|
|
101
112
|
};
|
|
@@ -2,16 +2,35 @@ var b = Object.defineProperty;
|
|
|
2
2
|
var k = (h, s, e) => s in h ? b(h, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[s] = e;
|
|
3
3
|
var t = (h, s, e) => (k(h, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
4
|
import { Model as S } from "../Model/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import y from "../Model/line.js";
|
|
6
|
+
import D from "./BaseController.js";
|
|
7
|
+
import T from "../Modules/DeleteDom/index.js";
|
|
8
8
|
import { findAssociatedLines as M } from "../utils/findAssociatedLines.js";
|
|
9
9
|
import { Vector2 as p } from "three";
|
|
10
|
-
import
|
|
10
|
+
import C from "../utils/isNDCPointInScreen.js";
|
|
11
11
|
import { closestPointOnLine as G } from "../utils/math.js";
|
|
12
12
|
import { Polyline as W } from "../Model/polyline.js";
|
|
13
|
-
import
|
|
14
|
-
|
|
13
|
+
import N from "../Modules/rangePiece/index.js";
|
|
14
|
+
import "@realsee/five/line";
|
|
15
|
+
import "../utils/constants.js";
|
|
16
|
+
import "@realsee/five";
|
|
17
|
+
import "../../shared-utils/uuid.js";
|
|
18
|
+
import "../utils/line.js";
|
|
19
|
+
import "../utils/distanceDom.js";
|
|
20
|
+
import "../Model/point.js";
|
|
21
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
22
|
+
import "../utils/ironbox.js";
|
|
23
|
+
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
24
|
+
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
25
|
+
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
26
|
+
import "@tweenjs/tween.js";
|
|
27
|
+
import "../Modules/rangePiece/html.js";
|
|
28
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
29
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
30
|
+
import "../../shared-utils/noop.js";
|
|
31
|
+
import "../utils/calculateThreeMouse.js";
|
|
32
|
+
import "../utils/mouseGroup.js";
|
|
33
|
+
class le extends D {
|
|
15
34
|
constructor(e) {
|
|
16
35
|
super(e);
|
|
17
36
|
t(this, "state", "watching");
|
|
@@ -32,22 +51,22 @@ class O extends D {
|
|
|
32
51
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
33
52
|
if (!i)
|
|
34
53
|
return;
|
|
35
|
-
const
|
|
36
|
-
const [a, L] =
|
|
54
|
+
const o = this.five.camera, m = i.point.clone().project(o), r = this.container.clientWidth, l = this.container.clientHeight, f = new p(m.x * r, m.y * l), g = this.polyline.lines.map((n) => {
|
|
55
|
+
const [a, L] = n.points, d = a.position.clone().project(o), c = L.position.clone().project(o);
|
|
37
56
|
if (!C(d) && !C(c))
|
|
38
57
|
return null;
|
|
39
58
|
const v = new p(d.x * r, d.y * l), w = new p(c.x * r, c.y * l);
|
|
40
|
-
return { id:
|
|
41
|
-
}).filter((
|
|
59
|
+
return { id: n.id, points: [v, w] };
|
|
60
|
+
}).filter((n) => !!n);
|
|
42
61
|
if (g.length === 0)
|
|
43
62
|
return;
|
|
44
|
-
const u = g.map((
|
|
45
|
-
const a = G(
|
|
46
|
-
return { id:
|
|
47
|
-
}).sort((
|
|
63
|
+
const u = g.map((n) => {
|
|
64
|
+
const a = G(f, n.points);
|
|
65
|
+
return { id: n.id, distance: a.distanceTo(f) };
|
|
66
|
+
}).sort((n, a) => n.distance - a.distance)[0];
|
|
48
67
|
if (u.distance > 20)
|
|
49
68
|
return;
|
|
50
|
-
const P = this.polyline.lines.find(({ id:
|
|
69
|
+
const P = this.polyline.lines.find(({ id: n }) => n === u.id);
|
|
51
70
|
if (!!P)
|
|
52
71
|
return this.chooseLine(P), !1;
|
|
53
72
|
});
|
|
@@ -67,8 +86,8 @@ class O extends D {
|
|
|
67
86
|
t(this, "onGetEndPoint", (e) => {
|
|
68
87
|
const i = this.mobileNowPoint;
|
|
69
88
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && i) {
|
|
70
|
-
const
|
|
71
|
-
|
|
89
|
+
const o = new y(this.mobileStartPoint, i, this.model);
|
|
90
|
+
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.polyline.addLine(o);
|
|
72
91
|
}
|
|
73
92
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
74
93
|
});
|
|
@@ -86,7 +105,7 @@ class O extends D {
|
|
|
86
105
|
const i = M(e);
|
|
87
106
|
this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
88
107
|
"selectedChange",
|
|
89
|
-
i.map((
|
|
108
|
+
i.map((o) => o)
|
|
90
109
|
);
|
|
91
110
|
});
|
|
92
111
|
t(this, "deleteDomClickCallback", () => {
|
|
@@ -123,5 +142,5 @@ class O extends D {
|
|
|
123
142
|
}
|
|
124
143
|
}
|
|
125
144
|
export {
|
|
126
|
-
|
|
145
|
+
le as default
|
|
127
146
|
};
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
2
|
+
var n = (r, o, i) => o in r ? d(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i;
|
|
3
|
+
var s = (r, o, i) => (n(r, typeof o != "symbol" ? o + "" : o, i), i);
|
|
4
4
|
import a from "hammerjs";
|
|
5
5
|
import "three";
|
|
6
6
|
import "@realsee/five/line";
|
|
7
7
|
import "../utils/constants.js";
|
|
8
8
|
import "@realsee/five";
|
|
9
|
-
import
|
|
10
|
-
|
|
9
|
+
import h from "./BaseController.js";
|
|
10
|
+
import "../Model/line.js";
|
|
11
|
+
import "../../shared-utils/uuid.js";
|
|
12
|
+
import "../utils/line.js";
|
|
13
|
+
import "../utils/distanceDom.js";
|
|
14
|
+
import "../utils/isNDCPointInScreen.js";
|
|
15
|
+
import "../Model/point.js";
|
|
16
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
17
|
+
import "../utils/ironbox.js";
|
|
18
|
+
class U extends h {
|
|
11
19
|
constructor(i) {
|
|
12
20
|
super(i);
|
|
13
21
|
s(this, "type", "view");
|
|
@@ -56,5 +64,5 @@ class A extends h {
|
|
|
56
64
|
}
|
|
57
65
|
}
|
|
58
66
|
export {
|
|
59
|
-
|
|
67
|
+
U as default
|
|
60
68
|
};
|
|
@@ -2,9 +2,9 @@ var k = Object.defineProperty;
|
|
|
2
2
|
var w = (r, h, e) => h in r ? k(r, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[h] = e;
|
|
3
3
|
var s = (r, h, e) => (w(r, typeof h != "symbol" ? h + "" : h, e), e);
|
|
4
4
|
import E from "hammerjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import G from "../Modules/DeleteDom/index.js";
|
|
6
|
+
import P from "../utils/isNDCPointInScreen.js";
|
|
7
|
+
import R from "./BaseController.js";
|
|
8
8
|
import { Raycaster as I, Vector2 as f } from "three";
|
|
9
9
|
import { closestPointOnLine as A } from "../utils/math.js";
|
|
10
10
|
import { findClosestPoint as T } from "../utils/findClosestPoint.js";
|
|
@@ -13,7 +13,18 @@ import { getPointFromHammerEvent as S } from "../utils/getPointFromHammerEvent.j
|
|
|
13
13
|
import "@realsee/five/line";
|
|
14
14
|
import "../utils/constants.js";
|
|
15
15
|
import "@realsee/five";
|
|
16
|
-
|
|
16
|
+
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
17
|
+
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
18
|
+
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
19
|
+
import "../Model/line.js";
|
|
20
|
+
import "../../shared-utils/uuid.js";
|
|
21
|
+
import "../utils/line.js";
|
|
22
|
+
import "../utils/distanceDom.js";
|
|
23
|
+
import "../Model/point.js";
|
|
24
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
25
|
+
import "../utils/ironbox.js";
|
|
26
|
+
import "../utils/ndc2Screen.js";
|
|
27
|
+
class se extends R {
|
|
17
28
|
constructor(e) {
|
|
18
29
|
super(e);
|
|
19
30
|
s(this, "type", "watch");
|
|
@@ -31,14 +42,14 @@ class J extends R {
|
|
|
31
42
|
this.editPointState = void 0;
|
|
32
43
|
return;
|
|
33
44
|
}
|
|
34
|
-
const
|
|
45
|
+
const o = {
|
|
35
46
|
point: t,
|
|
36
47
|
associatedLines: v(t.lines[0])
|
|
37
48
|
};
|
|
38
49
|
this.hook.emit("wantsDragLine", {
|
|
39
50
|
point: t.id,
|
|
40
|
-
lines:
|
|
41
|
-
}) || (this.editPointState =
|
|
51
|
+
lines: o.associatedLines.map(({ id: d }) => d)
|
|
52
|
+
}) || (this.editPointState = o, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
|
|
42
53
|
});
|
|
43
54
|
s(this, "onPanEnd", () => {
|
|
44
55
|
!this.editPointState || (this.editPointState.point.lines.forEach((e) => e.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.disable(), this.group.remove(this.mouseGroup));
|
|
@@ -48,8 +59,8 @@ class J extends R {
|
|
|
48
59
|
return;
|
|
49
60
|
const i = S(e).ndcPoint, t = new I();
|
|
50
61
|
t.setFromCamera(i, this.five.camera);
|
|
51
|
-
const [
|
|
52
|
-
!
|
|
62
|
+
const [o] = this.five.model.intersectRaycaster(t);
|
|
63
|
+
!o || this.onIntersectionUpdate(o);
|
|
53
64
|
});
|
|
54
65
|
s(this, "onIntersectionUpdate", (e, i) => {
|
|
55
66
|
if (!!this.editPointState) {
|
|
@@ -58,7 +69,7 @@ class J extends R {
|
|
|
58
69
|
}), this.updateDistanceUI(), this.magnifier.renderWithPoint(e.point), this.mouseGroup.position.copy(e.point), i)
|
|
59
70
|
this.mouseGroup.quaternion.copy(i.quaternion);
|
|
60
71
|
else if (e.face) {
|
|
61
|
-
const
|
|
72
|
+
const o = e.face.normal.clone().multiplyScalar(0.05), a = e.point.clone().add(o).clone().add(o);
|
|
62
73
|
this.mouseGroup.lookAt(a);
|
|
63
74
|
}
|
|
64
75
|
this.five.needsRender = !0, this.hook.emit(
|
|
@@ -75,22 +86,22 @@ class J extends R {
|
|
|
75
86
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
76
87
|
if (!i)
|
|
77
88
|
return;
|
|
78
|
-
const t = this.five.camera,
|
|
79
|
-
const [l, y] =
|
|
89
|
+
const t = this.five.camera, o = i.point.clone().project(t), c = this.container.clientWidth, a = this.container.clientHeight, d = new f(o.x * c, o.y * a), g = this.model.getAllLines().map((n) => {
|
|
90
|
+
const [l, y] = n.points, m = l.position.clone().project(t), p = y.position.clone().project(t);
|
|
80
91
|
if (!P(m) && !P(p))
|
|
81
92
|
return null;
|
|
82
93
|
const C = new f(m.x * c, m.y * a), D = new f(p.x * c, p.y * a);
|
|
83
|
-
return { id:
|
|
84
|
-
}).filter((
|
|
94
|
+
return { id: n.id, points: [C, D] };
|
|
95
|
+
}).filter((n) => !!n);
|
|
85
96
|
if (g.length === 0)
|
|
86
97
|
return;
|
|
87
|
-
const u = g.map((
|
|
88
|
-
const l = A(d,
|
|
89
|
-
return { id:
|
|
90
|
-
}).sort((
|
|
98
|
+
const u = g.map((n) => {
|
|
99
|
+
const l = A(d, n.points);
|
|
100
|
+
return { id: n.id, distance: l.distanceTo(d) };
|
|
101
|
+
}).sort((n, l) => n.distance - l.distance)[0];
|
|
91
102
|
if (u.distance > 20)
|
|
92
103
|
return;
|
|
93
|
-
const L = this.model.getAllLines().find(({ id:
|
|
104
|
+
const L = this.model.getAllLines().find(({ id: n }) => n === u.id);
|
|
94
105
|
if (!!L)
|
|
95
106
|
return this.chooseLine(L), !1;
|
|
96
107
|
});
|
|
@@ -148,5 +159,5 @@ class J extends R {
|
|
|
148
159
|
}
|
|
149
160
|
}
|
|
150
161
|
export {
|
|
151
|
-
|
|
162
|
+
se as default
|
|
152
163
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var d = Object.getOwnPropertySymbols;
|
|
3
3
|
var M = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var m = (s, e, t) => e in s ? y(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, n = (s, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
M.call(e, t) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
P.call(e, t) &&
|
|
6
|
+
M.call(e, t) && m(s, t, e[t]);
|
|
7
|
+
if (d)
|
|
8
|
+
for (var t of d(e))
|
|
9
|
+
P.call(e, t) && m(s, t, e[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var i = (s, e, t) => (
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
12
|
+
var i = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import v from "../Modules/Magnifier.js";
|
|
14
|
+
import w from "../Modules/FiveHelper.js";
|
|
15
|
+
import h from "./EditController.js";
|
|
16
|
+
import f from "./ViewController.js";
|
|
17
|
+
import g from "./WatchController.js";
|
|
18
|
+
import l from "./MixedController.js";
|
|
19
19
|
import { omit as I } from "../../shared-utils/filter.js";
|
|
20
20
|
import { Group as b } from "three";
|
|
21
21
|
import { Model as U } from "../Model/index.js";
|
|
@@ -26,7 +26,43 @@ import { GuideController as B } from "../Modules/GuideController.js";
|
|
|
26
26
|
import { ShortcutKeyController as k } from "./ShortcutKeyController.js";
|
|
27
27
|
import "@realsee/five/line";
|
|
28
28
|
import "../utils/constants.js";
|
|
29
|
-
|
|
29
|
+
import "hammerjs";
|
|
30
|
+
import "../Model/line.js";
|
|
31
|
+
import "../../shared-utils/uuid.js";
|
|
32
|
+
import "../utils/line.js";
|
|
33
|
+
import "../utils/distanceDom.js";
|
|
34
|
+
import "../utils/isNDCPointInScreen.js";
|
|
35
|
+
import "../Model/point.js";
|
|
36
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
37
|
+
import "../../shared-utils/throttle.js";
|
|
38
|
+
import "./BaseController.js";
|
|
39
|
+
import "../utils/ironbox.js";
|
|
40
|
+
import "../utils/getIntersectionFromEvent.js";
|
|
41
|
+
import "../utils/getPointFromHammerEvent.js";
|
|
42
|
+
import "../Model/polyline.js";
|
|
43
|
+
import "../Modules/DeleteDom/index.js";
|
|
44
|
+
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
45
|
+
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
46
|
+
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
47
|
+
import "../utils/math.js";
|
|
48
|
+
import "../utils/findClosestPoint.js";
|
|
49
|
+
import "../utils/ndc2Screen.js";
|
|
50
|
+
import "../utils/findAssociatedLines.js";
|
|
51
|
+
import "../Modules/rangePiece/index.js";
|
|
52
|
+
import "@tweenjs/tween.js";
|
|
53
|
+
import "../Modules/rangePiece/html.js";
|
|
54
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
55
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
56
|
+
import "../../shared-utils/noop.js";
|
|
57
|
+
import "../utils/calculateThreeMouse.js";
|
|
58
|
+
import "../../shared-utils/tap.js";
|
|
59
|
+
import "../Modules/UIController/HTML.js";
|
|
60
|
+
import "../Modules/UIController/mobileHTML.js";
|
|
61
|
+
import "../Modules/UIController/style.js";
|
|
62
|
+
import "../Modules/UIController/MainBtnController.js";
|
|
63
|
+
import "../Modules/UIController/mobileMainBtnController.js";
|
|
64
|
+
import "../Modules/UIController/Revoke/index.js";
|
|
65
|
+
class ke {
|
|
30
66
|
constructor(e, t) {
|
|
31
67
|
i(this, "hasOpen", !1);
|
|
32
68
|
i(this, "hook", new E());
|
|
@@ -60,9 +96,9 @@ class N {
|
|
|
60
96
|
const r = this.createControllerParams();
|
|
61
97
|
this.controller = new t[e](r), this.hook.emit("modeChange", e);
|
|
62
98
|
});
|
|
63
|
-
var o,
|
|
64
|
-
this.five = e, this.params = t, this.config = I(t, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.fiveHelper = new w(e), this.isMobile = (
|
|
65
|
-
const r = (
|
|
99
|
+
var o, p, c, u;
|
|
100
|
+
this.five = e, this.params = t, this.config = I(t, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.fiveHelper = new w(e), this.isMobile = (p = (o = t == null ? void 0 : t.openParams) == null ? void 0 : o.isMobile) != null ? p : !1, this.magnifier = new v(e, (c = t.magnifierParams) != null ? c : { width: 190, height: 190, scale: 2 }), this.group = new b(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
101
|
+
const r = (u = this.params.openParams) != null ? u : {};
|
|
66
102
|
if (this.params.useUIController !== !1) {
|
|
67
103
|
const a = n({
|
|
68
104
|
container: this.container,
|
|
@@ -180,5 +216,5 @@ class N {
|
|
|
180
216
|
}
|
|
181
217
|
}
|
|
182
218
|
export {
|
|
183
|
-
|
|
219
|
+
ke as default
|
|
184
220
|
};
|