@realsee/dnalogel 2.19.0 → 2.20.0-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/PanoTagPlugin/Archive/deprecated.d.ts +4 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/dist/PanoTagPlugin/controller/index.d.ts +7 -7
- package/dist/PanoTagPlugin/typings/controller.d.ts +9 -13
- package/dist/PanoTagPlugin/typings/index.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +6 -8
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +17 -18
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +11 -7
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
- package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/dist/index.cjs.js +39 -39
- package/dist/index.js +669 -665
- package/dist/index.umd.js +32 -32
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +39 -37
- package/docs/classes/CruisePluginController.html +34 -32
- package/docs/classes/GuideLineItem.GuideLineItem.html +28 -26
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +39 -37
- package/docs/classes/Magnifier.html +28 -26
- package/docs/classes/ModelRoomLabelController.html +19 -17
- package/docs/classes/Object3DHelperController.html +33 -31
- package/docs/classes/PaintBrush.html +23 -21
- package/docs/classes/PanoMeasurePluginLine.html +31 -29
- package/docs/classes/PanoMeasurePluginModel.html +30 -28
- package/docs/classes/PanoMeasurePluginPoint.html +22 -20
- package/docs/classes/PanoMeasurePluginPolyline.html +34 -32
- package/docs/classes/PanoTagPluginController.html +80 -78
- package/docs/classes/Util.BetterTween.html +17 -15
- package/docs/classes/Util.FivePointSelector.html +20 -18
- package/docs/classes/Util.Interval.html +20 -18
- package/docs/classes/Util.Magnifier.html +25 -23
- package/docs/classes/Util.PointDomHelper.html +19 -17
- package/docs/classes/Util.PointHelper.html +19 -17
- package/docs/classes/Util.Rectangle.html +21 -19
- package/docs/enums/CameraMovementEffect.html +15 -13
- package/docs/enums/ContentType.html +63 -57
- package/docs/enums/DIRECTION.html +17 -15
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +17 -15
- package/docs/enums/DimensionType.html +15 -13
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +16 -14
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +17 -15
- package/docs/enums/PaintBrushTypeEnum.html +16 -14
- package/docs/enums/PointType.html +385 -0
- package/docs/enums/Rotation.html +16 -14
- package/docs/functions/CSS3DRenderPlugin.html +12 -10
- package/docs/functions/CameraMovementPlugin.html +12 -10
- package/docs/functions/CruisePlugin.html +12 -10
- package/docs/functions/GuideLinePlugin.html +13 -11
- package/docs/functions/ItemLabelPlugin.html +12 -10
- package/docs/functions/MapviewFloorplanPlugin.html +12 -10
- package/docs/functions/ModelChassisCompassPlugin.html +12 -10
- package/docs/functions/ModelEntryDoorGuidePlugin.html +12 -10
- package/docs/functions/ModelFloorplanPlugin.html +12 -10
- package/docs/functions/ModelItemLabelPlugin.html +12 -10
- package/docs/functions/ModelRoomLabelPlugin.html +12 -10
- package/docs/functions/ModelTVVideoPlugin.html +12 -10
- package/docs/functions/ModelViewPlugin.html +12 -10
- package/docs/functions/Object3DHelperPlugin.html +12 -10
- package/docs/functions/PanoCompassPlugin.html +12 -10
- package/docs/functions/PanoCursorRaycasterPlugin.html +12 -10
- package/docs/functions/PanoDoorLabelPlugin.html +12 -10
- package/docs/functions/PanoFloorplanRadarPlugin.html +12 -10
- package/docs/functions/PanoMeasurePlugin.html +12 -10
- package/docs/functions/PanoRulerPlugin.html +12 -10
- package/docs/functions/PanoRulerProPlugin.html +12 -10
- package/docs/functions/PanoSpatialTagPlugin.html +12 -10
- package/docs/functions/PanoTagPlugin.html +12 -10
- package/docs/functions/PanoVideoPlugin.html +12 -10
- package/docs/functions/TopviewFloorplanPlugin.html +12 -10
- package/docs/functions/Util.getCoordsFromClient.html +13 -11
- package/docs/functions/Util.getCoordsFromElement.html +13 -11
- package/docs/functions/Util.getFrameTime.html +13 -11
- package/docs/functions/Util.getIntersectFromRelativePosition.html +13 -11
- package/docs/functions/Util.getRaycasterFromFivePointer.html +13 -11
- package/docs/functions/Util.isAbsoluteURL.html +13 -11
- package/docs/functions/Util.isModelLike.html +13 -11
- package/docs/functions/Util.isNil.html +13 -11
- package/docs/functions/Util.isPanoramaLike.html +13 -11
- package/docs/functions/Util.nextFrame.html +13 -11
- package/docs/functions/Util.notNil.html +13 -11
- package/docs/functions/Util.requestAnimationFrameInterval.html +13 -11
- package/docs/functions/Util.tweenProgress.html +13 -11
- package/docs/functions/Util.uuid.html +13 -11
- package/docs/functions/pluginFlag.html +13 -11
- package/docs/index.html +13 -11
- package/docs/interfaces/AddTagConfig.html +14 -12
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +19 -17
- package/docs/interfaces/CSS3DRenderPluginState.html +16 -14
- package/docs/interfaces/CameraMovementPluginExportType.html +15 -13
- package/docs/interfaces/CruisePluginTypes.Config.html +16 -14
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +20 -18
- package/docs/interfaces/CruisePluginTypes.EventMap.html +28 -26
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +20 -18
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +22 -20
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +22 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +17 -15
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +15 -13
- package/docs/interfaces/CruisePluginTypes.PluginState.html +19 -17
- package/docs/interfaces/EventMap.html +25 -23
- package/docs/interfaces/FloorplanBounding.html +16 -14
- package/docs/interfaces/FloorplanData.html +18 -16
- package/docs/interfaces/FloorplanEntrance.html +19 -17
- package/docs/interfaces/FloorplanExtraObject.html +18 -16
- package/docs/interfaces/FloorplanExtraObject3D.html +16 -14
- package/docs/interfaces/FloorplanFloorData.html +17 -15
- package/docs/interfaces/FloorplanImagePosition.html +15 -13
- package/docs/interfaces/FloorplanObserver.html +17 -15
- package/docs/interfaces/FloorplanOutlineItem.html +17 -15
- package/docs/interfaces/FloorplanPosition.html +15 -13
- package/docs/interfaces/FloorplanRoomItem.html +21 -19
- package/docs/interfaces/FloorplanRoomLabelItem.html +15 -13
- package/docs/interfaces/FloorplanServerBounding.html +16 -14
- package/docs/interfaces/FloorplanServerComputedData.html +18 -16
- package/docs/interfaces/FloorplanServerData.html +15 -13
- package/docs/interfaces/FloorplanServerDoorItem.html +18 -16
- package/docs/interfaces/FloorplanServerDoorPosition.html +16 -14
- package/docs/interfaces/FloorplanServerEntrance.html +19 -17
- package/docs/interfaces/FloorplanServerFloorData.html +17 -15
- package/docs/interfaces/FloorplanServerImagePosition.html +15 -13
- package/docs/interfaces/FloorplanServerObserver.html +17 -15
- package/docs/interfaces/FloorplanServerOutlineItem.html +17 -15
- package/docs/interfaces/FloorplanServerPosition.html +15 -13
- package/docs/interfaces/FloorplanServerRoomItem.html +22 -20
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +15 -13
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +16 -14
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +18 -16
- package/docs/interfaces/GuideLinePluginType.EventMap.html +21 -19
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +14 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +21 -19
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +16 -14
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +26 -24
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +15 -13
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +26 -24
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +13 -11
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +15 -13
- package/docs/interfaces/GuideLinePluginType.PluginState.html +16 -14
- package/docs/interfaces/GuideLinePluginType.Route.html +19 -17
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +17 -15
- package/docs/interfaces/HelperOffset.html +16 -14
- package/docs/interfaces/ImagePlaneGroup.html +14 -12
- package/docs/interfaces/ItemLabelPluginData.html +14 -12
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +19 -17
- package/docs/interfaces/ItemLabelPluginParametersType.html +17 -15
- package/docs/interfaces/MinMax.html +15 -13
- package/docs/interfaces/ModelChassisCompassPluginData.html +15 -13
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +16 -14
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +15 -13
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +16 -14
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +16 -14
- package/docs/interfaces/ModelItemLabelPluginData.html +14 -12
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +19 -17
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +15 -13
- package/docs/interfaces/ModelRoomLabelPluginData.html +14 -12
- package/docs/interfaces/ModelTVVideoPluginData.html +17 -15
- package/docs/interfaces/ModelTVVideoPluginExportType.html +16 -14
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +14 -12
- package/docs/interfaces/ModelViewPluginExportType.html +19 -17
- package/docs/interfaces/Object3DHelperState.html +16 -14
- package/docs/interfaces/ObjectHelperControllers.html +17 -15
- package/docs/interfaces/PaintBrushAction.html +20 -18
- package/docs/interfaces/PaintBrushConfigs.html +20 -18
- package/docs/interfaces/PaintBrushState.html +18 -16
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +18 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +13 -11
- package/docs/interfaces/PanoMeasureParameterType.html +22 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +16 -14
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +15 -13
- package/docs/interfaces/PanoMeasurePluginPointJson.html +15 -13
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +16 -14
- package/docs/interfaces/PanoRulerPluginExportType.html +18 -16
- package/docs/interfaces/PanoRulerPluginOptions.html +15 -13
- package/docs/interfaces/PanoRulerPluginParameterType.html +16 -14
- package/docs/interfaces/PanoRulerProPluginExportType.html +17 -15
- package/docs/interfaces/PanoRulerProPluginOptions.html +15 -13
- package/docs/interfaces/PanoRulerProPluginParameterType.html +15 -13
- package/docs/interfaces/PanoRulerProPluginState.html +16 -14
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginData.html +19 -17
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +18 -16
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +21 -19
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +18 -16
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +21 -19
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +19 -17
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +18 -16
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +14 -12
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +16 -14
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +14 -12
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +17 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +14 -12
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +16 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +18 -16
- package/docs/interfaces/Point.html +16 -14
- package/docs/interfaces/Room.html +17 -15
- package/docs/interfaces/RoomInfo.html +15 -13
- package/docs/interfaces/RoomLabel.html +22 -20
- package/docs/interfaces/RoomRules.html +13 -11
- package/docs/interfaces/Rooms.html +13 -11
- package/docs/interfaces/Scissor.html +17 -15
- package/docs/interfaces/State.html +16 -14
- package/docs/interfaces/TagCacheInterface.html +20 -18
- package/docs/interfaces/TagConfig.html +26 -26
- package/docs/interfaces/TagGLTFObjectGroup.html +14 -12
- package/docs/interfaces/TagIconUrl.html +20 -18
- package/docs/interfaces/TagObjectGroup.html +14 -12
- package/docs/interfaces/TagStyle.html +14 -12
- package/docs/interfaces/Tags.html +120 -118
- package/docs/interfaces/TemporaryState.html +14 -12
- package/docs/interfaces/Util.MagnifierParameter.html +19 -17
- package/docs/interfaces/Util.MouseGroupParameter.html +16 -14
- package/docs/modules/CruisePluginTypes.html +13 -11
- package/docs/modules/GuideLineItem.html +13 -11
- package/docs/modules/GuideLineModeItem.html +13 -11
- package/docs/modules/GuideLinePluginType.html +13 -11
- package/docs/modules/PanoVideoPluginType.html +13 -11
- package/docs/modules/Util.html +13 -11
- package/docs/modules.html +22 -18
- package/docs/types/ArrayPosition.html +13 -11
- package/docs/types/AudioAppearance.html +14 -12
- package/docs/types/AudioTagTypeConfigKey.html +13 -11
- package/docs/types/CSS3DRenderExportType.html +13 -11
- package/docs/types/CSS3DRenderPluginExportType.html +13 -11
- package/docs/types/CSS3DRenderPluginParameterType.html +13 -11
- package/docs/types/ClassFunctionParameters.html +13 -11
- package/docs/types/Color.html +13 -11
- package/docs/types/ContentTypeConfigKey.html +13 -11
- package/docs/types/ContentTypeConfigKeySplit.html +13 -11
- package/docs/types/ContentTypeMap.html +13 -11
- package/docs/types/Create3DDomContainerReturnType.html +13 -11
- package/docs/types/Create3DElementReturnType.html +13 -11
- package/docs/types/CruisePluginExportType.html +13 -11
- package/docs/types/CruisePluginTypes.CruiseData.html +13 -11
- package/docs/types/CruisePluginTypes.MoveEffect.html +13 -11
- package/docs/types/{Point2DElement.html → DeprecatedMediaPlaneProperty.html} +28 -19
- package/docs/types/{Point3DElement.html → DeprecatedTagProperty.html} +31 -19
- package/docs/types/Direction-1.html +13 -11
- package/docs/types/Direction4.html +13 -11
- package/docs/types/ElementRenderer.html +13 -11
- package/docs/types/FloorplanRuleLabels.html +13 -11
- package/docs/types/FloorplanServerRuleLabels.html +13 -11
- package/docs/types/GuideLinePluginExportType.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineItem.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +13 -11
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +13 -11
- package/docs/types/GuideLinePluginType.PathItem.html +13 -11
- package/docs/types/GuideLinePluginType.PluginData.html +13 -11
- package/docs/types/HelperEventMap.html +13 -11
- package/docs/types/LoadTagConfig.html +13 -11
- package/docs/types/MapviewFloorplanPluginParameterType.html +13 -11
- package/docs/types/MapviewFloorplanPluginReturnType.html +13 -11
- package/docs/types/MediaData.html +13 -11
- package/docs/types/MediaStore.html +13 -11
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +13 -11
- package/docs/types/ModelFloorplanPluginParameterType.html +13 -11
- package/docs/types/ModelFloorplanPluginReturnType.html +13 -11
- package/docs/types/ModelRoomLabelPluginParameters.html +13 -11
- package/docs/types/ModelRoomLabelPluginReturnType.html +13 -11
- package/docs/types/MoveArgs.html +13 -11
- package/docs/types/MoveOpts.html +13 -11
- package/docs/types/Object3DHelperEventMap.html +13 -11
- package/docs/types/ObjectFit.html +13 -11
- package/docs/types/PaintBrushEventMap.html +13 -11
- package/docs/types/PanoCompassPluginData.html +13 -11
- package/docs/types/PanoCompassPluginExportType.html +13 -11
- package/docs/types/PanoCompassPluginParameterType.html +13 -11
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +13 -11
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +13 -11
- package/docs/types/PanoIndex.html +13 -11
- package/docs/types/PanoMeasurePluginEvent.html +13 -11
- package/docs/types/PanoMeasureReturnType.html +13 -11
- package/docs/types/PanoSpatialTagPluginId.html +13 -11
- package/docs/types/PanoTagPluginExportInterface.html +13 -11
- package/docs/types/PanoTagPluginParamsInterface.html +13 -11
- package/docs/types/PanoVideoPluginParameterType.html +13 -11
- package/docs/types/PanoVideoPluginReturnType.html +13 -11
- package/docs/types/{PlaneTagElement.html → PartialObjectDeep.html} +17 -15
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +14 -12
- package/docs/types/PlaneTag.html +14 -12
- package/docs/types/Point2DTag.html +14 -12
- package/docs/types/Point3DTag.html +14 -12
- package/docs/types/PointTag.html +14 -12
- package/docs/types/{PointTagElement.html → PointTagInstance.html} +16 -14
- package/docs/types/Position.html +13 -11
- package/docs/types/RotateArgs.html +13 -11
- package/docs/types/RotateOpts.html +13 -11
- package/docs/types/RuleLabelsKey.html +13 -11
- package/docs/types/RuleLabelsValue.html +13 -11
- package/docs/types/StickType.html +13 -11
- package/docs/types/Tag.html +14 -12
- package/docs/types/Tag2D.html +13 -11
- package/docs/types/Tag3D.html +13 -11
- package/docs/types/TagContentType.html +13 -11
- package/docs/types/TagDimensionType.html +13 -11
- package/docs/types/TagElement.html +17 -12
- package/docs/types/TagEvents.html +13 -11
- package/docs/types/TagGLTFObject.html +13 -11
- package/docs/types/TagHooks.html +13 -11
- package/docs/types/TagIconSize.html +13 -11
- package/docs/types/TagId.html +13 -11
- package/docs/types/TagInstance.html +361 -0
- package/docs/types/{ModelElement.html → TagPointType.html} +19 -19
- package/docs/types/TopviewFloorplanPluginParameterType.html +13 -11
- package/docs/types/TopviewFloorplanPluginReturnType.html +13 -11
- package/docs/types/WorkCode.html +13 -11
- package/docs/variables/FLOOR_TYPE_MAP.html +13 -11
- package/docs/variables/PLUGIN.html +13 -11
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +13 -11
- package/docs/variables/ROOM_TYPE_MAP.html +13 -11
- package/docs/variables/itemLabelPluginServerParams.html +13 -11
- package/docs/variables/modelItemLabelPluginServerParams.html +13 -11
- package/docs/variables/modelRoomLabelPluginServerParams.html +13 -11
- package/libs/CruisePlugin/Controller.js +74 -74
- package/libs/GuideLinePlugin/Controller.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +27 -27
- package/libs/PanoMeasurePlugin/Model/polyline.js +20 -19
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +4 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +30 -30
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
- package/libs/PanoTagPlugin/controller/TagComputer.js +27 -27
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +7 -5
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/libs/PanoTagPlugin/controller/TagUtil.js +16 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +7 -7
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +6 -4
- package/libs/PanoTagPlugin/typings/controller.d.ts +9 -13
- package/libs/PanoTagPlugin/typings/index.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +6 -8
- package/libs/PanoTagPlugin/typings/tag/Tag.js +1 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +17 -18
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +11 -7
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
- package/libs/PanoTagPlugin/utils/planeNormal.js +5 -5
- package/libs/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as Q, init as U, safe_not_equal as W, append_styles as X, element as
|
|
1
|
+
import { SvelteComponent as Q, init as U, safe_not_equal as W, append_styles as X, element as A, space as Y, attr as d, null_to_empty as B, set_style as h, toggle_class as _, insert as C, append as E, transition_out as v, check_outros as F, transition_in as y, detach as N, getContext as Z, group_outros as G, noop as S, create_component as K, mount_component as M, destroy_component as O } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import x from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as H } from "../utils/noTypecheck.js";
|
|
@@ -97,10 +97,10 @@ function et(i) {
|
|
|
97
97
|
let e;
|
|
98
98
|
return {
|
|
99
99
|
c() {
|
|
100
|
-
e =
|
|
100
|
+
e = A("div"), d(e, "data-info", "tag content is disable");
|
|
101
101
|
},
|
|
102
102
|
m(t, o) {
|
|
103
|
-
|
|
103
|
+
C(t, e, o);
|
|
104
104
|
},
|
|
105
105
|
p: S,
|
|
106
106
|
i: S,
|
|
@@ -163,10 +163,10 @@ function it(i) {
|
|
|
163
163
|
o[4]), e.$set(m);
|
|
164
164
|
},
|
|
165
165
|
i(o) {
|
|
166
|
-
t || (
|
|
166
|
+
t || (y(e.$$.fragment, o), t = !0);
|
|
167
167
|
},
|
|
168
168
|
o(o) {
|
|
169
|
-
|
|
169
|
+
v(e.$$.fragment, o), t = !1;
|
|
170
170
|
},
|
|
171
171
|
d(o) {
|
|
172
172
|
O(e, o);
|
|
@@ -177,10 +177,10 @@ function ot(i) {
|
|
|
177
177
|
let e;
|
|
178
178
|
return {
|
|
179
179
|
c() {
|
|
180
|
-
e =
|
|
180
|
+
e = A("div"), d(e, "data-info", "tag point is disable");
|
|
181
181
|
},
|
|
182
182
|
m(t, o) {
|
|
183
|
-
|
|
183
|
+
C(t, e, o);
|
|
184
184
|
},
|
|
185
185
|
p: S,
|
|
186
186
|
i: S,
|
|
@@ -209,10 +209,10 @@ function rt(i) {
|
|
|
209
209
|
o[1]), e.$set(m);
|
|
210
210
|
},
|
|
211
211
|
i(o) {
|
|
212
|
-
t || (
|
|
212
|
+
t || (y(e.$$.fragment, o), t = !0);
|
|
213
213
|
},
|
|
214
214
|
o(o) {
|
|
215
|
-
|
|
215
|
+
v(e.$$.fragment, o), t = !1;
|
|
216
216
|
},
|
|
217
217
|
d(o) {
|
|
218
218
|
O(e, o);
|
|
@@ -221,24 +221,24 @@ function rt(i) {
|
|
|
221
221
|
}
|
|
222
222
|
function nt(i) {
|
|
223
223
|
let e, t, o, a, m, s, f, g, w, l;
|
|
224
|
-
const
|
|
224
|
+
const z = [it, et], u = [];
|
|
225
225
|
function p(n, r) {
|
|
226
226
|
return (
|
|
227
227
|
/*haveContent*/
|
|
228
228
|
n[12] ? 0 : 1
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
|
-
o = p(i), a = u[o] =
|
|
232
|
-
const
|
|
233
|
-
function
|
|
231
|
+
o = p(i), a = u[o] = z[o](i);
|
|
232
|
+
const P = [rt, ot], c = [];
|
|
233
|
+
function T(n, r) {
|
|
234
234
|
return (
|
|
235
235
|
/*havePoint*/
|
|
236
236
|
n[13] ? 0 : 1
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
|
-
return s =
|
|
239
|
+
return s = T(i), f = c[s] = P[s](i), {
|
|
240
240
|
c() {
|
|
241
|
-
e =
|
|
241
|
+
e = A("div"), t = A("div"), a.c(), m = Y(), f.c(), d(t, "class", g = B(J(
|
|
242
242
|
"wrapper",
|
|
243
243
|
/*tag*/
|
|
244
244
|
i[1].className ? `${/*tag*/
|
|
@@ -297,17 +297,17 @@ function nt(i) {
|
|
|
297
297
|
);
|
|
298
298
|
},
|
|
299
299
|
m(n, r) {
|
|
300
|
-
|
|
300
|
+
C(n, e, r), E(e, t), u[o].m(t, null), E(t, m), c[s].m(t, null), l = !0;
|
|
301
301
|
},
|
|
302
302
|
p(n, [r]) {
|
|
303
303
|
let b = o;
|
|
304
|
-
o = p(n), o === b ? u[o].p(n, r) : (G(),
|
|
304
|
+
o = p(n), o === b ? u[o].p(n, r) : (G(), v(u[b], 1, 1, () => {
|
|
305
305
|
u[b] = null;
|
|
306
|
-
}), F(), a = u[o], a ? a.p(n, r) : (a = u[o] =
|
|
306
|
+
}), F(), a = u[o], a ? a.p(n, r) : (a = u[o] = z[o](n), a.c()), y(a, 1), a.m(t, m));
|
|
307
307
|
let k = s;
|
|
308
|
-
s =
|
|
308
|
+
s = T(n), s === k ? c[s].p(n, r) : (G(), v(c[k], 1, 1, () => {
|
|
309
309
|
c[k] = null;
|
|
310
|
-
}), F(), f = c[s], f ? f.p(n, r) : (f = c[s] =
|
|
310
|
+
}), F(), f = c[s], f ? f.p(n, r) : (f = c[s] = P[s](n), f.c()), y(f, 1), f.m(t, null)), (!l || r & /*tag*/
|
|
311
311
|
2 && g !== (g = B(J(
|
|
312
312
|
"wrapper",
|
|
313
313
|
/*tag*/
|
|
@@ -378,10 +378,10 @@ function nt(i) {
|
|
|
378
378
|
);
|
|
379
379
|
},
|
|
380
380
|
i(n) {
|
|
381
|
-
l || (
|
|
381
|
+
l || (y(a), y(f), l = !0);
|
|
382
382
|
},
|
|
383
383
|
o(n) {
|
|
384
|
-
|
|
384
|
+
v(a), v(f), l = !1;
|
|
385
385
|
},
|
|
386
386
|
d(n) {
|
|
387
387
|
n && N(e), u[o].d(), c[s].d();
|
|
@@ -389,10 +389,10 @@ function nt(i) {
|
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
function at(i, e, t) {
|
|
392
|
-
let o, a, m, s, f, g, w, l,
|
|
392
|
+
let o, a, m, s, f, g, w, l, z, { withAnimation: u = !1 } = e, { tag: p } = e, { mediaStore: P } = e, { state: c } = e, { temporaryState: T } = e;
|
|
393
393
|
const n = Z("hooks");
|
|
394
394
|
return i.$$set = (r) => {
|
|
395
|
-
"withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, p = r.tag), "mediaStore" in r && t(2,
|
|
395
|
+
"withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, p = r.tag), "mediaStore" in r && t(2, P = r.mediaStore), "state" in r && t(3, c = r.state), "temporaryState" in r && t(4, T = r.temporaryState);
|
|
396
396
|
}, i.$$.update = () => {
|
|
397
397
|
var r, b, k, L, I, q, D, R;
|
|
398
398
|
i.$$.dirty & /*tag*/
|
|
@@ -402,19 +402,19 @@ function at(i, e, t) {
|
|
|
402
402
|
})()), i.$$.dirty & /*tag*/
|
|
403
403
|
2 && t(12, a = (() => p.stickType === "2DPoint")()), i.$$.dirty & /*tag*/
|
|
404
404
|
2 && t(11, m = p.id), i.$$.dirty & /*tag*/
|
|
405
|
-
2 && t(10, s = !((r = p.
|
|
405
|
+
2 && t(10, s = !((r = p.screenPosition) != null && r.leftPercent) || !((b = p.screenPosition) != null && b.topPercent) || p.enabled === !1 || !p.state), i.$$.dirty & /*tag*/
|
|
406
406
|
2 && t(9, f = !((k = p.state) != null && k.visible) || ((L = p.temporaryState) == null ? void 0 : L.visible) === !1), i.$$.dirty & /*tag*/
|
|
407
407
|
2 && t(8, g = (I = p.state) == null ? void 0 : I.unfolded), i.$$.dirty & /*tag*/
|
|
408
|
-
2 && t(7, w = ((q = p.
|
|
409
|
-
2 && t(6, l = ((D = p.
|
|
410
|
-
2 && t(5,
|
|
408
|
+
2 && t(7, w = ((q = p.screenPosition) == null ? void 0 : q.leftPercent) + "%"), i.$$.dirty & /*tag*/
|
|
409
|
+
2 && t(6, l = ((D = p.screenPosition) == null ? void 0 : D.topPercent) + "%"), i.$$.dirty & /*tag*/
|
|
410
|
+
2 && t(5, z = (R = p.state) != null && R.unfolded ? 1 : 0);
|
|
411
411
|
}, [
|
|
412
412
|
u,
|
|
413
413
|
p,
|
|
414
|
-
|
|
414
|
+
P,
|
|
415
415
|
c,
|
|
416
|
-
A,
|
|
417
416
|
T,
|
|
417
|
+
z,
|
|
418
418
|
l,
|
|
419
419
|
w,
|
|
420
420
|
g,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Five, Mode } from '@realsee/five';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TagInstance } from '../typings';
|
|
4
4
|
import type { Raycaster } from 'three';
|
|
5
5
|
import { TagUtil } from './TagUtil';
|
|
6
6
|
export declare abstract class TagComputer extends TagUtil {
|
|
@@ -9,25 +9,25 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
9
9
|
/**
|
|
10
10
|
* @description: 获取是否可见
|
|
11
11
|
*/
|
|
12
|
-
getVisibleByPanoIndex(tag:
|
|
13
|
-
getVisibleByFiveMode(tag:
|
|
12
|
+
getVisibleByPanoIndex(tag: TagInstance, panoIndex?: number): boolean;
|
|
13
|
+
getVisibleByFiveMode(tag: TagInstance, mode?: Mode): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @description 获取标签当前状态
|
|
16
16
|
* @return (this.state.visible && tag.state.visible) ?? true
|
|
17
17
|
*/
|
|
18
|
-
getCurrentVisibleState(tag:
|
|
19
|
-
getVisible(tag:
|
|
18
|
+
getCurrentVisibleState(tag: TagInstance): boolean;
|
|
19
|
+
getVisible(tag: TagInstance): boolean;
|
|
20
20
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
21
|
-
getModelMedialVisibleByPanoIndex(tag:
|
|
21
|
+
getModelMedialVisibleByPanoIndex(tag: TagInstance): boolean;
|
|
22
22
|
/**
|
|
23
23
|
* @description: 获取是否展开
|
|
24
24
|
*/
|
|
25
|
-
getUnfoldedByPanoIndex(tag:
|
|
25
|
+
getUnfoldedByPanoIndex(tag: TagInstance, panoIndex?: number): boolean;
|
|
26
26
|
/**
|
|
27
27
|
* @description: 获取是否展开
|
|
28
28
|
*/
|
|
29
|
-
getUnfoldedByCamera(tag:
|
|
30
|
-
protected sort<T extends
|
|
29
|
+
getUnfoldedByCamera(tag: TagInstance): boolean;
|
|
30
|
+
protected sort<T extends TagInstance>(tags: T[]): T[];
|
|
31
31
|
/**
|
|
32
32
|
* @description: 一个点的标签
|
|
33
33
|
*/
|
|
@@ -39,18 +39,18 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
39
39
|
/**
|
|
40
40
|
* @description: 一个点的标签
|
|
41
41
|
*/
|
|
42
|
-
protected getTagProject(tag:
|
|
42
|
+
protected getTagProject(tag: TagInstance): {
|
|
43
43
|
x: number;
|
|
44
44
|
y: number;
|
|
45
45
|
z: number;
|
|
46
46
|
};
|
|
47
47
|
/** 通过射线检测标签可用性 */
|
|
48
|
-
protected getTagEnableByIntersect(tag:
|
|
48
|
+
protected getTagEnableByIntersect(tag: TagInstance, raycaster: Raycaster): {
|
|
49
49
|
value: boolean;
|
|
50
50
|
reason: string;
|
|
51
51
|
};
|
|
52
52
|
/** 获取点位看向标签的射线 */
|
|
53
|
-
protected getRaycasterFromPanoIndex(tag:
|
|
53
|
+
protected getRaycasterFromPanoIndex(tag: TagInstance, panoIndex: number): THREE.Raycaster;
|
|
54
54
|
/** 检测是否匹配当前楼层 */
|
|
55
55
|
private getVisibleByFloorIndex;
|
|
56
56
|
}
|
|
@@ -2,26 +2,26 @@ var M = Object.defineProperty, U = Object.defineProperties;
|
|
|
2
2
|
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var g = (
|
|
5
|
+
var g = (d, l, e) => l in d ? M(d, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[l] = e, x = (d, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
B.call(l, e) && g(
|
|
7
|
+
B.call(l, e) && g(d, e, l[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(l))
|
|
10
|
-
C.call(l, e) && g(
|
|
11
|
-
return
|
|
12
|
-
}, I = (
|
|
13
|
-
var
|
|
10
|
+
C.call(l, e) && g(d, e, l[e]);
|
|
11
|
+
return d;
|
|
12
|
+
}, I = (d, l) => U(d, R(l));
|
|
13
|
+
var V = (d, l, e) => (g(d, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
14
|
import * as D from "three";
|
|
15
15
|
import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
|
|
16
|
-
import { tagPosition as
|
|
16
|
+
import { tagPosition as T, getTagPosition as k } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { notNil as
|
|
24
|
-
import { TagUtil as
|
|
23
|
+
import { notNil as $ } from "../../shared-utils/isNil.js";
|
|
24
|
+
import { TagUtil as S } from "./TagUtil.js";
|
|
25
25
|
import { getFloorIndex as E } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
26
|
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
27
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -55,10 +55,10 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
55
55
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
56
56
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
57
57
|
import "../../shared-utils/threex/domevents/index.js";
|
|
58
|
-
class Ue extends
|
|
58
|
+
class Ue extends S {
|
|
59
59
|
constructor(e) {
|
|
60
60
|
super(e);
|
|
61
|
-
|
|
61
|
+
V(this, "raycaster", new D.Raycaster());
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @description: 获取是否可见
|
|
@@ -71,8 +71,8 @@ class Ue extends $ {
|
|
|
71
71
|
return s.visible;
|
|
72
72
|
{
|
|
73
73
|
const i = (() => {
|
|
74
|
-
var
|
|
75
|
-
const o = (
|
|
74
|
+
var c, u, v;
|
|
75
|
+
const o = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, f = this.getDistance(e);
|
|
76
76
|
if (typeof o == "function")
|
|
77
77
|
return { value: o(this.five, { tag: e, distance: f }), reason: "config function result" };
|
|
78
78
|
if (o.keep === "hidden")
|
|
@@ -172,14 +172,14 @@ class Ue extends $ {
|
|
|
172
172
|
if (!i)
|
|
173
173
|
return;
|
|
174
174
|
const o = (() => {
|
|
175
|
-
const
|
|
175
|
+
const c = this.getDistance(e);
|
|
176
176
|
if (typeof i == "function")
|
|
177
|
-
return i(this.five, { tag: e, distance:
|
|
177
|
+
return i(this.five, { tag: e, distance: c });
|
|
178
178
|
if (i.keep === "folded")
|
|
179
179
|
return !1;
|
|
180
180
|
if (i.keep === "unfolded")
|
|
181
181
|
return !0;
|
|
182
|
-
if (i.unfoldDistance && h(
|
|
182
|
+
if (i.unfoldDistance && h(c, i.unfoldDistance) === !1)
|
|
183
183
|
return !1;
|
|
184
184
|
})();
|
|
185
185
|
n.unfolded = o;
|
|
@@ -243,15 +243,15 @@ class Ue extends $ {
|
|
|
243
243
|
e.length !== 0 && e.forEach((t) => {
|
|
244
244
|
var n;
|
|
245
245
|
if (!((n = t.state) != null && n.visible)) {
|
|
246
|
-
t.
|
|
246
|
+
t.screenPosition = null;
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
const s = this.getTagProject(t);
|
|
250
250
|
if (!s) {
|
|
251
|
-
t.
|
|
251
|
+
t.screenPosition = null;
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
|
-
t.
|
|
254
|
+
t.screenPosition = { leftPercent: (s.x + 1) / 2 * 100, topPercent: (-s.y + 1) / 2 * 100 };
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
setVisible() {
|
|
@@ -295,7 +295,7 @@ class Ue extends $ {
|
|
|
295
295
|
getTagProject(e) {
|
|
296
296
|
if (!this.getVisible(e))
|
|
297
297
|
return;
|
|
298
|
-
const s =
|
|
298
|
+
const s = T(e.position);
|
|
299
299
|
if (!s)
|
|
300
300
|
return;
|
|
301
301
|
const { x: n, y: i, z: o } = s.project(this.five.camera);
|
|
@@ -311,16 +311,16 @@ class Ue extends $ {
|
|
|
311
311
|
const a = this.tags.filter(y).map((b) => {
|
|
312
312
|
var m;
|
|
313
313
|
return (m = b.model) == null ? void 0 : m.object;
|
|
314
|
-
}).filter(
|
|
314
|
+
}).filter($);
|
|
315
315
|
return t.intersectObjects(a, !0)[0];
|
|
316
316
|
})(), f = (() => {
|
|
317
317
|
var a;
|
|
318
318
|
return typeof s == "object" && typeof s.intersectRaycaster == "object" && (a = s.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
|
|
319
|
-
})(),
|
|
320
|
-
return
|
|
319
|
+
})(), c = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
|
|
320
|
+
return c + f < n ? {
|
|
321
321
|
value: !1,
|
|
322
322
|
reason: `intersectRaycaster check failed: distance is ${n}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
|
|
323
|
-
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${
|
|
323
|
+
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${c}`
|
|
324
324
|
} : { value: !0, reason: "" };
|
|
325
325
|
}
|
|
326
326
|
/** 获取点位看向标签的射线 */
|
|
@@ -329,7 +329,7 @@ class Ue extends $ {
|
|
|
329
329
|
const s = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
|
|
330
330
|
if (s === void 0)
|
|
331
331
|
throw new Error(`getVisible(): observerPosition is ${s}`);
|
|
332
|
-
const n =
|
|
332
|
+
const n = T(e.position);
|
|
333
333
|
if (!n)
|
|
334
334
|
return;
|
|
335
335
|
const i = n.sub(s).normalize();
|
|
@@ -337,10 +337,10 @@ class Ue extends $ {
|
|
|
337
337
|
}
|
|
338
338
|
/** 检测是否匹配当前楼层 */
|
|
339
339
|
getVisibleByFloorIndex(e) {
|
|
340
|
-
var i, o, f,
|
|
340
|
+
var i, o, f, c, u, v, r;
|
|
341
341
|
let t = 0;
|
|
342
342
|
const s = (i = e.fiveState) == null ? void 0 : i.panoIndex;
|
|
343
|
-
s !== void 0 ? t = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (
|
|
343
|
+
s !== void 0 ? t = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (c = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : c.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
|
|
344
344
|
const n = this.five.model.shownFloor;
|
|
345
345
|
return n === null || n === t;
|
|
346
346
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TagComputer } from './TagComputer';
|
|
2
|
-
import type { Tag,
|
|
2
|
+
import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType } from '../typings';
|
|
3
3
|
import type { TemporaryState } from '../typings';
|
|
4
|
-
import { Object3D } from 'three';
|
|
4
|
+
import { type Object3D } from 'three';
|
|
5
5
|
import TagContainerSvelte from '../Components/TagContainer.svelte';
|
|
6
|
-
import { Five } from '@realsee/five';
|
|
6
|
+
import type { Five } from '@realsee/five';
|
|
7
7
|
export declare abstract class TagRender extends TagComputer {
|
|
8
8
|
protected group: TagObjectGroup;
|
|
9
9
|
protected imagePlaneGroup: ImagePlaneGroup;
|
|
@@ -41,7 +41,7 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
41
41
|
* @param tag 标签
|
|
42
42
|
* @param model 模型
|
|
43
43
|
*/
|
|
44
|
-
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag:
|
|
44
|
+
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagInstance<TagContentType, S>, model: Object3D): void;
|
|
45
45
|
/** 添加模型标签 */
|
|
46
46
|
protected addMediaModelTag(tags: Tag[]): Promise<void>;
|
|
47
47
|
/**
|
|
@@ -55,5 +55,5 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
55
55
|
*/
|
|
56
56
|
protected clearUnusedPanelTag(): void;
|
|
57
57
|
/** 加载外部模型 */
|
|
58
|
-
protected loadModel: (tag:
|
|
58
|
+
protected loadModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
|
|
59
59
|
}
|
|
@@ -19,8 +19,8 @@ var C = (f, h, t) => new Promise((e, o) => {
|
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as w } from "./TagComputer.js";
|
|
21
21
|
import { Group as S, Quaternion as O, Vector3 as v, Matrix4 as D } from "three";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
22
|
+
import A from "../Components/TagContainer.js";
|
|
23
|
+
import x from "../Components/Tag/index.js";
|
|
24
24
|
import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
25
|
import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import { isMediaModelTag as P, isStickModelTag as I } from "../utils/tag/tagCheck.js";
|
|
@@ -164,7 +164,7 @@ class ti extends w {
|
|
|
164
164
|
customID: t.id,
|
|
165
165
|
isTagModel: !0,
|
|
166
166
|
removeEventListener: this.addObjectClickHandler(t, r.scene, (g) => {
|
|
167
|
-
|
|
167
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: g });
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
170
|
return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (l = (m = (p = this.config) == null ? void 0 : p.globalConfig) == null ? void 0 : m.modelConfig) != null && l.autoLookAtEnabled && ((d = (c = t.config) == null ? void 0 : c.modelConfig) != null && d.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
|
|
@@ -279,7 +279,7 @@ class ti extends w {
|
|
|
279
279
|
if (!m)
|
|
280
280
|
return;
|
|
281
281
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
282
|
-
const l = new
|
|
282
|
+
const l = new x({
|
|
283
283
|
target: m.container,
|
|
284
284
|
props: {
|
|
285
285
|
tag: e,
|
|
@@ -335,6 +335,8 @@ class ti extends w {
|
|
|
335
335
|
if (!i)
|
|
336
336
|
return;
|
|
337
337
|
const n = P(t) ? t.data.mediaPosition : t.position;
|
|
338
|
+
if (!n || n.length !== 4 || !Array.isArray(n[0]) || !Array.isArray(n[2]))
|
|
339
|
+
return;
|
|
338
340
|
e.updateWorldMatrix(!1, !1);
|
|
339
341
|
const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = G(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
|
|
340
342
|
l.decompose(i.position, i.quaternion, i.scale);
|
|
@@ -360,7 +362,7 @@ class ti extends w {
|
|
|
360
362
|
const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
361
363
|
if (!o)
|
|
362
364
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
363
|
-
this.TagContainerSvelte = new
|
|
365
|
+
this.TagContainerSvelte = new A({
|
|
364
366
|
target: o,
|
|
365
367
|
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
366
368
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TagInstance, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore } from '../typings';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import type { Tag, Tags,
|
|
3
|
+
import type { Tag, Tags, PointTagInstance, Point3DTag } from '../typings';
|
|
4
4
|
import { TagCache } from './TagCache';
|
|
5
5
|
import type { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
|
|
6
6
|
import type { Five } from '@realsee/five';
|
|
7
7
|
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
8
8
|
export declare abstract class TagUtil extends TagCache {
|
|
9
|
-
tags:
|
|
9
|
+
tags: TagInstance[];
|
|
10
10
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
11
11
|
protected mediaStore: MediaStore;
|
|
12
12
|
/** css3DRenderPlugin */
|
|
13
13
|
protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
|
|
14
14
|
protected store: {
|
|
15
15
|
/** 清理函数数组 */
|
|
16
|
-
disposers: (() =>
|
|
16
|
+
disposers: (() => void)[];
|
|
17
17
|
visibleWithAnimation?: boolean;
|
|
18
|
-
css3DRenderDisposer: Map<TagId, (() =>
|
|
18
|
+
css3DRenderDisposer: Map<TagId, (() => void)[]>;
|
|
19
19
|
eventListenerDisposer?: () => void;
|
|
20
20
|
resizeObserverDisposer?: () => void;
|
|
21
21
|
resizeObserverDisposerAdding: boolean;
|
|
@@ -25,20 +25,20 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
25
25
|
protected domEvents: FiveDomEvents;
|
|
26
26
|
private mouseInfo?;
|
|
27
27
|
protected constructor(five: Five);
|
|
28
|
-
getTagById<C extends TagContentType =
|
|
28
|
+
getTagById<C extends TagContentType = TagContentType, S extends StickType = StickType>(id: TagId): TagInstance<C, S> | undefined;
|
|
29
29
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
30
30
|
pauseCurrentMedia(): void;
|
|
31
31
|
/**
|
|
32
32
|
* @description: 获取merge后的配置
|
|
33
33
|
* TODO: 缓存
|
|
34
34
|
*/
|
|
35
|
-
getTagConfig(tag: Tag
|
|
35
|
+
getTagConfig(tag: Tag): TagConfig<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown">;
|
|
36
36
|
protected loadVideoFirstFrame(): void;
|
|
37
37
|
protected updateTagConfig(params?: {
|
|
38
38
|
force?: boolean;
|
|
39
39
|
}): void;
|
|
40
|
-
protected can<T extends
|
|
41
|
-
protected getRenderType(tag:
|
|
40
|
+
protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
|
|
41
|
+
protected getRenderType(tag: TagInstance): 'Dom' | 'Mesh' | 'BehindDom';
|
|
42
42
|
/**
|
|
43
43
|
* @description: 获取角度
|
|
44
44
|
*/
|
|
@@ -46,18 +46,18 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
46
46
|
/**
|
|
47
47
|
* @description: 获取距离
|
|
48
48
|
*/
|
|
49
|
-
protected getDistance(tag:
|
|
50
|
-
protected getPositions(tag:
|
|
49
|
+
protected getDistance(tag: TagInstance, panoIndex?: number): number;
|
|
50
|
+
protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
|
|
51
51
|
protected preventWhenMouseDown: () => false | void;
|
|
52
|
-
protected addObjectClickHandler(tag:
|
|
53
|
-
protected getTagNormal(tag:
|
|
54
|
-
protected get filterPointTag():
|
|
55
|
-
protected get filter2DPointTag():
|
|
56
|
-
protected get filter3DPointTag():
|
|
57
|
-
protected get filterImagePlane():
|
|
58
|
-
protected get filterMediaModel():
|
|
59
|
-
protected get filterModelTag():
|
|
60
|
-
protected get filterCSS3DTag(): (
|
|
52
|
+
protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
53
|
+
protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
|
|
54
|
+
protected get filterPointTag(): PointTagInstance[];
|
|
55
|
+
protected get filter2DPointTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
|
|
56
|
+
protected get filter3DPointTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">[];
|
|
57
|
+
protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
|
|
58
|
+
protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
|
|
59
|
+
protected get filterModelTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model">[];
|
|
60
|
+
protected get filterCSS3DTag(): (TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
61
61
|
/**
|
|
62
62
|
* @description 检查是否已经销毁
|
|
63
63
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -2,8 +2,8 @@ var y = Object.defineProperty;
|
|
|
2
2
|
var D = (c, u, e) => u in c ? y(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
|
|
3
3
|
var l = (c, u, e) => (D(c, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import { objectAssignDeepExports as T } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
5
|
-
import * as
|
|
6
|
-
import { DefaultConfig as
|
|
5
|
+
import * as P from "three";
|
|
6
|
+
import { DefaultConfig as C } from "../tag.config.js";
|
|
7
7
|
import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as p } from "../utils/planeNormal.js";
|
|
9
9
|
import { tagPosition as E, getTagPosition as M } from "../utils/tagPosition.js";
|
|
@@ -11,9 +11,9 @@ import { normalPositionToPositions as k } from "../utils/normalPositionToPositio
|
|
|
11
11
|
import { TagCache as b } from "./TagCache.js";
|
|
12
12
|
import { writable as I } from "../../vendor/svelte/store/index.js";
|
|
13
13
|
import { isIOSWX as A } from "../../shared-utils/device.js";
|
|
14
|
-
import { isMediaPlaneTag as S, isMediaModelTag as g, isPlaneTag as V } from "../utils/tag/tagCheck.js";
|
|
15
|
-
import { VideoPlane as
|
|
16
|
-
import { FiveDomEvents as
|
|
14
|
+
import { isMediaPlaneTag as S, isMediaModelTag as g, isPlaneTag as V, isPoint3DTag as F } from "../utils/tag/tagCheck.js";
|
|
15
|
+
import { VideoPlane as L } from "../utils/model/mediaPlane.js";
|
|
16
|
+
import { FiveDomEvents as R } from "../../shared-utils/five/FiveDomEvents.js";
|
|
17
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
18
18
|
import "../../base/BasePlugin.js";
|
|
19
19
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -41,11 +41,11 @@ import "../Assets/Icon.js";
|
|
|
41
41
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
42
42
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
43
43
|
import "../../shared-utils/threex/domevents/index.js";
|
|
44
|
-
class
|
|
44
|
+
class Pe extends b {
|
|
45
45
|
constructor(e) {
|
|
46
46
|
super(e);
|
|
47
47
|
l(this, "tags", []);
|
|
48
|
-
l(this, "config",
|
|
48
|
+
l(this, "config", C);
|
|
49
49
|
l(this, "mediaStore", I({
|
|
50
50
|
currentMediaElement: null
|
|
51
51
|
}));
|
|
@@ -57,7 +57,7 @@ class De extends b {
|
|
|
57
57
|
resizeObserverDisposerAdding: !1,
|
|
58
58
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
59
59
|
});
|
|
60
|
-
l(this, "domEvents", new
|
|
60
|
+
l(this, "domEvents", new R(this.five));
|
|
61
61
|
l(this, "mouseInfo");
|
|
62
62
|
l(this, "preventWhenMouseDown", () => {
|
|
63
63
|
var e;
|
|
@@ -67,7 +67,7 @@ class De extends b {
|
|
|
67
67
|
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
68
68
|
this.tags.forEach((t) => {
|
|
69
69
|
var o;
|
|
70
|
-
if (t.mediaPlane instanceof
|
|
70
|
+
if (t.mediaPlane instanceof L && i !== t.mediaPlane.videoInstance) {
|
|
71
71
|
if (!((o = t.mediaPlane.videoInstance) != null && o.src) || i === t.mediaPlane.videoInstance)
|
|
72
72
|
return;
|
|
73
73
|
t.mediaPlane.pause();
|
|
@@ -134,7 +134,6 @@ class De extends b {
|
|
|
134
134
|
i.mergedConfig = t, i.data = T({}, i.data, t.initialData);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
// eslint-disable-next-line complexity
|
|
138
137
|
can(e, i) {
|
|
139
138
|
const t = i, o = this.getTagConfig(t);
|
|
140
139
|
if (!o || typeof o != "object")
|
|
@@ -192,7 +191,7 @@ class De extends b {
|
|
|
192
191
|
const s = E(e.position);
|
|
193
192
|
if (!s)
|
|
194
193
|
return;
|
|
195
|
-
const n = new
|
|
194
|
+
const n = new P.Vector3().copy(r).sub(s), m = f.angleTo(n) * 180 / Math.PI;
|
|
196
195
|
return o.angle = m, o.angle;
|
|
197
196
|
}
|
|
198
197
|
}
|
|
@@ -223,12 +222,8 @@ class De extends b {
|
|
|
223
222
|
return e.position;
|
|
224
223
|
if (g(e))
|
|
225
224
|
return e.data.mediaPosition;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
this.five.camera.position,
|
|
229
|
-
h(i.position),
|
|
230
|
-
h(i.normal)
|
|
231
|
-
);
|
|
225
|
+
if (F(e))
|
|
226
|
+
return k(this.five.camera.position, h(e.position), h(e.normal));
|
|
232
227
|
}
|
|
233
228
|
addObjectClickHandler(e, i, t) {
|
|
234
229
|
if (!i || !this.domEvents)
|
|
@@ -307,7 +302,9 @@ class De extends b {
|
|
|
307
302
|
return this.tags.filter((e) => e.stickType === "Model");
|
|
308
303
|
}
|
|
309
304
|
get filterCSS3DTag() {
|
|
310
|
-
return this.tags.filter(
|
|
305
|
+
return this.tags.filter(
|
|
306
|
+
(i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
|
|
307
|
+
).filter((i) => {
|
|
311
308
|
const t = this.getRenderType(i);
|
|
312
309
|
return t === "BehindDom" || t === "Dom";
|
|
313
310
|
});
|
|
@@ -321,5 +318,5 @@ class De extends b {
|
|
|
321
318
|
}
|
|
322
319
|
}
|
|
323
320
|
export {
|
|
324
|
-
|
|
321
|
+
Pe as TagUtil
|
|
325
322
|
};
|