@realsee/dnalogel 2.6.4 → 2.6.7-dev.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/Controller.d.ts +1 -1
- package/dist/Object3DHelperPlugin/Controller.d.ts +25 -10
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
- package/dist/Object3DHelperPlugin/typings.d.ts +14 -0
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
- package/dist/PanoTagPlugin/controller/index.d.ts +32 -6
- package/dist/PanoTagPlugin/typings/controller.d.ts +17 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +5078 -4667
- package/dist/index.umd.js +32 -32
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
- package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
- package/dist/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
- package/dist/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
- package/{libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
- package/dist/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/index.d.ts +4 -27
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
- package/dist/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
- package/dist/shared-utils/three/GLTFLoader.d.ts +2 -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 +40 -33
- 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 +205 -77
- 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 +34 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- 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 +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +10 -5
- package/docs/functions/CameraMovementPlugin.html +10 -5
- package/docs/functions/CruisePlugin.html +10 -5
- package/docs/functions/GuideLinePlugin.html +10 -5
- package/docs/functions/ItemLabelPlugin.html +10 -5
- package/docs/functions/MapviewFloorplanPlugin.html +10 -5
- package/docs/functions/ModelChassisCompassPlugin.html +10 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +10 -5
- package/docs/functions/ModelFloorplanPlugin.html +10 -5
- package/docs/functions/ModelItemLabelPlugin.html +10 -5
- package/docs/functions/ModelRoomLabelPlugin.html +10 -5
- package/docs/functions/ModelTVVideoPlugin.html +10 -5
- package/docs/functions/ModelViewPlugin.html +10 -5
- package/docs/functions/Object3DHelperPlugin.html +10 -5
- package/docs/functions/PanoCompassPlugin.html +10 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +10 -5
- package/docs/functions/PanoDoorLabelPlugin.html +10 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +10 -5
- package/docs/functions/PanoMeasurePlugin.html +10 -5
- package/docs/functions/PanoRulerPlugin.html +10 -5
- package/docs/functions/PanoRulerProPlugin.html +10 -5
- package/docs/functions/PanoSpatialTagPlugin.html +10 -5
- package/docs/functions/PanoTagPlugin.html +15 -10
- package/docs/functions/TopviewFloorplanPlugin.html +10 -5
- 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 +10 -5
- package/docs/index.html +9 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- 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 +19 -19
- 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/HelperOffset.html +78 -0
- 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 +7 -7
- 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/ObjectHelperControllers.html +85 -0
- 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 +10 -5
- 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 +10 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +10 -5
- 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 +10 -5
- package/docs/interfaces/Rooms.html +10 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +25 -16
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +11 -11
- package/docs/interfaces/TemporaryState.html +6 -6
- 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 +14 -4
- package/docs/types/ArrayPosition.html +10 -5
- package/docs/types/AudioAppearance.html +10 -5
- package/docs/types/AudioTagTypeConfigKey.html +10 -5
- package/docs/types/CSS3DRenderExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginExportType.html +10 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +10 -5
- package/docs/types/ClassFunctionParameters.html +268 -0
- package/docs/types/Color.html +10 -5
- package/docs/types/ContentTypeConfigKey.html +10 -5
- package/docs/types/ContentTypeConfigKeySplit.html +10 -5
- package/docs/types/ContentTypeMap.html +10 -5
- package/docs/types/Create3DDomContainerReturnType.html +10 -5
- package/docs/types/Create3DElementReturnType.html +10 -5
- package/docs/types/CruisePluginExportType.html +10 -5
- package/docs/types/Direction-1.html +10 -5
- package/docs/types/Direction4.html +10 -5
- package/docs/types/FloorplanRuleLabels.html +10 -5
- package/docs/types/FloorplanServerRuleLabels.html +10 -5
- package/docs/types/GuideLinePluginExportType.html +10 -5
- package/docs/types/HelperEventMap.html +174 -21
- package/docs/types/LoadTagConfig.html +10 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/MediaData.html +10 -5
- package/docs/types/MediaStore.html +10 -5
- package/docs/types/ModelElement.html +266 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +10 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +10 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +10 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +10 -5
- package/docs/types/MoveArgs.html +10 -5
- package/docs/types/MoveOpts.html +10 -5
- package/docs/types/Object3DHelperEventMap.html +10 -5
- package/docs/types/ObjectFit.html +10 -5
- package/docs/types/PaintBrushEventMap.html +10 -5
- package/docs/types/PanoCompassPluginData.html +10 -5
- package/docs/types/PanoCompassPluginExportType.html +10 -5
- package/docs/types/PanoCompassPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +10 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +10 -5
- package/docs/types/PanoIndex.html +10 -5
- package/docs/types/PanoMeasurePluginEvent.html +10 -5
- package/docs/types/PanoMeasureReturnType.html +10 -5
- package/docs/types/PanoSpatialTagPluginId.html +10 -5
- package/docs/types/PanoTagPluginExportInterface.html +10 -5
- package/docs/types/PanoTagPluginParamsInterface.html +10 -5
- package/docs/types/PlaneTag.html +10 -5
- package/docs/types/PlaneTagElement.html +10 -5
- package/docs/types/Point2DElement.html +10 -5
- package/docs/types/Point2DTag.html +10 -5
- package/docs/types/Point3DElement.html +10 -5
- package/docs/types/Point3DTag.html +10 -5
- package/docs/types/PointTag.html +10 -5
- package/docs/types/PointTagElement.html +10 -5
- package/docs/types/Position.html +10 -5
- package/docs/types/RotateArgs.html +10 -5
- package/docs/types/RotateOpts.html +10 -5
- package/docs/types/RuleLabelsKey.html +10 -5
- package/docs/types/RuleLabelsValue.html +10 -5
- package/docs/types/StickType.html +11 -6
- package/docs/types/Tag.html +11 -6
- package/docs/types/Tag2D.html +10 -5
- package/docs/types/Tag3D.html +10 -5
- package/docs/types/TagContentType.html +11 -6
- package/docs/types/TagDimensionType.html +10 -5
- package/docs/types/TagElement.html +11 -6
- package/docs/types/TagEvents.html +10 -5
- package/docs/types/TagGLTFObject.html +261 -0
- package/docs/types/TagHooks.html +10 -5
- package/docs/types/TagIconSize.html +10 -5
- package/docs/types/TagId.html +10 -5
- package/docs/types/TagPointType.html +10 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +10 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +10 -5
- package/docs/types/WorkCode.html +10 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +10 -5
- package/docs/variables/PLUGIN.html +10 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +10 -5
- package/docs/variables/ROOM_TYPE_MAP.html +10 -5
- package/docs/variables/VERSION.html +10 -5
- package/docs/variables/itemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +10 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +10 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +43 -43
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +16 -15
- package/libs/Object3DHelperPlugin/Controller.d.ts +25 -10
- package/libs/Object3DHelperPlugin/Controller.js +117 -97
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +6 -8
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +29 -22
- package/libs/Object3DHelperPlugin/index.js +16 -11
- package/libs/Object3DHelperPlugin/typings.d.ts +14 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +68 -68
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +12 -11
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +33 -33
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +46 -46
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +12 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +26 -25
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +29 -28
- package/libs/PanoTagPlugin/Components/Tag/index.js +126 -119
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +67 -65
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.js +14 -12
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -6
- package/libs/PanoTagPlugin/controller/TagComputer.js +242 -176
- package/libs/PanoTagPlugin/controller/index.d.ts +32 -6
- package/libs/PanoTagPlugin/controller/index.js +176 -91
- package/libs/PanoTagPlugin/index.js +15 -12
- package/libs/PanoTagPlugin/tag.config.js +9 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +17 -2
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +6 -5
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +19 -3
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +5 -4
- package/libs/PanoTagPlugin/utils/color.js +5 -5
- package/libs/PanoTagPlugin/utils/index.js +37 -34
- package/libs/PanoTagPlugin/utils/planeNormal.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/index.js +11 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +6 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +20 -8
- package/libs/index.js +111 -104
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +41 -15
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -90
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +27 -20
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +55 -22
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +7 -0
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +14 -0
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +14 -10
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.d.ts +24 -0
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +80 -37
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +6 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +44 -41
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +14 -0
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +95 -67
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +12 -0
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +21 -0
- package/libs/shared-utils/Object3DHelper/Helper/{OutlineHelper.d.ts → BoundingBoxHelper.d.ts} +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +87 -0
- package/{dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts → libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts} +3 -8
- package/libs/shared-utils/Object3DHelper/Helper/{RectangleScaleHelper.js → CSS3DScaleHelper.js} +5 -7
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -9
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +14 -11
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +72 -66
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +5 -0
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +9 -0
- package/libs/shared-utils/Object3DHelper/Helper/index.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -2
- package/libs/shared-utils/Object3DHelper/index.d.ts +4 -27
- package/libs/shared-utils/Object3DHelper/index.js +48 -96
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +22 -12
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +22 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +2 -1
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +24 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +2 -2
- package/libs/shared-utils/three/GLTFLoader.d.ts +2 -0
- package/libs/shared-utils/three/GLTFLoader.js +16 -0
- package/libs/typings/math.type.js +1 -0
- package/package.json +4 -4
- package/dist/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
- package/libs/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
|
@@ -8,6 +8,7 @@ import type { Subscribe } from '@realsee/five';
|
|
|
8
8
|
import type { TagId, StickType } from './tag/Utils';
|
|
9
9
|
import type { TagContentType } from './tag/TagData';
|
|
10
10
|
import type { Tag } from './tag/Tag';
|
|
11
|
+
import { GLTFObject } from '@realsee/five/gltf-loader';
|
|
11
12
|
declare type NonNullable<T> = T extends null | undefined | void ? never : T;
|
|
12
13
|
export declare type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
|
|
13
14
|
export interface State extends BasePlugin.State {
|
|
@@ -73,11 +74,17 @@ export interface TagCache {
|
|
|
73
74
|
minimumDistanceResult?: boolean;
|
|
74
75
|
distance?: number;
|
|
75
76
|
angle?: number;
|
|
76
|
-
|
|
77
|
+
/** MedialModelTag 中,多媒体的隐藏 & 展示 */
|
|
78
|
+
modelMedialVisible?: boolean;
|
|
79
|
+
__debug_visible_reason__?: {
|
|
77
80
|
value: boolean;
|
|
78
81
|
reason?: string;
|
|
79
82
|
};
|
|
80
83
|
}
|
|
84
|
+
export declare type TagGLTFObject = GLTFObject & {
|
|
85
|
+
customID: number | string;
|
|
86
|
+
isTagModel: boolean;
|
|
87
|
+
};
|
|
81
88
|
export declare type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
|
|
82
89
|
pointTagStyle: {
|
|
83
90
|
leftPercent: number;
|
|
@@ -102,7 +109,14 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
|
|
|
102
109
|
};
|
|
103
110
|
hooks: Subscribe<TagEvents>;
|
|
104
111
|
mergedConfig: TagConfig<C, S>;
|
|
105
|
-
}
|
|
112
|
+
} & (S extends 'Model' ? {
|
|
113
|
+
model?: {
|
|
114
|
+
promise: Promise<TagGLTFObject>;
|
|
115
|
+
object?: TagGLTFObject;
|
|
116
|
+
};
|
|
117
|
+
} : unknown) & (C extends 'MediaModel' ? {
|
|
118
|
+
mediaVisible?: boolean;
|
|
119
|
+
} : unknown);
|
|
106
120
|
export declare type MediaStore = Writable<{
|
|
107
121
|
currentMediaElement: HTMLMediaElement | null;
|
|
108
122
|
}>;
|
|
@@ -110,4 +124,5 @@ export declare type PointTagElement<C extends TagContentType = TagContentType> =
|
|
|
110
124
|
export declare type PlaneTagElement<C extends TagContentType = TagContentType> = TagElement<C, 'Plane'>;
|
|
111
125
|
export declare type Point2DElement<C extends TagContentType = TagContentType> = TagElement<C, '2DPoint'>;
|
|
112
126
|
export declare type Point3DElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint'>;
|
|
127
|
+
export declare type ModelElement<C extends TagContentType = TagContentType> = TagElement<C, 'Model'>;
|
|
113
128
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import "@realsee/five/gltf-loader";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "@realsee/five/gltf-loader";
|
|
2
|
+
import { ContentType as t } from "./tag/TagData.js";
|
|
3
|
+
import { DimensionType as r, PointType as i } from "./tag/Utils.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
t as ContentType,
|
|
6
|
+
r as DimensionType,
|
|
7
|
+
i as PointType
|
|
7
8
|
};
|
|
@@ -30,7 +30,7 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
|
|
|
30
30
|
/** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
|
|
31
31
|
contentType: C;
|
|
32
32
|
/** 点 */
|
|
33
|
-
position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' ? Position : any;
|
|
33
|
+
position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' | 'Model' ? Position : any;
|
|
34
34
|
/** 法向量 */
|
|
35
35
|
normal?: Position;
|
|
36
36
|
/** 自定义标签内容 */
|
|
@@ -50,4 +50,7 @@ export declare type Tag<C extends TagContentType = TagContentType, S extends Sti
|
|
|
50
50
|
};
|
|
51
51
|
} & (S extends '3DPoint' ? {
|
|
52
52
|
normal: Position;
|
|
53
|
-
} : unknown)
|
|
53
|
+
} : unknown) & // 三维标签需要法向量
|
|
54
|
+
(S extends 'Model' ? {
|
|
55
|
+
matrix: number[];
|
|
56
|
+
} : unknown);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TagIconUrl } from './Utils';
|
|
1
|
+
import type { Position, TagIconUrl } from './Utils';
|
|
2
2
|
export declare type MediaData = {
|
|
3
3
|
type: 'Image';
|
|
4
4
|
url: string;
|
|
@@ -30,10 +30,14 @@ export declare enum ContentType {
|
|
|
30
30
|
Marketing = "Marketing",
|
|
31
31
|
/** 图片视频贴片 */
|
|
32
32
|
MediaPlane = "MediaPlane",
|
|
33
|
+
/** 带有多媒体的模型 */
|
|
34
|
+
MediaModel = "MediaModel",
|
|
33
35
|
/** 其他/自定义标签 */
|
|
34
|
-
Custom = "Custom"
|
|
36
|
+
Custom = "Custom",
|
|
37
|
+
/** Unknown */
|
|
38
|
+
Unknown = "Unknown"
|
|
35
39
|
}
|
|
36
|
-
export declare type TagContentType = keyof typeof ContentType
|
|
40
|
+
export declare type TagContentType = keyof typeof ContentType;
|
|
37
41
|
/**
|
|
38
42
|
* @description: 标签数据
|
|
39
43
|
*/
|
|
@@ -147,6 +151,18 @@ interface ContentTypeMapInterface {
|
|
|
147
151
|
playIcon?: 'withText' | 'withoutText' | string;
|
|
148
152
|
extraData?: Object;
|
|
149
153
|
};
|
|
154
|
+
MediaModel: {
|
|
155
|
+
modelUrl: string;
|
|
156
|
+
matrix?: number[];
|
|
157
|
+
mediaPosition: [Position, Position, Position, Position];
|
|
158
|
+
/** 多媒体在容器中的适配规则 */
|
|
159
|
+
objectFit?: ObjectFit;
|
|
160
|
+
action?: {
|
|
161
|
+
url: string;
|
|
162
|
+
type: 'iframe' | 'window';
|
|
163
|
+
};
|
|
164
|
+
mediaData: MediaData[];
|
|
165
|
+
};
|
|
150
166
|
Custom: Object;
|
|
151
167
|
Unknown: Object;
|
|
152
168
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.Custom = "Custom", i))(a || {});
|
|
1
|
+
var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
|
|
2
2
|
export {
|
|
3
3
|
a as ContentType
|
|
4
4
|
};
|
|
@@ -22,7 +22,7 @@ export declare enum PointType {
|
|
|
22
22
|
}
|
|
23
23
|
/** @deprecated 改用 stickType */
|
|
24
24
|
export declare type TagPointType = keyof typeof PointType;
|
|
25
|
-
export declare type StickType = '2DPoint' | '3DPoint' | 'Plane';
|
|
25
|
+
export declare type StickType = '2DPoint' | '3DPoint' | 'Plane' | 'Model';
|
|
26
26
|
export interface TagIconUrl {
|
|
27
27
|
url: string;
|
|
28
28
|
/** 指切图是几倍图,如 2倍图, 3倍图,默认值为 3 */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as o from "three";
|
|
2
2
|
import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import "@realsee/five/gltf-loader";
|
|
4
|
+
function f(p, h) {
|
|
5
|
+
h.forEach((t) => {
|
|
5
6
|
const r = new o.SphereGeometry(0.02, 16, 16), i = [], a = [
|
|
6
7
|
new o.MeshBasicMaterial({ color: 16776960 }),
|
|
7
8
|
new o.MeshBasicMaterial({ color: 16711935 }),
|
|
@@ -18,10 +19,10 @@ function M(h, p) {
|
|
|
18
19
|
s.position.copy(c(t.position)), i.push(s);
|
|
19
20
|
}
|
|
20
21
|
i.forEach((e) => {
|
|
21
|
-
e.material.depthTest = !1,
|
|
22
|
+
e.material.depthTest = !1, p.scene.add(e);
|
|
22
23
|
});
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
f as addDebugPoints
|
|
27
28
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function n(
|
|
1
|
+
function n(o) {
|
|
2
2
|
const e = document.createElement("div");
|
|
3
|
-
e.style.color =
|
|
3
|
+
e.style.color = o, document.body.appendChild(e);
|
|
4
4
|
const t = window.getComputedStyle(e).color;
|
|
5
|
-
|
|
6
|
-
const
|
|
5
|
+
e.remove();
|
|
6
|
+
const a = (() => t.search("rgba") === -1 ? t.replace("rgb", "rgba").replace(")", ", 1)") : t)(), r = a.replace("rgba", "").replace("(", "").replace(")", "").split(",").map((c) => Number(c.trim()));
|
|
7
7
|
return {
|
|
8
|
-
rgba:
|
|
8
|
+
rgba: a,
|
|
9
9
|
r: r[0],
|
|
10
10
|
g: r[1],
|
|
11
11
|
b: r[2],
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { centerPoint as
|
|
2
|
-
import { even as
|
|
3
|
-
import { random as
|
|
4
|
-
import { anyPositionToVector3 as
|
|
5
|
-
import { addDebugPoints as
|
|
6
|
-
import { noTypecheck as
|
|
7
|
-
import { planeNormal as
|
|
8
|
-
import { tagPosition as
|
|
9
|
-
import { checkRange as
|
|
10
|
-
import { actionAfterFiveModelLoad as
|
|
11
|
-
import { normalPositionToPositions as
|
|
12
|
-
import { debounce as
|
|
13
|
-
import { throttle as
|
|
14
|
-
import { binarySearchFirstBig as
|
|
15
|
-
import { resizeObserver as
|
|
1
|
+
import { centerPoint as a } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
2
|
+
import { even as n } from "../../CSS3DRenderPlugin/utils/even.js";
|
|
3
|
+
import { random as f } from "../../CSS3DRenderPlugin/utils/random.js";
|
|
4
|
+
import { anyPositionToVector3 as x, arrayPositionToVector3 as c, positionToVector3 as l } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
5
|
+
import { addDebugPoints as P } from "./addDebugPoints.js";
|
|
6
|
+
import { noTypecheck as g } from "./noTypecheck.js";
|
|
7
|
+
import { planeNormal as V } from "./planeNormal.js";
|
|
8
|
+
import { getTagPosition as u, tagPosition as v } from "./tagPosition.js";
|
|
9
|
+
import { checkRange as F } from "./checkRange.js";
|
|
10
|
+
import { actionAfterFiveModelLoad as k, waitFiveModelLoaded as M } from "./actionAfterFiveModelLoad.js";
|
|
11
|
+
import { normalPositionToPositions as w } from "./normalPositionToPositions.js";
|
|
12
|
+
import { debounce as A } from "./debounce.js";
|
|
13
|
+
import { throttle as D } from "./throttle.js";
|
|
14
|
+
import { binarySearchFirstBig as O, searchFirstValueSmallThanLastValue as R } from "./search.js";
|
|
15
|
+
import { resizeObserver as q } from "./resizeObserver.js";
|
|
16
16
|
import "three";
|
|
17
|
+
import "@realsee/five/gltf-loader";
|
|
18
|
+
import "./tag/tagCheck.js";
|
|
17
19
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
k as actionAfterFiveModelLoad,
|
|
21
|
+
P as addDebugPoints,
|
|
22
|
+
x as anyPositionToVector3,
|
|
23
|
+
c as arrayPositionToVector3,
|
|
24
|
+
O as binarySearchFirstBig,
|
|
25
|
+
a as centerPoint,
|
|
26
|
+
F as checkRange,
|
|
27
|
+
A as debounce,
|
|
28
|
+
n as even,
|
|
29
|
+
u as getTagPosition,
|
|
30
|
+
g as noTypecheck,
|
|
31
|
+
w as normalPositionToPositions,
|
|
32
|
+
V as planeNormal,
|
|
33
|
+
l as positionToVector3,
|
|
34
|
+
f as random,
|
|
35
|
+
q as resizeObserver,
|
|
36
|
+
R as searchFirstValueSmallThanLastValue,
|
|
37
|
+
v as tagPosition,
|
|
38
|
+
D as throttle,
|
|
39
|
+
M as waitFiveModelLoaded
|
|
37
40
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "three";
|
|
2
2
|
import { anyPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
3
|
-
|
|
3
|
+
import "@realsee/five/gltf-loader";
|
|
4
|
+
function m(t) {
|
|
4
5
|
if (t.length < 3)
|
|
5
6
|
return;
|
|
6
7
|
const o = t.map(c), r = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
|
|
7
8
|
return r.cross(n);
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
m as planeNormal
|
|
11
12
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Matrix4 as e, Vector3 as o } from "three";
|
|
2
|
+
import "@realsee/five/gltf-loader";
|
|
3
|
+
function p(r) {
|
|
4
|
+
if (!r.matrix)
|
|
5
|
+
return;
|
|
6
|
+
const t = new e().fromArray(r.matrix), { mediaPosition: i } = r.data;
|
|
7
|
+
return i.map((n) => new o().fromArray(n).add(new o(0, 0, 5e-4)).applyMatrix4(t).toArray());
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
p as getMediaModelPlanPositions
|
|
11
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { Tag } from '../../typings';
|
|
1
|
+
import type { Tag, TagElement } from '../../typings';
|
|
2
2
|
export declare function isPointTag(tag: Tag): boolean;
|
|
3
3
|
export declare function isPlaneTag(tag: Tag): boolean;
|
|
4
4
|
export declare function isPoint2DTag(tag: Tag): boolean;
|
|
5
5
|
export declare function isPoint3DTag(tag: Tag): boolean;
|
|
6
6
|
export declare function is2DTag(tag: Tag): boolean;
|
|
7
7
|
export declare function is3DTag(tag: Tag): boolean;
|
|
8
|
+
export declare function isMediaModelTag(tag: Tag): tag is TagElement<'MediaModel', 'Model'>;
|
|
@@ -13,12 +13,16 @@ function o(n) {
|
|
|
13
13
|
function c(n) {
|
|
14
14
|
return n.stickType === "2DPoint";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function T(n) {
|
|
17
17
|
return n.stickType === "3DPoint" || n.stickType === "Plane";
|
|
18
18
|
}
|
|
19
|
+
function s(n) {
|
|
20
|
+
return n.stickType === "Model" && n.contentType === "MediaModel";
|
|
21
|
+
}
|
|
19
22
|
export {
|
|
20
23
|
c as is2DTag,
|
|
21
|
-
|
|
24
|
+
T as is3DTag,
|
|
25
|
+
s as isMediaModelTag,
|
|
22
26
|
t as isPlaneTag,
|
|
23
27
|
e as isPoint2DTag,
|
|
24
28
|
o as isPoint3DTag,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Vector3 } from 'three';
|
|
2
2
|
import { AnyPosition } from '.';
|
|
3
|
+
import { Tag } from '../typings';
|
|
3
4
|
export declare function tagPosition(position: AnyPosition | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
|
|
5
|
+
export declare function getTagPosition(tag: Tag): Vector3;
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import { Matrix4 as s, Vector3 as m } from "three";
|
|
2
|
+
import { centerPoint as n } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
3
|
+
import { anyPositionToVector3 as t, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
4
|
+
import "@realsee/five/gltf-loader";
|
|
5
|
+
import { isPointTag as a, isMediaModelTag as c } from "./tag/tagCheck.js";
|
|
6
|
+
function f(r) {
|
|
5
7
|
if (Array.isArray(r) && r.length === 4) {
|
|
6
|
-
const
|
|
7
|
-
return
|
|
8
|
+
const o = r.map(t);
|
|
9
|
+
return n(o[0], o[2]);
|
|
8
10
|
} else
|
|
9
|
-
return
|
|
11
|
+
return t(r);
|
|
12
|
+
}
|
|
13
|
+
function T(r) {
|
|
14
|
+
if (a(r))
|
|
15
|
+
return p(r == null ? void 0 : r.position);
|
|
16
|
+
if (c(r) && r.matrix) {
|
|
17
|
+
const i = new s().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new m().fromArray(e).applyMatrix4(i));
|
|
18
|
+
return n(o[0], o[2]);
|
|
19
|
+
} else
|
|
20
|
+
return f(r.position);
|
|
10
21
|
}
|
|
11
22
|
export {
|
|
12
|
-
|
|
23
|
+
T as getTagPosition,
|
|
24
|
+
f as tagPosition
|
|
13
25
|
};
|