@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,7 +1,7 @@
|
|
|
1
|
-
import type { Tag,
|
|
1
|
+
import type { Tag, TagId, Tags, TagInstance, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey, TagConfig, PartialObjectDeep } from '../typings';
|
|
2
2
|
import type { PickTagContentTypeInContentTypeConfigKey, TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
|
-
import { Five } from '@realsee/five';
|
|
4
|
+
import { type Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
6
6
|
export declare const pluginFlag: (name: string) => string;
|
|
7
7
|
declare class PanoTagPluginController extends TagRender {
|
|
@@ -25,7 +25,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
25
25
|
/**
|
|
26
26
|
* @description: 添加标签
|
|
27
27
|
*/
|
|
28
|
-
addTag(tag: Tag
|
|
28
|
+
addTag(tag: Tag | Tag[], paramsConfig?: AddTagConfig): Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* @description: 改变配置
|
|
31
31
|
*/
|
|
@@ -69,23 +69,23 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
69
69
|
/**
|
|
70
70
|
* @description: 改变data
|
|
71
71
|
*/
|
|
72
|
-
changeDataById<C extends TagContentType =
|
|
72
|
+
changeDataById<C extends TagContentType = TagContentType>(id: TagId, data: PartialObjectDeep<Tag<C>['data']>, deepMerge?: boolean): void;
|
|
73
73
|
/**
|
|
74
74
|
* @description: 改变tag的stickType
|
|
75
75
|
*/
|
|
76
|
-
changeStickTypeById<C extends TagContentType =
|
|
76
|
+
changeStickTypeById<C extends TagContentType = TagContentType>(id: TagId, data: PartialObjectDeep<{
|
|
77
77
|
[P in keyof Pick<Tag<C>, 'stickType' | 'position' | 'normal' | 'data'>]: Tag[P];
|
|
78
78
|
}>, deepMerge?: boolean): void;
|
|
79
79
|
/**
|
|
80
80
|
* @description: 改变tag任意属性
|
|
81
81
|
*/
|
|
82
|
-
changeTagById<C extends TagContentType =
|
|
82
|
+
changeTagById<C extends TagContentType = TagContentType>(id: TagId, tag: PartialObjectDeep<Tag<C>>, deepMerge?: boolean): void;
|
|
83
83
|
/**
|
|
84
84
|
* @description: 销毁tag
|
|
85
85
|
*/
|
|
86
86
|
destroyTagById(id: TagId | TagId[]): void;
|
|
87
87
|
/** 更改 tag 模型 */
|
|
88
|
-
changeTagModel: (tag:
|
|
88
|
+
changeTagModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>, data: PartialObjectDeep<Tag<'MediaModel'>['data']>) => Promise<void>;
|
|
89
89
|
/**
|
|
90
90
|
* @description: 设置 visible 和 unfolded
|
|
91
91
|
*/
|
|
@@ -199,7 +199,7 @@ class ci extends N {
|
|
|
199
199
|
load(e, t) {
|
|
200
200
|
return f(this, null, function* () {
|
|
201
201
|
var s, o;
|
|
202
|
-
this.clearTags(), console.
|
|
202
|
+
this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
|
|
203
203
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
204
204
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
205
205
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
2
|
import { pluginFlag as Ar } from "./controller/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DimensionType as Er } from "./typings/tag/Utils.js";
|
|
4
|
+
import { ContentType as Hr } from "./typings/tag/TagData.js";
|
|
5
|
+
import { PointType as Jr } from "./Archive/deprecated.js";
|
|
5
6
|
import "three";
|
|
6
7
|
import "@realsee/five";
|
|
7
8
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -135,10 +136,11 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
135
136
|
import "../shared-utils/animationFrame/index.js";
|
|
136
137
|
const qr = (o, r) => new t(o, r);
|
|
137
138
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
Hr as ContentType,
|
|
140
|
+
Er as DimensionType,
|
|
140
141
|
qr as PanoTagPlugin,
|
|
141
142
|
t as PanoTagPluginController,
|
|
143
|
+
Jr as PointType,
|
|
142
144
|
qr as default,
|
|
143
145
|
Ar as pluginFlag
|
|
144
146
|
};
|
|
@@ -25,22 +25,22 @@ export interface EventMap extends BasePlugin.EventMap<State> {
|
|
|
25
25
|
event: Event;
|
|
26
26
|
} & ({
|
|
27
27
|
target: 'TagPoint';
|
|
28
|
-
tag:
|
|
28
|
+
tag: PointTagInstance;
|
|
29
29
|
} | {
|
|
30
30
|
target: 'TagContent';
|
|
31
|
-
tag:
|
|
31
|
+
tag: TagInstance;
|
|
32
32
|
} | {
|
|
33
33
|
target: 'AudioTagPlayIcon';
|
|
34
|
-
tag:
|
|
34
|
+
tag: TagInstance;
|
|
35
35
|
audioInstance: HTMLAudioElement;
|
|
36
36
|
} | {
|
|
37
37
|
target: 'TagModel';
|
|
38
|
-
tag:
|
|
38
|
+
tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>;
|
|
39
39
|
})) => void;
|
|
40
40
|
playStateChange: (params: {
|
|
41
41
|
event: Event;
|
|
42
42
|
state: 'playing' | 'paused';
|
|
43
|
-
tag:
|
|
43
|
+
tag: TagInstance;
|
|
44
44
|
mediaInstance: HTMLMediaElement;
|
|
45
45
|
}) => void;
|
|
46
46
|
exposure: (params: {
|
|
@@ -82,8 +82,8 @@ export interface TagCacheInterface {
|
|
|
82
82
|
reason?: string;
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
export type
|
|
86
|
-
|
|
85
|
+
export type TagInstance<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
|
|
86
|
+
screenPosition: {
|
|
87
87
|
leftPercent: number;
|
|
88
88
|
topPercent: number;
|
|
89
89
|
} | null;
|
|
@@ -113,7 +113,7 @@ export type TagElement<C extends TagContentType = TagContentType, S extends Stic
|
|
|
113
113
|
unfolded: boolean;
|
|
114
114
|
};
|
|
115
115
|
hooks: Subscribe<TagEvents>;
|
|
116
|
-
mergedConfig: TagConfig<C
|
|
116
|
+
mergedConfig: TagConfig<C>;
|
|
117
117
|
unfold: () => void;
|
|
118
118
|
fold: () => void;
|
|
119
119
|
enable: () => void;
|
|
@@ -123,9 +123,5 @@ export type TagElement<C extends TagContentType = TagContentType, S extends Stic
|
|
|
123
123
|
export type MediaStore = Writable<{
|
|
124
124
|
currentMediaElement: HTMLMediaElement | null;
|
|
125
125
|
}>;
|
|
126
|
-
export type
|
|
127
|
-
export type PlaneTagElement<C extends TagContentType = TagContentType> = TagElement<C, 'Plane'>;
|
|
128
|
-
export type Point2DElement<C extends TagContentType = TagContentType> = TagElement<C, '2DPoint'>;
|
|
129
|
-
export type Point3DElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint'>;
|
|
130
|
-
export type ModelElement<C extends TagContentType = TagContentType> = TagElement<C, 'Model'>;
|
|
126
|
+
export type PointTagInstance<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint' | '2DPoint'>;
|
|
131
127
|
export {};
|
|
@@ -3,4 +3,5 @@ export * from './tag/Tag';
|
|
|
3
3
|
export * from './tag/Utils';
|
|
4
4
|
export * from './tag/TagData';
|
|
5
5
|
export * from './tag/TagConfig';
|
|
6
|
-
export
|
|
6
|
+
export * from '../Archive/deprecated';
|
|
7
|
+
export type { ContentTypeMap, TagContentType } from './tag/TagData';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DimensionType as p } from "./tag/Utils.js";
|
|
2
|
+
import { ContentType as t } from "./tag/TagData.js";
|
|
3
|
+
import { PointType as m } from "../Archive/deprecated.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
t as ContentType,
|
|
6
|
+
p as DimensionType,
|
|
7
|
+
m as PointType
|
|
6
8
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { State as FiveState } from '@realsee/five';
|
|
2
2
|
import type { TagConfig } from './TagConfig';
|
|
3
|
-
import {
|
|
3
|
+
import type { ContentTypeMap, TagContentType } from './TagData';
|
|
4
4
|
import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
|
|
5
|
-
import {
|
|
6
|
-
export type { ContentTypeMap, TagContentType };
|
|
7
|
-
export { ContentType };
|
|
5
|
+
import type { DeprecatedTagProperty } from '../../Archive/deprecated';
|
|
8
6
|
export interface Tags {
|
|
9
7
|
version?: string;
|
|
10
8
|
/** tag配置 > 按type配置 > 全局配置 */
|
|
@@ -15,13 +13,13 @@ export interface Tags {
|
|
|
15
13
|
[key in ContentTypeConfigKey]?: PickTagContentTypeInContentTypeConfigKey<key> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<key>> : unknown;
|
|
16
14
|
};
|
|
17
15
|
/** 标签列表配置 */
|
|
18
|
-
tagList: Tag
|
|
16
|
+
tagList: Tag[];
|
|
19
17
|
}
|
|
20
18
|
export type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = DeprecatedTagProperty & {
|
|
21
19
|
/** 开启/禁用 */
|
|
22
20
|
enabled?: boolean;
|
|
23
21
|
/** 唯一标识 */
|
|
24
|
-
id
|
|
22
|
+
id?: TagId;
|
|
25
23
|
/** @type {StickType} 附着方式 */
|
|
26
24
|
stickType: S;
|
|
27
25
|
/** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
|
|
@@ -35,9 +33,9 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
|
|
|
35
33
|
/** 标签 wrapper 的 classname */
|
|
36
34
|
className?: string;
|
|
37
35
|
/** 标签数据 */
|
|
38
|
-
data
|
|
36
|
+
data?: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
|
|
39
37
|
/** 「展开/收起」 「可见/不可见」 的策略配置 */
|
|
40
|
-
config?: TagConfig<C
|
|
38
|
+
config?: TagConfig<C>;
|
|
41
39
|
/** 打标签时的 five state */
|
|
42
40
|
fiveState?: FiveState;
|
|
43
41
|
/** 样式 */
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import type { Create3DDomContainerParamsType } from '../../../CSS3DRenderPlugin/Controller';
|
|
2
2
|
import type { Five, Mode } from '@realsee/five';
|
|
3
3
|
import type { ContentTypeMap, TagContentType } from './TagData';
|
|
4
|
-
import type {
|
|
5
|
-
import type { MinMax, StickType } from './Utils';
|
|
4
|
+
import type { MinMax } from './Utils';
|
|
6
5
|
import type { PartialDeep } from 'type-fest';
|
|
7
|
-
|
|
6
|
+
import type { TagInstance } from '../controller';
|
|
7
|
+
type PartialObjectDeep<ObjectType extends object> = {
|
|
8
|
+
[KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType]>;
|
|
9
|
+
};
|
|
10
|
+
type ConfigFunction<C extends TagContentType = TagContentType> = (five: Five, tagState: {
|
|
11
|
+
tag: TagInstance<C>;
|
|
12
|
+
/** 标签点或中心点的到摄像机的距离 */
|
|
13
|
+
distance: number;
|
|
14
|
+
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
15
|
+
angleRange?: number;
|
|
16
|
+
}) => boolean;
|
|
17
|
+
export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
8
18
|
/** 显示/隐藏配置 */
|
|
9
19
|
visibleConfig?: {
|
|
10
20
|
/**
|
|
@@ -61,13 +71,7 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
|
|
|
61
71
|
* @default undefined
|
|
62
72
|
*/
|
|
63
73
|
angleRange?: MinMax;
|
|
64
|
-
} |
|
|
65
|
-
tag: Tag<C, S>;
|
|
66
|
-
/** 标签点或中心点的到摄像机的距离 */
|
|
67
|
-
distance: number;
|
|
68
|
-
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
69
|
-
angleRange?: number;
|
|
70
|
-
}) => boolean);
|
|
74
|
+
} | ConfigFunction<C>;
|
|
71
75
|
/** 展开/收起配置 */
|
|
72
76
|
unfoldedConfig?: {
|
|
73
77
|
/** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
|
|
@@ -108,13 +112,7 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
|
|
|
108
112
|
/** 展开的最大距离, 默认为无限制 */
|
|
109
113
|
distance?: MinMax;
|
|
110
114
|
};
|
|
111
|
-
} |
|
|
112
|
-
tag: Tag<C, S>;
|
|
113
|
-
/** 标签点或中心点的到摄像机的距离 */
|
|
114
|
-
distance: number;
|
|
115
|
-
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
116
|
-
angleRange?: number;
|
|
117
|
-
}) => boolean);
|
|
115
|
+
} | ConfigFunction<C>;
|
|
118
116
|
/** 初始状态 */
|
|
119
117
|
initialState?: {
|
|
120
118
|
/** 显示/隐藏 */
|
|
@@ -122,7 +120,7 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
|
|
|
122
120
|
/** 展开/收起 */
|
|
123
121
|
unfolded?: boolean;
|
|
124
122
|
};
|
|
125
|
-
initialData?:
|
|
123
|
+
initialData?: PartialObjectDeep<ContentTypeMap[C]>;
|
|
126
124
|
tag3DConfig?: Create3DDomContainerParamsType['config'];
|
|
127
125
|
modelConfig?: {
|
|
128
126
|
autoLookAtEnabled?: boolean;
|
|
@@ -131,3 +129,4 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
|
|
|
131
129
|
renderType?: 'Mesh' | 'Dom';
|
|
132
130
|
clickable?: false;
|
|
133
131
|
}
|
|
132
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DeprecatedMediaPlaneProperty } from '../../Archive/deprecated';
|
|
2
2
|
import type { Position, TagIconUrl } from './Utils';
|
|
3
3
|
export type MediaData = {
|
|
4
4
|
type: 'Image';
|
|
@@ -10,6 +10,7 @@ export type MediaData = {
|
|
|
10
10
|
};
|
|
11
11
|
export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
12
12
|
type Object = Record<string | number | symbol, any>;
|
|
13
|
+
/** @deprecated Use {@link TagContentType} instead */
|
|
13
14
|
export declare enum ContentType {
|
|
14
15
|
/** 音频标签 */
|
|
15
16
|
Audio = "Audio",
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { GLTFObject } from '@realsee/five/gltf-loader';
|
|
2
2
|
import type { Group } from 'three';
|
|
3
|
-
import type { Tag } from './Tag';
|
|
4
3
|
import type { TagContentType } from './TagData';
|
|
5
4
|
import type { ImagePlane } from '../../utils/model/mediaPlane';
|
|
5
|
+
import type { TagInstance } from '../controller';
|
|
6
|
+
import type { PartialDeep } from 'type-fest';
|
|
6
7
|
export type TagId = string | number;
|
|
7
8
|
export type ArrayPosition = number[];
|
|
8
9
|
export type Position = ArrayPosition;
|
|
9
10
|
export type PanoIndex = number;
|
|
10
11
|
export type WorkCode = string;
|
|
12
|
+
export type PartialObjectDeep<ObjectType extends object> = {
|
|
13
|
+
[KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType]>;
|
|
14
|
+
};
|
|
11
15
|
export interface MinMax {
|
|
12
16
|
min?: number;
|
|
13
17
|
max?: number;
|
|
@@ -62,21 +66,21 @@ export interface ImagePlaneGroup extends Group {
|
|
|
62
66
|
* @description S: 18; M: 20; L: 24; XL: 28
|
|
63
67
|
*/
|
|
64
68
|
export type TagIconSize = 'S' | 'M' | 'L' | 'XL' | number;
|
|
65
|
-
export type AudioAppearance =
|
|
69
|
+
export type AudioAppearance = TagInstance<'Audio'>['data']['appearance'];
|
|
66
70
|
export type AudioTagTypeConfigKey = `${StickType | 'Any'}-Audio-${AudioAppearance}`;
|
|
67
71
|
export type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey;
|
|
68
72
|
/**
|
|
69
|
-
* @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的
|
|
73
|
+
* @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥,没找到就是 never
|
|
70
74
|
*/
|
|
71
75
|
export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
|
|
72
76
|
export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
|
|
73
|
-
export type PointTag<C extends TagContentType = TagContentType> =
|
|
77
|
+
export type PointTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint' | '3DPoint'>;
|
|
74
78
|
/** 二维标签 */
|
|
75
|
-
export type Point2DTag<C extends TagContentType = TagContentType> =
|
|
79
|
+
export type Point2DTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint'>;
|
|
76
80
|
/** 三维标签 */
|
|
77
|
-
export type Point3DTag<C extends TagContentType = TagContentType> =
|
|
81
|
+
export type Point3DTag<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint'>;
|
|
78
82
|
/** 三维贴片 */
|
|
79
|
-
export type PlaneTag<C extends TagContentType = TagContentType> =
|
|
83
|
+
export type PlaneTag<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
|
|
80
84
|
/** @deprecated 'Tag2D' replaced by pointType: 'Point2DTag' */
|
|
81
85
|
export type Tag2D<C extends TagContentType = TagContentType> = Point2DTag<C>;
|
|
82
86
|
/** @deprecated 'Tag3D' replaced by pointType: 'Point3DTag' */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
|
-
import {
|
|
4
|
-
import DomEvents from '../../../shared-utils/threex/domevents';
|
|
5
|
-
import {
|
|
3
|
+
import type { ObjectFit } from '../../typings';
|
|
4
|
+
import type DomEvents from '../../../shared-utils/threex/domevents';
|
|
5
|
+
import type { Overwrite } from '../../../typings/utils.type';
|
|
6
6
|
type Src = string;
|
|
7
7
|
type VideoTexture = Overwrite<THREE.VideoTexture, {
|
|
8
8
|
image: HTMLVideoElement;
|
|
@@ -50,7 +50,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
50
50
|
play(muted?: boolean): Promise<void>;
|
|
51
51
|
pause(): void;
|
|
52
52
|
initialDomEvents(domEvents: DomEvents): void;
|
|
53
|
-
initialRenderHooks(func: (render: () => void) => () =>
|
|
53
|
+
initialRenderHooks(func: (render: () => void) => () => void): void;
|
|
54
54
|
private showPlayUI;
|
|
55
55
|
private showPauseUI;
|
|
56
56
|
private render;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { anyPositionToVector3 as
|
|
1
|
+
import { anyPositionToVector3 as e } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
2
2
|
import "three";
|
|
3
|
-
function i(
|
|
4
|
-
if (
|
|
3
|
+
function i(r) {
|
|
4
|
+
if (!r || r.length < 3)
|
|
5
5
|
return;
|
|
6
|
-
const o =
|
|
7
|
-
return
|
|
6
|
+
const o = r.map(e), t = o[1].clone().sub(o[0]), n = o[2].clone().sub(o[1]);
|
|
7
|
+
return t.cross(n);
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
i as planeNormal
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function isPointTag(tag:
|
|
3
|
-
export declare function isPlaneTag(tag:
|
|
4
|
-
export declare function isPoint2DTag(tag:
|
|
5
|
-
export declare function isPoint3DTag(tag:
|
|
6
|
-
export declare function is2DTag(tag:
|
|
7
|
-
export declare function is3DTag(tag:
|
|
8
|
-
export declare function isMediaModelTag(tag:
|
|
9
|
-
export declare function isModelTag(tag:
|
|
10
|
-
export declare function isStickModelTag(tag:
|
|
11
|
-
export declare function isMediaPlaneTag(tag:
|
|
1
|
+
import type { TagContentType, TagInstance } from '../../typings';
|
|
2
|
+
export declare function isPointTag(tag: TagInstance): boolean;
|
|
3
|
+
export declare function isPlaneTag<T extends TagContentType>(tag: TagInstance<T>): tag is TagInstance<T, 'Plane'>;
|
|
4
|
+
export declare function isPoint2DTag(tag: TagInstance): boolean;
|
|
5
|
+
export declare function isPoint3DTag<T extends TagContentType>(tag: TagInstance<T>): tag is TagInstance<T, '3DPoint'>;
|
|
6
|
+
export declare function is2DTag(tag: TagInstance): boolean;
|
|
7
|
+
export declare function is3DTag<T extends TagContentType>(tag: TagInstance): tag is TagInstance<T, '3DPoint'> | TagInstance<T, 'Plane'>;
|
|
8
|
+
export declare function isMediaModelTag(tag: TagInstance): tag is TagInstance<'MediaModel', 'Model'>;
|
|
9
|
+
export declare function isModelTag(tag: TagInstance): tag is TagInstance<'Model', 'Model'>;
|
|
10
|
+
export declare function isStickModelTag(tag: TagInstance): tag is TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>;
|
|
11
|
+
export declare function isMediaPlaneTag(tag: TagInstance): tag is TagInstance<'MediaModel', 'Model'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 } from 'three';
|
|
2
2
|
import { type AnyPosition } from '.';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TagInstance } from '../typings';
|
|
4
4
|
export declare function tagPosition(position: AnyPosition | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
|
|
5
|
-
export declare function getTagPosition(tag:
|
|
5
|
+
export declare function getTagPosition(tag: TagInstance): Vector3;
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -8,13 +8,13 @@ import "@realsee/five";
|
|
|
8
8
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
10
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
11
|
-
import { isAbsoluteURL as
|
|
11
|
+
import { isAbsoluteURL as l } from "../shared-utils/isAbsoluteURL.js";
|
|
12
12
|
let n = class {
|
|
13
13
|
constructor(t, r) {
|
|
14
14
|
/**
|
|
15
15
|
* @realsee/dnalogel 版本号
|
|
16
16
|
*/
|
|
17
|
-
e(this, "VERSION", "2.
|
|
17
|
+
e(this, "VERSION", "2.20.0-alpha.0");
|
|
18
18
|
e(this, "five");
|
|
19
19
|
/**
|
|
20
20
|
* 插件事件钩子
|
|
@@ -30,7 +30,7 @@ let n = class {
|
|
|
30
30
|
return this.state;
|
|
31
31
|
}
|
|
32
32
|
isAbsoluteURL(t) {
|
|
33
|
-
return
|
|
33
|
+
return l(t) ? t : `${this.staticPrefix}${t}`;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
export {
|
package/libs/index.js
CHANGED
|
@@ -4,14 +4,14 @@ import { PaintBrush as mp } from "./components/PaintBrush/index.js";
|
|
|
4
4
|
import { PaintBrushTypeEnum as ep } from "./components/PaintBrush/typings.js";
|
|
5
5
|
import { ModelViewPlugin as lp } from "./ModelViewPlugin/Plugin.js";
|
|
6
6
|
import { CSS3DRenderPlugin as Pp } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
7
|
+
import { PanoCursorRaycasterPlugin as up } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
8
|
import { ModelRoomLabelPlugin as gp, modelRoomLabelPluginServerParams as sp } from "./ModelRoomLabelPlugin/index.js";
|
|
9
9
|
import { FLOOR_PLAN_ATTACHED_TO as Mp } from "./floorplan/constant.js";
|
|
10
10
|
import { ModelFloorplanPlugin as Lp } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
11
|
import { MapviewFloorplanPlugin as _p } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
12
|
import { TopviewFloorplanPlugin as Rp } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
13
|
import { PanoFloorplanRadarPlugin as Op } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
14
|
+
import { FLOOR_TYPE_MAP as Sp, ROOM_FETILE_TYPE_MAP as Ap, ROOM_TYPE_MAP as Dp } from "./floorplan/typings/floorplanServerData.js";
|
|
15
15
|
import { ModelChassisCompassPlugin as bp } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
16
|
import { ModelEntryDoorGuidePlugin as Yp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
17
|
import { CameraMovementPlugin as cp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
@@ -29,14 +29,14 @@ import { PanoDoorLabelPlugin as me } from "./PanoDoorLabelPlugin/index.js";
|
|
|
29
29
|
import { GuideLinePlugin as ee } from "./GuideLinePlugin/index.js";
|
|
30
30
|
import { CruisePlugin as le } from "./CruisePlugin/index.js";
|
|
31
31
|
import { PanoTagPlugin as Pe } from "./PanoTagPlugin/index.js";
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
32
|
+
import { Object3DHelperPlugin as ue } from "./Object3DHelperPlugin/index.js";
|
|
33
33
|
import { PanoVideoPlugin as ge } from "./PanoVideoPlugin/index.js";
|
|
34
34
|
import { index as de } from "./shared-utils/index.js";
|
|
35
35
|
import { CSS3DRender as Te } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
36
|
import { Model as Ce } from "./PanoMeasurePlugin/Model/index.js";
|
|
37
37
|
import { default as Ee } from "./PanoMeasurePlugin/Model/point.js";
|
|
38
38
|
import { default as Ie } from "./PanoMeasurePlugin/Model/line.js";
|
|
39
|
-
import { Polyline as
|
|
39
|
+
import { Polyline as ye } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
40
40
|
import { default as Ae } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
41
41
|
import { DISPLAY_STRATEGY_TYPE as Ge } from "./ModelItemLabelPlugin/typings.js";
|
|
42
42
|
import { ModelItemLabelPlugin as Fe } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
@@ -47,10 +47,11 @@ import { GuideLineModeItem$1 as Be } from "./GuideLinePlugin/GuideLineModeItem/i
|
|
|
47
47
|
import { default as Ue } from "./CruisePlugin/Controller.js";
|
|
48
48
|
import { typing as $e } from "./CruisePlugin/typing/index.js";
|
|
49
49
|
import { default as qe, pluginFlag as ze } from "./PanoTagPlugin/controller/index.js";
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
50
|
+
import { DimensionType as Ke } from "./PanoTagPlugin/typings/tag/Utils.js";
|
|
51
|
+
import { ContentType as We } from "./PanoTagPlugin/typings/tag/TagData.js";
|
|
52
|
+
import { PointType as Ze } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
53
|
+
import { Object3DHelperController as rn, PLUGIN as tn } from "./Object3DHelperPlugin/Controller.js";
|
|
54
|
+
import { typings as pn } from "./PanoVideoPlugin/typings/index.js";
|
|
54
55
|
import "./components/PaintBrush/Controller.js";
|
|
55
56
|
import "./components/PaintBrush/utils.js";
|
|
56
57
|
import "./components/PaintBrush/tween.js";
|
|
@@ -379,15 +380,15 @@ export {
|
|
|
379
380
|
Pp as CSS3DRenderPlugin,
|
|
380
381
|
Np as CameraMovementEffect,
|
|
381
382
|
cp as CameraMovementPlugin,
|
|
382
|
-
|
|
383
|
+
We as ContentType,
|
|
383
384
|
le as CruisePlugin,
|
|
384
385
|
Ue as CruisePluginController,
|
|
385
386
|
$e as CruisePluginTypes,
|
|
386
387
|
oe as DIRECTION,
|
|
387
388
|
Ge as DISPLAY_STRATEGY_TYPE,
|
|
388
|
-
|
|
389
|
+
Ke as DimensionType,
|
|
389
390
|
Mp as FLOOR_PLAN_ATTACHED_TO,
|
|
390
|
-
|
|
391
|
+
Sp as FLOOR_TYPE_MAP,
|
|
391
392
|
he as GuideLineItem,
|
|
392
393
|
Be as GuideLineModeItem,
|
|
393
394
|
ee as GuideLinePlugin,
|
|
@@ -402,27 +403,28 @@ export {
|
|
|
402
403
|
gp as ModelRoomLabelPlugin,
|
|
403
404
|
Xp as ModelTVVideoPlugin,
|
|
404
405
|
lp as ModelViewPlugin,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
rn as Object3DHelperController,
|
|
407
|
+
ue as Object3DHelperPlugin,
|
|
408
|
+
tn as PLUGIN,
|
|
408
409
|
mp as PaintBrush,
|
|
409
410
|
ep as PaintBrushTypeEnum,
|
|
410
411
|
$p as PanoCompassPlugin,
|
|
411
|
-
|
|
412
|
+
up as PanoCursorRaycasterPlugin,
|
|
412
413
|
me as PanoDoorLabelPlugin,
|
|
413
414
|
Op as PanoFloorplanRadarPlugin,
|
|
414
415
|
qp as PanoMeasurePlugin,
|
|
415
416
|
Ie as PanoMeasurePluginLine,
|
|
416
417
|
Ce as PanoMeasurePluginModel,
|
|
417
418
|
Ee as PanoMeasurePluginPoint,
|
|
418
|
-
|
|
419
|
+
ye as PanoMeasurePluginPolyline,
|
|
419
420
|
Bp as PanoRulerPlugin,
|
|
420
421
|
Up as PanoRulerProPlugin,
|
|
421
422
|
Jp as PanoSpatialTagPlugin,
|
|
422
423
|
Pe as PanoTagPlugin,
|
|
423
424
|
qe as PanoTagPluginController,
|
|
424
425
|
ge as PanoVideoPlugin,
|
|
425
|
-
|
|
426
|
+
pn as PanoVideoPluginType,
|
|
427
|
+
Ze as PointType,
|
|
426
428
|
Ap as ROOM_FETILE_TYPE_MAP,
|
|
427
429
|
Dp as ROOM_TYPE_MAP,
|
|
428
430
|
hp as Rotation,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.info(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.20.0-alpha.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.20.0-alpha.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|