@realsee/dnalogel 2.9.0-1 → 2.9.0-2
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/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +6 -6
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -1
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +4118 -4089
- package/dist/index.umd.js +38 -38
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +51 -51
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/PanoVideoPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +13 -13
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +1 -0
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +9 -4
- package/libs/PanoTagPlugin/Components/Common/Media.js +23 -23
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +90 -90
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +11 -12
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +183 -145
- package/libs/PanoTagPlugin/Components/Tag/index.js +111 -112
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/TagComputer.js +10 -7
- package/libs/PanoTagPlugin/controller/index.js +5 -6
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +6 -6
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/px2rem.js +3 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +16 -17
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/index.js +104 -105
- package/package.json +5 -3
- package/dist/PanoTagPlugin/utils/color.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as ur, pluginFlag as Tr } from "./controller/index.js";
|
|
3
3
|
import "@realsee/five/gltf-loader";
|
|
4
|
-
import { ContentType as
|
|
5
|
-
import { DimensionType as
|
|
4
|
+
import { ContentType as xr } from "./typings/tag/TagData.js";
|
|
5
|
+
import { DimensionType as Cr, PointType as dr } from "./typings/tag/Utils.js";
|
|
6
6
|
import "@realsee/five";
|
|
7
7
|
import "three";
|
|
8
8
|
import "object-assign-deep";
|
|
@@ -91,7 +91,6 @@ import "../shared-utils/audio.js";
|
|
|
91
91
|
import "./utils/audio/SharedAudio.js";
|
|
92
92
|
import "./Components/Common/Icon/audioIcon.js";
|
|
93
93
|
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
94
|
-
import "./utils/color.js";
|
|
95
94
|
import "./Components/Tag/MediaPlane.js";
|
|
96
95
|
import "./Components/Tag/LinkTag.js";
|
|
97
96
|
import "./Components/Common/Icon/Icon.js";
|
|
@@ -116,13 +115,13 @@ import "../CSS3DRenderPlugin/Controller.js";
|
|
|
116
115
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
117
116
|
import "./utils/tag/format.js";
|
|
118
117
|
import "../shared-utils/three/GLTFLoader.js";
|
|
119
|
-
const
|
|
118
|
+
const gr = (o, r) => new t(o, r);
|
|
120
119
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
xr as ContentType,
|
|
121
|
+
Cr as DimensionType,
|
|
122
|
+
gr as PanoTagPlugin,
|
|
123
|
+
ur as PanoTagPluginController,
|
|
124
|
+
dr as PointType,
|
|
125
|
+
gr as default,
|
|
126
|
+
Tr as pluginFlag
|
|
128
127
|
};
|
|
@@ -70,11 +70,7 @@ interface ContentTypeMapInterface {
|
|
|
70
70
|
title?: string;
|
|
71
71
|
/** @description: 'line' 是旧的那种有一条线的,默认为'line', 'plane' 是新的那种圆形的 */
|
|
72
72
|
appearance?: 'line' | 'plane';
|
|
73
|
-
|
|
74
|
-
* @description: dark | light | string color.
|
|
75
|
-
* @example color: 'dark' | 'light' | '#000' | 'rgb(0,0,0)' | 'rgba(0,0,0,0)' | 'red'
|
|
76
|
-
*/
|
|
77
|
-
backgroundColor?: 'dark' | 'light' | string;
|
|
73
|
+
theme?: 'dark' | 'light';
|
|
78
74
|
audioUrl: string;
|
|
79
75
|
extraData?: Object;
|
|
80
76
|
};
|
|
@@ -120,9 +116,13 @@ interface ContentTypeMapInterface {
|
|
|
120
116
|
headerPictureUrl?: string;
|
|
121
117
|
/** 跳转文字 */
|
|
122
118
|
highlightText?: string;
|
|
119
|
+
/** 主题 */
|
|
120
|
+
theme?: 'dark' | 'light';
|
|
121
|
+
/** 限制营销标签大小 */
|
|
122
|
+
limitWidth?: boolean | number;
|
|
123
123
|
/** 价格 */
|
|
124
124
|
price?: {
|
|
125
|
-
value: string;
|
|
125
|
+
value: string | number;
|
|
126
126
|
/** 单位 */
|
|
127
127
|
unit: string;
|
|
128
128
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function px2rem(
|
|
1
|
+
export default function px2rem(value: number | string): string;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { Matrix4 as
|
|
1
|
+
import { Matrix4 as m, Vector3 as a } from "three";
|
|
2
2
|
import { centerPoint as n } from "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
3
|
-
import { anyPositionToVector3 as
|
|
3
|
+
import { anyPositionToVector3 as i } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
4
4
|
import "@realsee/five/gltf-loader";
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { isMediaModelTag as s } from "./tag/tagCheck.js";
|
|
6
|
+
function p(r) {
|
|
7
|
+
if (!!r)
|
|
8
|
+
if (Array.isArray(r) && r.length === 4) {
|
|
9
|
+
const o = r.map(i);
|
|
10
|
+
return n(o[0], o[2]);
|
|
11
|
+
} else
|
|
12
|
+
return i(r);
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
if (c(r) && r.matrix) {
|
|
17
|
-
const i = new s().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new m().fromArray(e).applyMatrix4(i));
|
|
14
|
+
function P(r) {
|
|
15
|
+
if (s(r) && r.matrix) {
|
|
16
|
+
const t = new m().fromArray(r.matrix), o = r.data.mediaPosition.map((e) => new a().fromArray(e).applyMatrix4(t));
|
|
18
17
|
return n(o[0], o[2]);
|
|
19
18
|
} else
|
|
20
|
-
return
|
|
19
|
+
return p(r.position);
|
|
21
20
|
}
|
|
22
21
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
P as getTagPosition,
|
|
23
|
+
p as tagPosition
|
|
25
24
|
};
|
|
@@ -77,7 +77,7 @@ class j {
|
|
|
77
77
|
var d, u;
|
|
78
78
|
this.five = e, this.panoIndex = t.panoIndex, this._id = t.renderID, this.url = t.url, this.origin = t.origin.slice(), this._enabled = (u = (d = t.initialState) == null ? void 0 : d.enabled) != null ? u : !0;
|
|
79
79
|
const n = document.createElement("video");
|
|
80
|
-
n.crossOrigin = "anonymous", n.autoplay = !1, n.muted = !0, n.loop = !
|
|
80
|
+
n.crossOrigin = "anonymous", n.autoplay = !1, n.muted = !0, n.loop = !0, n.playsInline = !0, this.video = n;
|
|
81
81
|
const r = new g(this.video);
|
|
82
82
|
r.minFilter = v, r.magFilter = v;
|
|
83
83
|
const h = new F({
|
package/libs/index.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { PaintBrush as
|
|
2
|
-
import { PaintBrushTypeEnum as
|
|
3
|
-
import { ModelViewPlugin as
|
|
4
|
-
import { CSS3DRenderPlugin as
|
|
5
|
-
import { PanoCursorRaycasterPlugin as
|
|
6
|
-
import { ModelRoomLabelPlugin as
|
|
7
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
8
|
-
import { ModelFloorplanPlugin as
|
|
9
|
-
import { MapviewFloorplanPlugin as
|
|
10
|
-
import { TopviewFloorplanPlugin as
|
|
11
|
-
import { PanoFloorplanRadarPlugin as
|
|
12
|
-
import { FLOOR_TYPE_MAP as
|
|
13
|
-
import { ModelChassisCompassPlugin as
|
|
14
|
-
import { ModelEntryDoorGuidePlugin as
|
|
15
|
-
import { CameraMovementPlugin as
|
|
16
|
-
import { CameraMovementEffect as
|
|
17
|
-
import { PanoRulerPlugin as
|
|
18
|
-
import { PanoRulerProPlugin as
|
|
19
|
-
import { PanoCompassPlugin as
|
|
20
|
-
import { PanoMeasurePlugin as
|
|
21
|
-
import { PanoSpatialTagPlugin as
|
|
22
|
-
import { modelItemLabelPluginServerParams as
|
|
23
|
-
import { ModelTVVideoPlugin as
|
|
24
|
-
import { DIRECTION as
|
|
25
|
-
import { itemLabelPluginServerParams as
|
|
26
|
-
import { PanoDoorLabelPlugin as
|
|
27
|
-
import { GuideLinePlugin as
|
|
28
|
-
import { CruisePlugin as
|
|
29
|
-
import { PanoTagPlugin as
|
|
30
|
-
import { Object3DHelperPlugin as
|
|
31
|
-
import { PanoVideoPlugin as
|
|
32
|
-
import { index as
|
|
33
|
-
import { CSS3DRender as
|
|
34
|
-
import { Model as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { Polyline as
|
|
38
|
-
import { default as
|
|
39
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
40
|
-
import { ModelItemLabelPlugin as
|
|
41
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
42
|
-
import { Plugin as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { ContentType as
|
|
46
|
-
import { DimensionType as
|
|
47
|
-
import { Object3DHelperController as
|
|
48
|
-
import { typings as
|
|
1
|
+
import { PaintBrush as yi } from "./components/PaintBrush/index.js";
|
|
2
|
+
import { PaintBrushTypeEnum as Yi } from "./components/PaintBrush/typings.js";
|
|
3
|
+
import { ModelViewPlugin as vi } from "./ModelViewPlugin/Plugin.js";
|
|
4
|
+
import { CSS3DRenderPlugin as Vi } from "./CSS3DRenderPlugin/index.js";
|
|
5
|
+
import { PanoCursorRaycasterPlugin as ci } from "./PanoCursorRaycasterPlugin/index.js";
|
|
6
|
+
import { ModelRoomLabelPlugin as wi, modelRoomLabelPluginServerParams as Bi } from "./ModelRoomLabelPlugin/index.js";
|
|
7
|
+
import { FLOOR_PLAN_ATTACHED_TO as Ui } from "./floorplan/constant.js";
|
|
8
|
+
import { ModelFloorplanPlugin as ki } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
9
|
+
import { MapviewFloorplanPlugin as zi } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
10
|
+
import { TopviewFloorplanPlugin as Ki } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
11
|
+
import { PanoFloorplanRadarPlugin as Wi } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
12
|
+
import { FLOOR_TYPE_MAP as Zi, ROOM_FETILE_TYPE_MAP as $i, ROOM_TYPE_MAP as op } from "./floorplan/typings/floorplanServerData.js";
|
|
13
|
+
import { ModelChassisCompassPlugin as tp } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
14
|
+
import { ModelEntryDoorGuidePlugin as ip } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
15
|
+
import { CameraMovementPlugin as ep } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
16
|
+
import { CameraMovementEffect as np, Rotation as ap } from "./CameraMovementPlugin/typing.js";
|
|
17
|
+
import { PanoRulerPlugin as up } from "./PanoRulerPlugin/Plugin.js";
|
|
18
|
+
import { PanoRulerProPlugin as xp } from "./PanoRulerProPlugin/index.js";
|
|
19
|
+
import { PanoCompassPlugin as sp } from "./PanoCompassPlugin/index.js";
|
|
20
|
+
import { PanoMeasurePlugin as Tp } from "./PanoMeasurePlugin/index.js";
|
|
21
|
+
import { PanoSpatialTagPlugin as Lp } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
22
|
+
import { modelItemLabelPluginServerParams as Rp } from "./ModelItemLabelPlugin/index.js";
|
|
23
|
+
import { ModelTVVideoPlugin as Cp } from "./ModelTVVideoPlugin/Plugin.js";
|
|
24
|
+
import { DIRECTION as Sp } from "./ModelTVVideoPlugin/typings.js";
|
|
25
|
+
import { itemLabelPluginServerParams as Ap } from "./ItemLabelPlugin/index.js";
|
|
26
|
+
import { PanoDoorLabelPlugin as yp } from "./PanoDoorLabelPlugin/index.js";
|
|
27
|
+
import { GuideLinePlugin as Yp } from "./GuideLinePlugin/index.js";
|
|
28
|
+
import { CruisePlugin as vp } from "./CruisePlugin/index.js";
|
|
29
|
+
import { PanoTagPlugin as Vp } from "./PanoTagPlugin/index.js";
|
|
30
|
+
import { Object3DHelperPlugin as cp } from "./Object3DHelperPlugin/index.js";
|
|
31
|
+
import { PanoVideoPlugin as wp } from "./PanoVideoPlugin/index.js";
|
|
32
|
+
import { index as Hp } from "./shared-utils/index.js";
|
|
33
|
+
import { CSS3DRender as jp } from "./CSS3DRenderPlugin/CSS3DRender.js";
|
|
34
|
+
import { Model as qp } from "./PanoMeasurePlugin/Model/index.js";
|
|
35
|
+
import { default as Jp } from "./PanoMeasurePlugin/Model/point.js";
|
|
36
|
+
import { default as Qp } from "./PanoMeasurePlugin/Model/line.js";
|
|
37
|
+
import { Polyline as Xp } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
38
|
+
import { default as $p } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
39
|
+
import { DISPLAY_STRATEGY_TYPE as re } from "./ModelItemLabelPlugin/typings.js";
|
|
40
|
+
import { ModelItemLabelPlugin as me } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
41
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as pe } from "./ItemLabelPlugin/typings.js";
|
|
42
|
+
import { Plugin as le } from "./ItemLabelPlugin/Plugin.js";
|
|
43
|
+
import { default as ae } from "./CruisePlugin/Controller.js";
|
|
44
|
+
import { default as ue, pluginFlag as fe } from "./PanoTagPlugin/controller/index.js";
|
|
45
|
+
import { ContentType as ge } from "./PanoTagPlugin/typings/tag/TagData.js";
|
|
46
|
+
import { DimensionType as de, PointType as Te } from "./PanoTagPlugin/typings/tag/Utils.js";
|
|
47
|
+
import { Object3DHelperController as Le, PLUGIN as Ee, VERSION as Re } from "./Object3DHelperPlugin/Controller.js";
|
|
48
|
+
import { typings as Ce } from "./PanoVideoPlugin/typings/index.js";
|
|
49
49
|
import "./components/PaintBrush/Controller.js";
|
|
50
50
|
import "./components/PaintBrush/utils.js";
|
|
51
51
|
import "./components/PaintBrush/tween.js";
|
|
@@ -281,7 +281,6 @@ import "./shared-utils/audio.js";
|
|
|
281
281
|
import "./PanoTagPlugin/utils/audio/SharedAudio.js";
|
|
282
282
|
import "./PanoTagPlugin/Components/Common/Icon/audioIcon.js";
|
|
283
283
|
import "./PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
284
|
-
import "./PanoTagPlugin/utils/color.js";
|
|
285
284
|
import "./PanoTagPlugin/Components/Tag/MediaPlane.js";
|
|
286
285
|
import "./PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
287
286
|
import "./PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
@@ -344,60 +343,60 @@ import "./shared-utils/three/Assets/index.js";
|
|
|
344
343
|
import "./shared-utils/three/PointDomHelper.js";
|
|
345
344
|
import "./shared-utils/three/FivePointSelector.js";
|
|
346
345
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
346
|
+
jp as CSS3DRender,
|
|
347
|
+
Vi as CSS3DRenderPlugin,
|
|
348
|
+
np as CameraMovementEffect,
|
|
349
|
+
ep as CameraMovementPlugin,
|
|
350
|
+
ge as ContentType,
|
|
351
|
+
vp as CruisePlugin,
|
|
352
|
+
ae as CruisePluginController,
|
|
353
|
+
Sp as DIRECTION,
|
|
354
|
+
re as DISPLAY_STRATEGY_TYPE,
|
|
355
|
+
de as DimensionType,
|
|
356
|
+
Ui as FLOOR_PLAN_ATTACHED_TO,
|
|
357
|
+
Zi as FLOOR_TYPE_MAP,
|
|
358
|
+
Yp as GuideLinePlugin,
|
|
359
|
+
pe as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
360
|
+
le as ItemLabelPlugin,
|
|
361
|
+
$p as Magnifier,
|
|
362
|
+
zi as MapviewFloorplanPlugin,
|
|
363
|
+
tp as ModelChassisCompassPlugin,
|
|
364
|
+
ip as ModelEntryDoorGuidePlugin,
|
|
365
|
+
ki as ModelFloorplanPlugin,
|
|
366
|
+
me as ModelItemLabelPlugin,
|
|
367
|
+
wi as ModelRoomLabelPlugin,
|
|
368
|
+
Cp as ModelTVVideoPlugin,
|
|
369
|
+
vi as ModelViewPlugin,
|
|
370
|
+
Le as Object3DHelperController,
|
|
371
|
+
cp as Object3DHelperPlugin,
|
|
372
|
+
Ee as PLUGIN,
|
|
373
|
+
yi as PaintBrush,
|
|
374
|
+
Yi as PaintBrushTypeEnum,
|
|
375
|
+
sp as PanoCompassPlugin,
|
|
376
|
+
ci as PanoCursorRaycasterPlugin,
|
|
377
|
+
yp as PanoDoorLabelPlugin,
|
|
378
|
+
Wi as PanoFloorplanRadarPlugin,
|
|
379
|
+
Tp as PanoMeasurePlugin,
|
|
380
|
+
Qp as PanoMeasurePluginLine,
|
|
381
|
+
qp as PanoMeasurePluginModel,
|
|
382
|
+
Jp as PanoMeasurePluginPoint,
|
|
383
|
+
Xp as PanoMeasurePluginPolyline,
|
|
384
|
+
up as PanoRulerPlugin,
|
|
385
|
+
xp as PanoRulerProPlugin,
|
|
386
|
+
Lp as PanoSpatialTagPlugin,
|
|
387
|
+
Vp as PanoTagPlugin,
|
|
388
|
+
ue as PanoTagPluginController,
|
|
389
|
+
wp as PanoVideoPlugin,
|
|
390
|
+
Ce as PanoVideoPluginType,
|
|
391
|
+
Te as PointType,
|
|
392
|
+
$i as ROOM_FETILE_TYPE_MAP,
|
|
393
|
+
op as ROOM_TYPE_MAP,
|
|
394
|
+
ap as Rotation,
|
|
395
|
+
Ki as TopviewFloorplanPlugin,
|
|
396
|
+
Hp as Util,
|
|
397
|
+
Re as VERSION,
|
|
398
|
+
Ap as itemLabelPluginServerParams,
|
|
399
|
+
Rp as modelItemLabelPluginServerParams,
|
|
400
|
+
Bi as modelRoomLabelPluginServerParams,
|
|
401
|
+
fe as pluginFlag
|
|
403
402
|
};
|
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.9.0-
|
|
10
|
+
"version": "2.9.0-2",
|
|
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*",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
22
22
|
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
23
23
|
"docs": "typedoc --options ./typedoc.json",
|
|
24
|
-
"prepublishOnly": "run-p build docs"
|
|
24
|
+
"prepublishOnly": "run-p build docs",
|
|
25
|
+
"postpublish": "cnpm sync @realsee/dnalogel"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"libs",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
47
48
|
"@typescript-eslint/parser": "^5.44.0",
|
|
48
49
|
"autoprefixer": "^10.4.13",
|
|
50
|
+
"cnpm": "^9.0.1",
|
|
49
51
|
"eslint": "8.26.0",
|
|
50
52
|
"eslint-config-alloy": "^4.7.0",
|
|
51
53
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -62,12 +64,12 @@
|
|
|
62
64
|
"stylelint": "^14.15.0",
|
|
63
65
|
"stylelint-config-prettier": "^9.0.4",
|
|
64
66
|
"svelte": "3.53.1",
|
|
67
|
+
"svelte-carousel": "1.0.22",
|
|
65
68
|
"svelte-preprocess": "^4.10.7",
|
|
66
69
|
"three": "0.117.1",
|
|
67
70
|
"type-fest": "3.2.0",
|
|
68
71
|
"typedoc": "^0.23.21",
|
|
69
72
|
"typescript": "^4.9.3",
|
|
70
|
-
"svelte-carousel": "1.0.22",
|
|
71
73
|
"vite": "3.2.3",
|
|
72
74
|
"vite-plugin-dts": "^1.7.1"
|
|
73
75
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function timeToString(time: number): string;
|