@realsee/dnalogel 2.16.0-14 → 2.16.0-16
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/GuideLinePlugin/GuideLineModeItem.d.ts +4 -3
- package/dist/GuideLinePlugin/typing.d.ts +7 -6
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/dist/index.cjs.js +48 -48
- package/dist/index.js +2197 -2158
- package/dist/index.umd.js +48 -48
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +27 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +17 -16
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +32 -141
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +26 -25
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +24 -23
- package/docs/classes/PanoMeasurePluginModel.html +23 -22
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +50 -159
- package/docs/classes/Util.BetterTween.html +10 -9
- package/docs/classes/Util.FivePointSelector.html +13 -12
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +18 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +20 -19
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +6 -5
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +17 -9
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -20
- package/docs/interfaces/{GuideLinePluginType.ModelGuideLineTag.html → GuideLinePluginType.ModelGuideLineTagData.html} +15 -139
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +15 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +12 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +13 -12
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/modules/CruisePluginTypes.html +6 -5
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +8 -6
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +6 -5
- package/docs/modules.html +6 -5
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +353 -0
- package/docs/types/GuideLinePluginType.PathItem.html +6 -5
- package/docs/types/GuideLinePluginType.PluginData.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/GuideLinePlugin/Components/Tag.js +63 -31
- package/libs/GuideLinePlugin/GuideLineItem/index.js +11 -11
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +63 -56
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +4 -3
- package/libs/GuideLinePlugin/typing.d.ts +7 -6
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +6 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var C = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (o, e, i) => e in o ? C(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i, u = (o, e) => {
|
|
5
6
|
for (var i in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
};
|
|
12
|
-
var t = (
|
|
7
|
+
w.call(e, i) && m(o, i, e[i]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var i of v(e))
|
|
10
|
+
U.call(e, i) && m(o, i, e[i]);
|
|
11
|
+
return o;
|
|
12
|
+
}, g = (o, e) => y(o, k(e));
|
|
13
|
+
var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
14
|
import * as l from "three";
|
|
14
|
-
import { logWarning as
|
|
15
|
-
import { createLineGeometry as
|
|
16
|
-
import { isPanoramaLike as
|
|
15
|
+
import { logWarning as P, logError as T } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as x } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as E, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
17
18
|
import "hammerjs";
|
|
18
19
|
import "@realsee/five";
|
|
19
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
20
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import { BetterTween as
|
|
23
|
-
import { loadTexture as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { filterAdjacentDistinct as
|
|
27
|
-
import { objectAssignDeepExports as
|
|
28
|
-
const
|
|
23
|
+
import { BetterTween as L, tweenProgress as O } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as V } from "../../shared-utils/three/loadTexture.js";
|
|
25
|
+
import b from "../../PanoTagPlugin/controller/index.js";
|
|
26
|
+
import G from "../Components/Tag.js";
|
|
27
|
+
import { filterAdjacentDistinct as M } from "../utils/index.js";
|
|
28
|
+
import { objectAssignDeepExports as F } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const A = (
|
|
29
30
|
/* glsl */
|
|
30
31
|
`
|
|
31
32
|
varying vec2 vUv;
|
|
@@ -35,7 +36,7 @@ const V = (
|
|
|
35
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
36
37
|
}
|
|
37
38
|
`
|
|
38
|
-
),
|
|
39
|
+
), S = (
|
|
39
40
|
/* glsl */
|
|
40
41
|
`
|
|
41
42
|
// 是否使用颜色
|
|
@@ -119,7 +120,7 @@ const V = (
|
|
|
119
120
|
}
|
|
120
121
|
`
|
|
121
122
|
);
|
|
122
|
-
class
|
|
123
|
+
class B {
|
|
123
124
|
constructor(e, i) {
|
|
124
125
|
t(this, "startTagContainer");
|
|
125
126
|
t(this, "endTagContainer");
|
|
@@ -145,12 +146,12 @@ class M {
|
|
|
145
146
|
t(this, "plugin");
|
|
146
147
|
t(this, "textureHasLoaded", !1);
|
|
147
148
|
t(this, "disposed", !1);
|
|
148
|
-
t(this, "flowAnime", new
|
|
149
|
-
t(this, "flickerAnime",
|
|
149
|
+
t(this, "flowAnime", new L({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
|
|
150
|
+
t(this, "flickerAnime", O(300).yoyo(!0).repeat(5));
|
|
150
151
|
t(this, "dispose", () => {
|
|
151
|
-
|
|
152
|
+
var e, i;
|
|
153
|
+
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.onPluginShow), this.plugin.hooks.off("hide", this.onPluginHide), this.plugin.hooks.off("enable", this.onPluginEnable), this.plugin.hooks.off("disable", this.onPluginDisable), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
|
|
152
154
|
});
|
|
153
|
-
t(this, "onTagContainerChange", (e, i) => new T({ target: e, intro: !0, props: i.data }).$destroy);
|
|
154
155
|
/** 当设置 GuideLinePLugin 展示 */
|
|
155
156
|
t(this, "onPluginShow", () => {
|
|
156
157
|
this.updateVisible();
|
|
@@ -177,22 +178,23 @@ class M {
|
|
|
177
178
|
});
|
|
178
179
|
/** 模型状态变更 */
|
|
179
180
|
t(this, "onFiveModeChange", (e) => {
|
|
180
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
181
|
+
this.modeVisible = this.mode === "panorama" ? E(e) : _(e), this.updateVisible();
|
|
181
182
|
});
|
|
182
183
|
t(this, "onFlowAnimeUpdate", (e) => {
|
|
183
184
|
const { progress: i } = e;
|
|
184
185
|
this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
185
186
|
});
|
|
186
187
|
t(this, "onFlickerAnimeUpdate", (e) => {
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
var a, s;
|
|
189
|
+
const { progress: i } = e, r = 1 - i;
|
|
190
|
+
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(g(u({}, this.startTagContainer.tag.data), { opacity: r }))), this.endTagContainer.tag && f(this.endTagContainer.tag) && ((s = this.endTagContainer.app) == null || s.$set(g(u({}, this.endTagContainer.tag.data), { opacity: r })));
|
|
189
191
|
});
|
|
190
|
-
t(this, "logWarning", (e) =>
|
|
191
|
-
t(this, "logError", (e) =>
|
|
192
|
-
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new
|
|
192
|
+
t(this, "logWarning", (e) => P("GuideLineModeItem: ", e));
|
|
193
|
+
t(this, "logError", (e) => T("GuideLineModeItem: ", e));
|
|
194
|
+
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new b(this.five) }, this.endTagContainer = { tag: null, plugin: new b(this.five) };
|
|
193
195
|
const r = new l.BufferGeometry(), a = new l.ShaderMaterial({
|
|
194
|
-
vertexShader:
|
|
195
|
-
fragmentShader:
|
|
196
|
+
vertexShader: A,
|
|
197
|
+
fragmentShader: S,
|
|
196
198
|
transparent: !0,
|
|
197
199
|
uniforms: {
|
|
198
200
|
map: { value: null },
|
|
@@ -244,28 +246,28 @@ class M {
|
|
|
244
246
|
return this.logError("disposed");
|
|
245
247
|
if (!this.five.work)
|
|
246
248
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
247
|
-
const r =
|
|
249
|
+
const r = M(e);
|
|
248
250
|
if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
249
|
-
const
|
|
250
|
-
this.skippedPositions =
|
|
251
|
+
const s = i.skipPanoGroup ? r.map((n) => this.five.work.observers[n]).map((n) => n.standingPosition.clone()) : null;
|
|
252
|
+
this.skippedPositions = s;
|
|
251
253
|
}
|
|
252
254
|
const a = this.getPathFromPanoGroup(r, this.five.work, i);
|
|
253
255
|
this.path = a, this.setGeometryByPath(a, i);
|
|
254
256
|
}
|
|
255
257
|
/** 通过路径设置线条形状 */
|
|
256
258
|
setGeometryByPath(e, i) {
|
|
257
|
-
var
|
|
259
|
+
var d, p, c;
|
|
258
260
|
if (this.disposed)
|
|
259
261
|
return this.logError("disposed");
|
|
260
|
-
const r = (
|
|
261
|
-
this.path = e, this.scale = r, this.width = a, this.unitLength =
|
|
262
|
-
const { geometry: n, maxU:
|
|
262
|
+
const r = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, a = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (c = i == null ? void 0 : i.unit_length) != null ? c : this.unitLength;
|
|
263
|
+
this.path = e, this.scale = r, this.width = a, this.unitLength = s;
|
|
264
|
+
const { geometry: n, maxU: h } = x({
|
|
263
265
|
path: e,
|
|
264
266
|
width: a * r,
|
|
265
|
-
unitLength:
|
|
267
|
+
unitLength: s * r,
|
|
266
268
|
skipPositions: this.skippedPositions
|
|
267
269
|
});
|
|
268
|
-
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value =
|
|
270
|
+
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = h, this.five.needsRender = !0;
|
|
269
271
|
}
|
|
270
272
|
/** 设置线条材质 */
|
|
271
273
|
setMartial(e) {
|
|
@@ -320,7 +322,7 @@ class M {
|
|
|
320
322
|
setTextureUrl(e) {
|
|
321
323
|
if (this.disposed)
|
|
322
324
|
return this.logError("disposed");
|
|
323
|
-
this.textureUrl = e,
|
|
325
|
+
this.textureUrl = e, V(e).then((i) => {
|
|
324
326
|
this.disposed || this.textureUrl === e && (i.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
325
327
|
});
|
|
326
328
|
}
|
|
@@ -337,14 +339,19 @@ class M {
|
|
|
337
339
|
this.flickerAnime.play();
|
|
338
340
|
}
|
|
339
341
|
setTag(e, i) {
|
|
340
|
-
const a =
|
|
342
|
+
const a = F({}, {
|
|
341
343
|
contentType: "Custom",
|
|
342
344
|
stickType: "2DPoint",
|
|
343
345
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"] } },
|
|
344
346
|
style: { point: { enabled: !1 } },
|
|
345
347
|
data: {}
|
|
346
|
-
}, i),
|
|
347
|
-
|
|
348
|
+
}, i), s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
349
|
+
s.tag = a, f(a) && (s.tag.element = (n) => {
|
|
350
|
+
var d;
|
|
351
|
+
(d = s.app) == null || d.$destroy();
|
|
352
|
+
const h = new G({ target: n, intro: !0, props: a.data });
|
|
353
|
+
return s.app = h, () => h.$destroy();
|
|
354
|
+
}), s.plugin.load({ tagList: [s.tag] });
|
|
348
355
|
}
|
|
349
356
|
/** 更新可见性 */
|
|
350
357
|
updateVisible() {
|
|
@@ -361,18 +368,18 @@ class M {
|
|
|
361
368
|
getPathFromPanoGroup(e, i, r) {
|
|
362
369
|
if (e.length < 2)
|
|
363
370
|
return [];
|
|
364
|
-
const
|
|
365
|
-
return [
|
|
371
|
+
const s = e.map((n) => i.observers[n]).map((n) => n.standingPosition.toArray());
|
|
372
|
+
return [u({ type: "CatmullRomCurve3", points: s }, r)];
|
|
366
373
|
}
|
|
367
374
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
375
|
+
function f(o) {
|
|
376
|
+
return o.contentType === "Custom";
|
|
370
377
|
}
|
|
371
|
-
const
|
|
378
|
+
const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
372
379
|
__proto__: null,
|
|
373
|
-
GuideLineModeItem:
|
|
380
|
+
GuideLineModeItem: B
|
|
374
381
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
375
382
|
export {
|
|
376
|
-
|
|
377
|
-
|
|
383
|
+
B as GuideLineModeItem,
|
|
384
|
+
Z as GuideLineModeItem$1
|
|
378
385
|
};
|
|
@@ -5,11 +5,13 @@ import type * as PluginType from './typing';
|
|
|
5
5
|
import type { GuideLineItem } from './GuideLineItem';
|
|
6
6
|
import * as THREE from 'three';
|
|
7
7
|
import { PanoTagPluginController } from '../PanoTagPlugin';
|
|
8
|
+
import CustomTag from './Components/Tag.svelte';
|
|
8
9
|
/** @link https://threejs.org/docs/index.html#api/en/extras/curves/CatmullRomCurve3 */
|
|
9
10
|
type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
|
|
10
11
|
export interface GuideLineTagContainer {
|
|
11
12
|
tag: Tag | null;
|
|
12
13
|
plugin: PanoTagPluginController;
|
|
14
|
+
app?: CustomTag;
|
|
13
15
|
}
|
|
14
16
|
/** 在不同模态下的 GuideLine */
|
|
15
17
|
declare class GuideLineModeItem {
|
|
@@ -78,12 +80,11 @@ declare class GuideLineModeItem {
|
|
|
78
80
|
setMapOpacity(opacity: number): void;
|
|
79
81
|
/** 设置贴图 */
|
|
80
82
|
setTextureUrl(url: string): void;
|
|
81
|
-
setStartTag(tag: Tag): void;
|
|
82
|
-
setEndTag(tag: Tag): void;
|
|
83
|
+
setStartTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
|
|
84
|
+
setEndTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
|
|
83
85
|
/** 闪烁 */
|
|
84
86
|
flicker(): void;
|
|
85
87
|
private setTag;
|
|
86
|
-
private onTagContainerChange;
|
|
87
88
|
/** 当设置 GuideLinePLugin 展示 */
|
|
88
89
|
private onPluginShow;
|
|
89
90
|
/** 当设置 GuideLinePLugin 隐藏 */
|
|
@@ -70,7 +70,7 @@ export type GuideLineItem = RequireAtLeastOne<{
|
|
|
70
70
|
/** 可展示的楼层 */
|
|
71
71
|
visible_floor_indexes?: null | number[];
|
|
72
72
|
/** 点位数组 */
|
|
73
|
-
pano_group?: number[];
|
|
73
|
+
pano_group?: null | number[];
|
|
74
74
|
/** 路径:由多个曲线组合而成的路径,路径为空时,会使用 pano_group 自动创建 */
|
|
75
75
|
path?: PathItem[];
|
|
76
76
|
/** 全景态使用的数据 */
|
|
@@ -85,8 +85,8 @@ export interface PanoramaGuideLineStyle extends GuideLineStyle {
|
|
|
85
85
|
}
|
|
86
86
|
/** 模型路径样式 */
|
|
87
87
|
export interface ModelGuideLineStyle extends GuideLineStyle {
|
|
88
|
-
start_tag?:
|
|
89
|
-
end_tag?:
|
|
88
|
+
start_tag?: ModelGuideLineTagData;
|
|
89
|
+
end_tag?: ModelGuideLineTagData;
|
|
90
90
|
}
|
|
91
91
|
/** 不同模态下的路线数据 */
|
|
92
92
|
export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
|
|
@@ -116,19 +116,20 @@ export interface GuideLineMaterialStyle {
|
|
|
116
116
|
/** 透明度 */
|
|
117
117
|
opacity?: number;
|
|
118
118
|
/** 贴图 */
|
|
119
|
-
texture?: {
|
|
119
|
+
texture?: null | {
|
|
120
120
|
/** 贴图地址 */
|
|
121
121
|
url: string;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
export interface ModelGuideLineTag extends Tag<'Custom', '2DPoint'> {
|
|
124
|
+
export interface ModelGuideLineTagData {
|
|
126
125
|
position: number[];
|
|
127
126
|
data: {
|
|
128
127
|
text: string;
|
|
129
128
|
icon_url: string;
|
|
130
129
|
};
|
|
131
130
|
}
|
|
131
|
+
/** 模型路线引导标签 */
|
|
132
|
+
export type ModelGuideLineTag = Tag<'Custom', '2DPoint'> & ModelGuideLineTagData;
|
|
132
133
|
/** 目前只支持 CatmullRomCurve3 */
|
|
133
134
|
export type PathItem = CatmullRomCurve3;
|
|
134
135
|
/** @link https://threejs.org/docs/index.html?q=cu#api/zh/extras/curves/CatmullRomCurve3 */
|
|
@@ -24,11 +24,11 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
24
24
|
/**
|
|
25
25
|
* @description: 获取是否展开
|
|
26
26
|
*/
|
|
27
|
-
getUnfoldedByPanoIndex(tag:
|
|
27
|
+
getUnfoldedByPanoIndex(tag: TagElement<any>, panoIndex?: number): boolean;
|
|
28
28
|
/**
|
|
29
29
|
* @description: 获取是否展开
|
|
30
30
|
*/
|
|
31
|
-
getUnfoldedByCamera(tag:
|
|
31
|
+
getUnfoldedByCamera(tag: TagElement<any, any>): boolean;
|
|
32
32
|
protected sort<T extends Tag<any, any>>(tags: T[]): T[];
|
|
33
33
|
/**
|
|
34
34
|
* @description: 一个点的标签
|
|
@@ -41,7 +41,7 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
41
41
|
/**
|
|
42
42
|
* @description: 一个点的标签
|
|
43
43
|
*/
|
|
44
|
-
protected getTagProject(tag:
|
|
44
|
+
protected getTagProject(tag: TagElement<any, any>): {
|
|
45
45
|
x: number;
|
|
46
46
|
y: number;
|
|
47
47
|
z: number;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var U = Object.defineProperty, B = Object.defineProperties;
|
|
2
2
|
var M = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var x = Object.getOwnPropertySymbols;
|
|
4
4
|
var R = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var y = (d, f, e) => f in d ?
|
|
5
|
+
var y = (d, f, e) => f in d ? U(d, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[f] = e, I = (d, f) => {
|
|
6
6
|
for (var e in f || (f = {}))
|
|
7
7
|
R.call(f, e) && y(d, e, f[e]);
|
|
8
8
|
if (x)
|
|
9
9
|
for (var e of x(f))
|
|
10
10
|
D.call(f, e) && y(d, e, f[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, P = (d, f) =>
|
|
12
|
+
}, P = (d, f) => B(d, M(f));
|
|
13
13
|
var T = (d, f, e) => (y(d, typeof f != "symbol" ? f + "" : f, e), e);
|
|
14
14
|
import * as C from "three";
|
|
15
15
|
import { isMediaModelTag as m, is3DTag as j } from "../utils/tag/tagCheck.js";
|
|
@@ -188,7 +188,8 @@ class be extends S {
|
|
|
188
188
|
* @description: 获取是否展开
|
|
189
189
|
*/
|
|
190
190
|
getUnfoldedByCamera(e) {
|
|
191
|
-
|
|
191
|
+
const i = this.getVisible(e);
|
|
192
|
+
return console.log("🐶 ==> visible:", i), i ? (() => {
|
|
192
193
|
var l;
|
|
193
194
|
const s = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
|
|
194
195
|
if (t) {
|
|
@@ -290,7 +291,7 @@ class be extends S {
|
|
|
290
291
|
* @description: 一个点的标签
|
|
291
292
|
*/
|
|
292
293
|
getTagProject(e) {
|
|
293
|
-
if (!this.
|
|
294
|
+
if (!this.getVisible(e))
|
|
294
295
|
return;
|
|
295
296
|
const n = V(e.position);
|
|
296
297
|
if (!n)
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -363,7 +363,7 @@ import "./shared-utils/three/PointHelper.js";
|
|
|
363
363
|
import "./shared-utils/three/Assets/index.js";
|
|
364
364
|
import "./shared-utils/three/PointDomHelper.js";
|
|
365
365
|
import "./shared-utils/three/FivePointSelector.js";
|
|
366
|
-
console.info("@realsee/dnalogel %cv2.16.0-
|
|
366
|
+
console.info("@realsee/dnalogel %cv2.16.0-16", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
367
367
|
export {
|
|
368
368
|
le as CSS3DRender,
|
|
369
369
|
Zm as CSS3DRenderPlugin,
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
9
9
|
"description": "如视 VR 看房插件合集",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "2.16.0-
|
|
11
|
+
"version": "2.16.0-16",
|
|
12
12
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|