@realsee/dnalogel 2.19.0-2 → 2.19.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/index.cjs.js +7 -7
- package/dist/index.js +91 -89
- package/dist/index.umd.js +7 -7
- 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 +4 -4
- 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/index.js +26 -24
- package/libs/PanoTagPlugin/controller/TagRender.js +80 -80
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var k = Object.defineProperty;
|
|
2
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
|
|
4
|
-
var
|
|
3
|
+
var b = (f, h, t) => (E(f, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
|
+
var C = (f, h, t) => new Promise((e, o) => {
|
|
5
5
|
var i = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
a(t.next(r));
|
|
8
8
|
} catch (s) {
|
|
9
9
|
o(s);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, n = (r) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
a(t.throw(r));
|
|
14
14
|
} catch (s) {
|
|
15
15
|
o(s);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, n);
|
|
18
|
+
a((t = t.apply(f, h)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as w } from "./TagComputer.js";
|
|
21
|
-
import { Group as
|
|
21
|
+
import { Group as S, Quaternion as O, Vector3 as v, Matrix4 as D } 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 y } 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 P, 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
|
-
import { VideoPlane as
|
|
29
|
+
import { VideoPlane as j, ImagePlane as R } from "../utils/model/mediaPlane.js";
|
|
30
30
|
import "../utils/tagPosition.js";
|
|
31
31
|
import "../utils/checkRange.js";
|
|
32
32
|
import "hammerjs";
|
|
@@ -143,42 +143,42 @@ const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
|
143
143
|
class ti extends w {
|
|
144
144
|
constructor(t) {
|
|
145
145
|
super(t);
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
b(this, "group", new S());
|
|
147
|
+
b(this, "imagePlaneGroup", new S());
|
|
148
|
+
b(this, "gltfObjectGroup", new S());
|
|
149
149
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
150
|
-
|
|
150
|
+
b(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
151
151
|
/** 临时状态 */
|
|
152
|
-
|
|
152
|
+
b(this, "temporaryState", { visible: !0 });
|
|
153
153
|
/** 点标签 */
|
|
154
|
-
|
|
154
|
+
b(this, "TagContainerSvelte");
|
|
155
155
|
/** 加载外部模型 */
|
|
156
|
-
|
|
157
|
-
var
|
|
156
|
+
b(this, "loadModel", (t) => C(this, null, function* () {
|
|
157
|
+
var a;
|
|
158
158
|
const e = t.data.modelUrl;
|
|
159
159
|
if (!e)
|
|
160
160
|
return;
|
|
161
161
|
const o = F(e).then((r) => {
|
|
162
|
-
var m,
|
|
162
|
+
var p, m, l, c, d;
|
|
163
163
|
const s = Object.assign(r.scene, {
|
|
164
164
|
customID: t.id,
|
|
165
165
|
isTagModel: !0,
|
|
166
|
-
removeEventListener: this.addObjectClickHandler(t, r.scene, (
|
|
167
|
-
this.hooks.emit("click", { target: "TagModel", tag: t, event:
|
|
166
|
+
removeEventListener: this.addObjectClickHandler(t, r.scene, (g) => {
|
|
167
|
+
console.log("🐶 ==> tag:", t), this.hooks.emit("click", { target: "TagModel", tag: t, event: g });
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
|
-
return s.visible = this.getCurrentVisibleState(t), new
|
|
170
|
+
return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (l = (m = (p = this.config) == null ? void 0 : p.globalConfig) == null ? void 0 : m.modelConfig) != null && l.autoLookAtEnabled && ((d = (c = t.config) == null ? void 0 : c.modelConfig) != null && d.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
|
|
171
171
|
});
|
|
172
172
|
t.model = { promise: o };
|
|
173
173
|
const i = yield o;
|
|
174
|
-
if (((
|
|
174
|
+
if (((a = t.model) == null ? void 0 : a.promise) !== o || !this.tags.includes(t))
|
|
175
175
|
return;
|
|
176
176
|
t.model.object = i;
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
177
|
+
const n = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
178
|
+
if (n && (this.gltfObjectGroup.remove(n), n.removeEventListener()), this.updateRender3DDomTag(), P(t)) {
|
|
179
179
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
180
|
-
const r = t.data.mediaPosition.map(
|
|
181
|
-
t.mediaPlane = new
|
|
180
|
+
const r = t.data.mediaPosition.map(y);
|
|
181
|
+
t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(y), {
|
|
182
182
|
objectFit: t.data.objectFit
|
|
183
183
|
});
|
|
184
184
|
const s = new v().addVectors(r[0], r[2]).divideScalar(2);
|
|
@@ -207,32 +207,32 @@ class ti extends w {
|
|
|
207
207
|
*/
|
|
208
208
|
updateRenderImagePlane() {
|
|
209
209
|
this.sort(this.filterImagePlane).forEach((e) => {
|
|
210
|
-
var r, s,
|
|
210
|
+
var r, s, u, p, m;
|
|
211
211
|
const o = e.data.mediaData[0];
|
|
212
212
|
if (!o)
|
|
213
213
|
return;
|
|
214
|
-
const { url: i, type:
|
|
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
|
|
214
|
+
const { url: i, type: n } = 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 j && ((u = e.data.autoplayConfig) != null && u.autoplayVideo || e.mediaPlane.pause())), ((p = e.mediaPlane) == null ? void 0 : p.src) === i))
|
|
216
216
|
return;
|
|
217
|
-
const
|
|
218
|
-
if (e.mediaPlane && e.mediaPlane.removeFromParent(),
|
|
219
|
-
e.mediaPlane = new
|
|
220
|
-
this.hooks.emit("click", { tag: e, target: "TagContent", event:
|
|
217
|
+
const a = e.position.map(y);
|
|
218
|
+
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
219
|
+
e.mediaPlane = new R(i, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (l) => {
|
|
220
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: l.origDomEvent });
|
|
221
221
|
});
|
|
222
|
-
else if (
|
|
223
|
-
const
|
|
222
|
+
else if (n === "Video") {
|
|
223
|
+
const l = new j(i, a, {
|
|
224
224
|
videoCoverSrc: o.videoCoverUrl,
|
|
225
225
|
playButton: e.data.playIcon,
|
|
226
|
-
paused: !((
|
|
226
|
+
paused: !((m = e.data.autoplayConfig) != null && m.autoplayVideo),
|
|
227
227
|
objectFit: e.data.objectFit,
|
|
228
228
|
videoTextureMap: L,
|
|
229
229
|
ImageTextureMap: B
|
|
230
230
|
});
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
const
|
|
235
|
-
|
|
231
|
+
l.onVideoReady = (d) => {
|
|
232
|
+
d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: l.videoInstance }));
|
|
233
|
+
}, l.initialDomEvents(this.domEvents);
|
|
234
|
+
const c = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
|
|
235
|
+
l.initialRenderHooks(c), e.mediaPlane = l;
|
|
236
236
|
}
|
|
237
237
|
this.imagePlaneGroup.add(e.mediaPlane);
|
|
238
238
|
});
|
|
@@ -242,44 +242,44 @@ class ti extends w {
|
|
|
242
242
|
*/
|
|
243
243
|
updateRender3DDomTag() {
|
|
244
244
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
245
|
-
var o, i, a;
|
|
245
|
+
var o, i, n, a;
|
|
246
246
|
if (e.tag3DContentSvelte) {
|
|
247
|
-
const { svelteApp:
|
|
248
|
-
if (
|
|
249
|
-
const m = new O().setFromUnitVectors(
|
|
250
|
-
|
|
247
|
+
const { svelteApp: r, css3DInstance: s, initialNormal: u, currentNormal: p } = e.tag3DContentSvelte;
|
|
248
|
+
if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(p)) {
|
|
249
|
+
const m = new O().setFromUnitVectors(u, p);
|
|
250
|
+
s.css3DObject.setRotationFromQuaternion(m);
|
|
251
251
|
}
|
|
252
252
|
return;
|
|
253
253
|
} else {
|
|
254
|
-
if (
|
|
254
|
+
if (P(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
255
255
|
return;
|
|
256
256
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
257
257
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
258
|
-
const
|
|
259
|
-
if (!n)
|
|
260
|
-
return;
|
|
261
|
-
const r = this.getTagNormal(e);
|
|
258
|
+
const r = this.getPositions(e);
|
|
262
259
|
if (!r)
|
|
263
260
|
return;
|
|
264
|
-
const
|
|
261
|
+
const s = this.getTagNormal(e);
|
|
262
|
+
if (!s)
|
|
263
|
+
return;
|
|
264
|
+
const p = (n = this.getTagConfig(e).tag3DConfig) != null ? n : {};
|
|
265
265
|
if (this.getRenderType(e) === "BehindDom") {
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
266
|
+
p.mode = "behind", p.container = document.createElement("div");
|
|
267
|
+
const c = "black";
|
|
268
|
+
p.container.style.backgroundColor = c, p.container.style.border = `3px solid ${c}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
269
269
|
var d;
|
|
270
270
|
if (m.css3DObject.opacityMesh) {
|
|
271
|
-
const
|
|
272
|
-
this.hooks.emit("click", { event:
|
|
271
|
+
const g = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (T) => {
|
|
272
|
+
this.hooks.emit("click", { event: T, target: "TagContent", tag: e });
|
|
273
273
|
});
|
|
274
|
-
(d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(
|
|
274
|
+
(d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(g);
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
const m = this.css3DRenderPlugin.create3DDomContainer(
|
|
278
|
+
const m = this.css3DRenderPlugin.create3DDomContainer(r, p);
|
|
279
279
|
if (!m)
|
|
280
280
|
return;
|
|
281
281
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
282
|
-
const
|
|
282
|
+
const l = new A({
|
|
283
283
|
target: m.container,
|
|
284
284
|
props: {
|
|
285
285
|
tag: e,
|
|
@@ -291,15 +291,15 @@ class ti extends w {
|
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
e.tag3DContentSvelte = {
|
|
294
|
-
svelteApp:
|
|
294
|
+
svelteApp: l,
|
|
295
295
|
domContainer: m,
|
|
296
296
|
css3DInstance: m,
|
|
297
|
-
initialNormal:
|
|
298
|
-
currentNormal:
|
|
297
|
+
initialNormal: s,
|
|
298
|
+
currentNormal: s,
|
|
299
299
|
dispose: () => {
|
|
300
|
-
|
|
300
|
+
l.$destroy(), m.dispose();
|
|
301
301
|
}
|
|
302
|
-
};
|
|
302
|
+
}, P(e) && ((a = e.model) != null && a.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
303
303
|
}
|
|
304
304
|
}), this.clearUnusedPanelTag();
|
|
305
305
|
}
|
|
@@ -313,9 +313,9 @@ class ti extends w {
|
|
|
313
313
|
updateRenderModelTag() {
|
|
314
314
|
const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
|
|
315
315
|
e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
|
|
316
|
-
var
|
|
317
|
-
(
|
|
318
|
-
|
|
316
|
+
var n;
|
|
317
|
+
(n = i.model) == null || n.promise.then((a) => {
|
|
318
|
+
a.visible = this.getCurrentVisibleState(i);
|
|
319
319
|
});
|
|
320
320
|
}), this.five.needsRender = !0;
|
|
321
321
|
}
|
|
@@ -330,20 +330,20 @@ class ti extends w {
|
|
|
330
330
|
* @param model 模型
|
|
331
331
|
*/
|
|
332
332
|
updateTagCss3DObjectMatrix(t, e) {
|
|
333
|
-
var
|
|
334
|
-
const o = (
|
|
333
|
+
var d, g, T, M;
|
|
334
|
+
const o = (T = (g = (d = t.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : g.ratio) != null ? T : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
335
335
|
if (!i)
|
|
336
336
|
return;
|
|
337
|
-
const
|
|
337
|
+
const n = P(t) ? t.data.mediaPosition : t.position;
|
|
338
338
|
e.updateWorldMatrix(!1, !1);
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
const
|
|
342
|
-
|
|
339
|
+
const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = G(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
|
|
340
|
+
l.decompose(i.position, i.quaternion, i.scale);
|
|
341
|
+
const c = i.opacityMesh;
|
|
342
|
+
c && l.decompose(c.position, c.quaternion, c.scale);
|
|
343
343
|
}
|
|
344
344
|
/** 添加模型标签 */
|
|
345
345
|
addMediaModelTag(t) {
|
|
346
|
-
return
|
|
346
|
+
return C(this, null, function* () {
|
|
347
347
|
const e = t.filter(I).map((o) => this.loadModel(o));
|
|
348
348
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
349
349
|
});
|
|
@@ -373,8 +373,8 @@ class ti extends w {
|
|
|
373
373
|
temporaryState: this.temporaryState,
|
|
374
374
|
withAnimation: this.store.visibleWithAnimation
|
|
375
375
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
376
|
-
var o, i,
|
|
377
|
-
(
|
|
376
|
+
var o, i, n, a, r;
|
|
377
|
+
(a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
378
378
|
state: this.state,
|
|
379
379
|
temporaryState: this.temporaryState,
|
|
380
380
|
withAnimation: this.store.visibleWithAnimation
|
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",
|
|
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",
|
|
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*",
|