@realsee/dnalogel 2.19.0-0 → 2.19.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/Controller/MixedController.d.ts +1 -4
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
- package/dist/index.cjs.js +22 -22
- package/dist/index.js +1146 -1144
- package/dist/index.umd.js +22 -22
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +13 -13
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -39
- package/libs/PanoTagPlugin/controller/TagRender.js +83 -77
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/index.js +16 -16
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var k = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var g = (f, h, t) => (
|
|
4
|
-
var
|
|
5
|
-
var
|
|
2
|
+
var E = (f, h, t) => h in f ? k(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
|
|
3
|
+
var g = (f, h, t) => (E(f, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
|
+
var D = (f, h, t) => new Promise((e, o) => {
|
|
5
|
+
var i = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
n(t.next(r));
|
|
8
8
|
} catch (s) {
|
|
9
|
-
|
|
9
|
+
o(s);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, a = (r) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
n(t.throw(r));
|
|
14
14
|
} catch (s) {
|
|
15
|
-
|
|
15
|
+
o(s);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, n = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, a);
|
|
18
|
+
n((t = t.apply(f, h)).next());
|
|
19
19
|
});
|
|
20
|
-
import { TagComputer as
|
|
21
|
-
import { Group as
|
|
20
|
+
import { TagComputer as w } from "./TagComputer.js";
|
|
21
|
+
import { Group as P, Quaternion as O, Vector3 as v, Matrix4 as T } from "three";
|
|
22
22
|
import x from "../Components/TagContainer.js";
|
|
23
23
|
import A from "../Components/Tag/index.js";
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
24
|
+
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
25
|
import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
-
import { isMediaModelTag as
|
|
26
|
+
import { isMediaModelTag as S, isStickModelTag as I } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
|
|
28
28
|
import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
|
|
29
29
|
import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
|
|
@@ -140,12 +140,12 @@ import "../../CSS3DRenderPlugin/Controller.js";
|
|
|
140
140
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
141
141
|
import "@realsee/five/gltf-loader";
|
|
142
142
|
const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
143
|
-
class ti extends
|
|
143
|
+
class ti extends w {
|
|
144
144
|
constructor(t) {
|
|
145
145
|
super(t);
|
|
146
|
-
g(this, "group", new
|
|
147
|
-
g(this, "imagePlaneGroup", new
|
|
148
|
-
g(this, "gltfObjectGroup", new
|
|
146
|
+
g(this, "group", new P());
|
|
147
|
+
g(this, "imagePlaneGroup", new P());
|
|
148
|
+
g(this, "gltfObjectGroup", new P());
|
|
149
149
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
150
150
|
g(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
151
151
|
/** 临时状态 */
|
|
@@ -153,41 +153,47 @@ class ti extends E {
|
|
|
153
153
|
/** 点标签 */
|
|
154
154
|
g(this, "TagContainerSvelte");
|
|
155
155
|
/** 加载外部模型 */
|
|
156
|
-
g(this, "loadModel", (t) =>
|
|
157
|
-
var
|
|
156
|
+
g(this, "loadModel", (t) => D(this, null, function* () {
|
|
157
|
+
var n;
|
|
158
158
|
const e = t.data.modelUrl;
|
|
159
159
|
if (!e)
|
|
160
160
|
return;
|
|
161
|
-
const
|
|
161
|
+
const o = F(e).then((r) => {
|
|
162
162
|
var m, u, p, d, c;
|
|
163
|
-
const s = Object.assign(r.scene, {
|
|
164
|
-
|
|
163
|
+
const s = Object.assign(r.scene, {
|
|
164
|
+
customID: t.id,
|
|
165
|
+
isTagModel: !0,
|
|
166
|
+
removeEventListener: this.addObjectClickHandler(t, r.scene, (b) => {
|
|
167
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: b });
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
return s.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (p = (u = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : u.modelConfig) != null && p.autoLookAtEnabled && ((c = (d = t.config) == null ? void 0 : d.modelConfig) != null && c.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
|
|
165
171
|
});
|
|
166
|
-
t.model = { promise:
|
|
167
|
-
const
|
|
168
|
-
if (((
|
|
172
|
+
t.model = { promise: o };
|
|
173
|
+
const i = yield o;
|
|
174
|
+
if (((n = t.model) == null ? void 0 : n.promise) !== o || !this.tags.includes(t))
|
|
169
175
|
return;
|
|
170
|
-
t.model.object =
|
|
171
|
-
const
|
|
172
|
-
if (
|
|
176
|
+
t.model.object = i;
|
|
177
|
+
const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
178
|
+
if (a && (this.gltfObjectGroup.remove(a), a.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
|
|
173
179
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
174
|
-
const r = t.data.mediaPosition.map(
|
|
175
|
-
t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(
|
|
180
|
+
const r = t.data.mediaPosition.map(C);
|
|
181
|
+
t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
|
|
176
182
|
objectFit: t.data.objectFit
|
|
177
183
|
});
|
|
178
|
-
const s = new
|
|
179
|
-
t.mediaPlane.position.copy(s),
|
|
184
|
+
const s = new v().addVectors(r[0], r[2]).divideScalar(2);
|
|
185
|
+
t.mediaPlane.position.copy(s), i.add(t.mediaPlane);
|
|
180
186
|
}
|
|
181
|
-
this.getRenderType(t) !== "Mesh" && (
|
|
187
|
+
this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
|
|
182
188
|
}
|
|
183
|
-
return this.gltfObjectGroup.add(
|
|
189
|
+
return this.gltfObjectGroup.add(i), i;
|
|
184
190
|
}));
|
|
185
191
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
186
192
|
}
|
|
187
193
|
clearTags() {
|
|
188
194
|
this.tags.forEach((t) => {
|
|
189
|
-
var e,
|
|
190
|
-
(
|
|
195
|
+
var e, o;
|
|
196
|
+
(o = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || o.remove(t.mediaPlane);
|
|
191
197
|
}), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
192
198
|
}
|
|
193
199
|
/**
|
|
@@ -202,20 +208,20 @@ class ti extends E {
|
|
|
202
208
|
updateRenderImagePlane() {
|
|
203
209
|
this.sort(this.filterImagePlane).forEach((e) => {
|
|
204
210
|
var r, s, l, m, u;
|
|
205
|
-
const
|
|
206
|
-
if (!
|
|
211
|
+
const o = e.data.mediaData[0];
|
|
212
|
+
if (!o)
|
|
207
213
|
return;
|
|
208
|
-
const { url:
|
|
209
|
-
if (!
|
|
214
|
+
const { url: i, type: a } = o;
|
|
215
|
+
if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof R && ((l = e.data.autoplayConfig) != null && l.autoplayVideo || e.mediaPlane.pause())), ((m = e.mediaPlane) == null ? void 0 : m.src) === i))
|
|
210
216
|
return;
|
|
211
|
-
const
|
|
212
|
-
if (e.mediaPlane && e.mediaPlane.removeFromParent(),
|
|
213
|
-
e.mediaPlane = new j(
|
|
217
|
+
const n = e.position.map(C);
|
|
218
|
+
if (e.mediaPlane && e.mediaPlane.removeFromParent(), a === "Image")
|
|
219
|
+
e.mediaPlane = new j(i, n, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
|
|
214
220
|
this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
|
|
215
221
|
});
|
|
216
|
-
else if (
|
|
217
|
-
const p = new R(
|
|
218
|
-
videoCoverSrc:
|
|
222
|
+
else if (a === "Video") {
|
|
223
|
+
const p = new R(i, n, {
|
|
224
|
+
videoCoverSrc: o.videoCoverUrl,
|
|
219
225
|
playButton: e.data.playIcon,
|
|
220
226
|
paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
|
|
221
227
|
objectFit: e.data.objectFit,
|
|
@@ -236,26 +242,26 @@ class ti extends E {
|
|
|
236
242
|
*/
|
|
237
243
|
updateRender3DDomTag() {
|
|
238
244
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
239
|
-
var
|
|
245
|
+
var o, i, a;
|
|
240
246
|
if (e.tag3DContentSvelte) {
|
|
241
|
-
const { svelteApp:
|
|
242
|
-
if (
|
|
247
|
+
const { svelteApp: n, css3DInstance: r, initialNormal: s, currentNormal: l } = e.tag3DContentSvelte;
|
|
248
|
+
if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(l)) {
|
|
243
249
|
const m = new O().setFromUnitVectors(s, l);
|
|
244
250
|
r.css3DObject.setRotationFromQuaternion(m);
|
|
245
251
|
}
|
|
246
252
|
return;
|
|
247
253
|
} else {
|
|
248
|
-
if (
|
|
254
|
+
if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
249
255
|
return;
|
|
250
256
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
251
257
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
252
|
-
const
|
|
253
|
-
if (!
|
|
258
|
+
const n = this.getPositions(e);
|
|
259
|
+
if (!n)
|
|
254
260
|
return;
|
|
255
261
|
const r = this.getTagNormal(e);
|
|
256
262
|
if (!r)
|
|
257
263
|
return;
|
|
258
|
-
const l = (
|
|
264
|
+
const l = (a = this.getTagConfig(e).tag3DConfig) != null ? a : {};
|
|
259
265
|
if (this.getRenderType(e) === "BehindDom") {
|
|
260
266
|
l.mode = "behind", l.container = document.createElement("div");
|
|
261
267
|
const p = "black";
|
|
@@ -269,7 +275,7 @@ class ti extends E {
|
|
|
269
275
|
}
|
|
270
276
|
});
|
|
271
277
|
}
|
|
272
|
-
const m = this.css3DRenderPlugin.create3DDomContainer(
|
|
278
|
+
const m = this.css3DRenderPlugin.create3DDomContainer(n, l);
|
|
273
279
|
if (!m)
|
|
274
280
|
return;
|
|
275
281
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
@@ -305,13 +311,13 @@ class ti extends E {
|
|
|
305
311
|
* FIXME: 有性能问题,但是之前的逻辑都是这么写,暂时先这样吧
|
|
306
312
|
*/
|
|
307
313
|
updateRenderModelTag() {
|
|
308
|
-
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
309
|
-
|
|
310
|
-
var
|
|
311
|
-
(
|
|
314
|
+
const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
|
|
315
|
+
e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
|
|
316
|
+
var a;
|
|
317
|
+
(a = i.model) == null || a.promise.then((n) => {
|
|
312
318
|
n.visible = this.getCurrentVisibleState(i);
|
|
313
319
|
});
|
|
314
|
-
});
|
|
320
|
+
}), this.five.needsRender = !0;
|
|
315
321
|
}
|
|
316
322
|
updateTagModelVisible() {
|
|
317
323
|
this.tags.forEach((t) => {
|
|
@@ -325,20 +331,20 @@ class ti extends E {
|
|
|
325
331
|
*/
|
|
326
332
|
updateTagCss3DObjectMatrix(t, e) {
|
|
327
333
|
var c, b, y, M;
|
|
328
|
-
const
|
|
329
|
-
if (!
|
|
334
|
+
const o = (y = (b = (c = t.mergedConfig) == null ? void 0 : c.tag3DConfig) == null ? void 0 : b.ratio) != null ? y : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
335
|
+
if (!i)
|
|
330
336
|
return;
|
|
331
|
-
const
|
|
337
|
+
const a = S(t) ? t.data.mediaPosition : t.position;
|
|
332
338
|
e.updateWorldMatrix(!1, !1);
|
|
333
|
-
const
|
|
334
|
-
p.decompose(
|
|
335
|
-
const d =
|
|
339
|
+
const n = e.matrixWorld, r = new v().fromArray(a[0]), s = new v().fromArray(a[2]), l = G(r, s).add(new v(0, 0, 5e-4)), m = new T().setPosition(l), u = new T().makeScale(o, o, o), p = new T().multiply(n).multiply(m).multiply(u);
|
|
340
|
+
p.decompose(i.position, i.quaternion, i.scale);
|
|
341
|
+
const d = i.opacityMesh;
|
|
336
342
|
d && p.decompose(d.position, d.quaternion, d.scale);
|
|
337
343
|
}
|
|
338
344
|
/** 添加模型标签 */
|
|
339
345
|
addMediaModelTag(t) {
|
|
340
|
-
return
|
|
341
|
-
const e = t.filter(I).map((
|
|
346
|
+
return D(this, null, function* () {
|
|
347
|
+
const e = t.filter(I).map((o) => this.loadModel(o));
|
|
342
348
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
343
349
|
});
|
|
344
350
|
}
|
|
@@ -351,11 +357,11 @@ class ti extends E {
|
|
|
351
357
|
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
352
358
|
this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
|
|
353
359
|
else {
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
360
|
+
const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
361
|
+
if (!o)
|
|
356
362
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
357
363
|
this.TagContainerSvelte = new x({
|
|
358
|
-
target:
|
|
364
|
+
target: o,
|
|
359
365
|
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
360
366
|
});
|
|
361
367
|
}
|
|
@@ -367,8 +373,8 @@ class ti extends E {
|
|
|
367
373
|
temporaryState: this.temporaryState,
|
|
368
374
|
withAnimation: this.store.visibleWithAnimation
|
|
369
375
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
370
|
-
var i,
|
|
371
|
-
(
|
|
376
|
+
var o, i, a, n, r;
|
|
377
|
+
(n = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || n.setVisible((this.state.visible && ((a = e.state) == null ? void 0 : a.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
372
378
|
state: this.state,
|
|
373
379
|
temporaryState: this.temporaryState,
|
|
374
380
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -377,7 +383,7 @@ class ti extends E {
|
|
|
377
383
|
}
|
|
378
384
|
disposeAllCSS3DContainer() {
|
|
379
385
|
for (const [t, e] of this.store.css3DRenderDisposer)
|
|
380
|
-
e == null || e.forEach((
|
|
386
|
+
e == null || e.forEach((o) => o == null ? void 0 : o());
|
|
381
387
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
382
388
|
}
|
|
383
389
|
/**
|
|
@@ -389,8 +395,8 @@ class ti extends E {
|
|
|
389
395
|
(e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
390
396
|
});
|
|
391
397
|
for (const [t, e] of this.store.css3DRenderDisposer) {
|
|
392
|
-
const
|
|
393
|
-
(!
|
|
398
|
+
const o = this.getTagById(t);
|
|
399
|
+
(!o || o.stickType === "2DPoint") && (e == null || e.forEach((i) => i == null ? void 0 : i()), this.store.css3DRenderDisposer.delete(t));
|
|
394
400
|
}
|
|
395
401
|
}
|
|
396
402
|
}
|
|
@@ -49,7 +49,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
49
49
|
protected getDistance(tag: Tag<any, any>, panoIndex?: number): number;
|
|
50
50
|
protected getPositions(tag: TagElement<any, any>): any;
|
|
51
51
|
protected preventWhenMouseDown: () => false | void;
|
|
52
|
-
protected addObjectClickHandler(tag: TagElement, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
52
|
+
protected addObjectClickHandler(tag: TagElement<any, any>, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
53
53
|
protected getTagNormal(tag: TagElement<any, 'Plane'> | TagElement<any, 'Model'> | TagElement<any, '3DPoint'>): THREE.Vector3;
|
|
54
54
|
protected get filterPointTag(): PointTagElement[];
|
|
55
55
|
protected get filter2DPointTag(): Point2DElement[];
|
|
@@ -29,7 +29,7 @@ var f = (h, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as b from "three";
|
|
31
31
|
import { Subscribe as B } from "@realsee/five";
|
|
32
|
-
import { objectAssignDeepExports as
|
|
32
|
+
import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
34
34
|
import { addDebugPoints as R } from "../utils/addDebugPoints.js";
|
|
35
35
|
import { isMediaModelTag as y, isModelTag as O } from "../utils/tag/tagCheck.js";
|
|
@@ -170,7 +170,7 @@ class ci extends N {
|
|
|
170
170
|
g(this, "debug");
|
|
171
171
|
/** 更改 tag 模型 */
|
|
172
172
|
g(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
173
|
-
e.data =
|
|
173
|
+
e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
174
174
|
}));
|
|
175
175
|
g(this, "handleFiveInitAnimationEnded", () => {
|
|
176
176
|
const e = this.five.getCurrentState().mode;
|
|
@@ -186,7 +186,7 @@ class ci extends N {
|
|
|
186
186
|
typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
187
187
|
}), this.updateRenderAllTags();
|
|
188
188
|
});
|
|
189
|
-
this.params =
|
|
189
|
+
this.params = p({}, { debug: !1, config: this.config }, l({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
|
|
190
190
|
try {
|
|
191
191
|
const i = window;
|
|
192
192
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -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.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
202
|
+
this.clearTags(), console.info(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
|
});
|
|
@@ -223,7 +223,7 @@ class ci extends N {
|
|
|
223
223
|
const n = this.getTagConfig(o);
|
|
224
224
|
return u(l({}, o), {
|
|
225
225
|
id: (d = o.id) != null ? d : z(),
|
|
226
|
-
data:
|
|
226
|
+
data: p({}, n.initialData, o.data),
|
|
227
227
|
state: l({
|
|
228
228
|
visible: void 0,
|
|
229
229
|
unfolded: !this.can("fold", o)
|
|
@@ -247,19 +247,19 @@ class ci extends N {
|
|
|
247
247
|
* @description: 改变配置
|
|
248
248
|
*/
|
|
249
249
|
changeConfig(e, t = !0) {
|
|
250
|
-
t ? this.config =
|
|
250
|
+
t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
253
|
* @description: 改变全局配置
|
|
254
254
|
*/
|
|
255
255
|
changeGlobalConfig(e, t = !0) {
|
|
256
|
-
t ? this.config.globalConfig =
|
|
256
|
+
t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
259
259
|
* @description: 改变类型配置
|
|
260
260
|
*/
|
|
261
261
|
changeContentTypeConfig(e, t, i = !0) {
|
|
262
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
262
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
263
263
|
}
|
|
264
264
|
show(e) {
|
|
265
265
|
return f(this, null, function* () {
|
|
@@ -334,7 +334,7 @@ class ci extends N {
|
|
|
334
334
|
*/
|
|
335
335
|
changeDataById(e, t, i = !0) {
|
|
336
336
|
const s = this.getTagById(e);
|
|
337
|
-
s && (i ? s.data =
|
|
337
|
+
s && (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* @description: 改变tag的stickType
|
|
@@ -347,7 +347,7 @@ class ci extends N {
|
|
|
347
347
|
*/
|
|
348
348
|
changeTagById(e, t, i = !0) {
|
|
349
349
|
const s = this.getTagById(e);
|
|
350
|
-
t && (i ?
|
|
350
|
+
t && (i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
353
|
* @description: 销毁tag
|
|
@@ -394,9 +394,9 @@ class ci extends N {
|
|
|
394
394
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
395
395
|
*/
|
|
396
396
|
addEventListener() {
|
|
397
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this),
|
|
398
|
-
return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click",
|
|
399
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click",
|
|
397
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), c = this.clickhandler.bind(this), m = this.five.currentMode;
|
|
398
|
+
return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click", c), () => {
|
|
399
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click", c), this.store.eventListenerDisposer = void 0;
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
addResizeListener() {
|
|
@@ -491,9 +491,9 @@ class ci extends N {
|
|
|
491
491
|
o.position.copy(n.position), o.quaternion.copy(n.quaternion);
|
|
492
492
|
const r = this.five.camera.position;
|
|
493
493
|
o.lookAt(r.clone().setY(o.position.y));
|
|
494
|
-
const d = n.quaternion.clone(),
|
|
494
|
+
const d = n.quaternion.clone(), c = o.quaternion.clone(), m = x();
|
|
495
495
|
m.onUpdate(({ progress: P }) => {
|
|
496
|
-
n.quaternion.copy(d.clone().slerp(
|
|
496
|
+
n.quaternion.copy(d.clone().slerp(c, P));
|
|
497
497
|
}), m.play();
|
|
498
498
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
499
499
|
});
|
|
@@ -510,7 +510,7 @@ class ci extends N {
|
|
|
510
510
|
}
|
|
511
511
|
changeTagMode(e, t) {
|
|
512
512
|
var i, s, o, n, r, d;
|
|
513
|
-
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((
|
|
513
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((c) => c == null ? void 0 : c()), e.tag3DContentSvelte = void 0);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
export {
|
|
@@ -33,6 +33,9 @@ export interface EventMap extends BasePlugin.EventMap<State> {
|
|
|
33
33
|
target: 'AudioTagPlayIcon';
|
|
34
34
|
tag: TagElement;
|
|
35
35
|
audioInstance: HTMLAudioElement;
|
|
36
|
+
} | {
|
|
37
|
+
target: 'TagModel';
|
|
38
|
+
tag: TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>;
|
|
36
39
|
})) => void;
|
|
37
40
|
playStateChange: (params: {
|
|
38
41
|
event: Event;
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.info(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.19.0-
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.19.0-2",
|
|
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.19.0-
|
|
10
|
+
"version": "2.19.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*",
|