@realsee/dnalogel 2.16.0-15 → 2.16.0-17
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/GuideLineItem.d.ts +4 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -10
- package/dist/GuideLinePlugin/typing.d.ts +13 -6
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +1859 -1844
- package/dist/index.umd.js +31 -31
- 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 +52 -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 +9 -8
- 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 +41 -8
- 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 +54 -33
- package/libs/GuideLinePlugin/GuideLineItem/index.js +67 -57
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +4 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +39 -55
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -10
- package/libs/GuideLinePlugin/typing.d.ts +13 -6
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +5 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,61 +1,71 @@
|
|
|
1
|
-
var
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var G = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var h = (o, e, t) => e in o ? y(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, d = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
G.call(e, t) && h(o, t, e[t]);
|
|
7
7
|
if (w)
|
|
8
8
|
for (var t of w(e))
|
|
9
|
-
|
|
9
|
+
L.call(e, t) && h(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
|
-
var s = (o, e, t) => (
|
|
13
|
-
var c = (o, e, t) => new Promise((
|
|
14
|
-
var l = (
|
|
12
|
+
var s = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var c = (o, e, t) => new Promise((i, n) => {
|
|
14
|
+
var l = (r) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
n(
|
|
16
|
+
a(t.next(r));
|
|
17
|
+
} catch (u) {
|
|
18
|
+
n(u);
|
|
19
19
|
}
|
|
20
|
-
}, m = (
|
|
20
|
+
}, m = (r) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
n(
|
|
22
|
+
a(t.throw(r));
|
|
23
|
+
} catch (u) {
|
|
24
|
+
n(u);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, a = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(l, m);
|
|
27
|
+
a((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { GuideLineModeItem as
|
|
30
|
-
import
|
|
31
|
-
import { logError as
|
|
32
|
-
import { to as
|
|
33
|
-
import { Subscribe as
|
|
34
|
-
import { changeMode as
|
|
35
|
-
class
|
|
29
|
+
import { GuideLineModeItem as _ } from "../GuideLineModeItem/index.js";
|
|
30
|
+
import S from "../../CruisePlugin/Controller.js";
|
|
31
|
+
import { logError as k } from "../../shared-utils/log.js";
|
|
32
|
+
import { to as P } from "../../shared-utils/to.js";
|
|
33
|
+
import { Subscribe as b } from "@realsee/five";
|
|
34
|
+
import { changeMode as x } from "../../shared-utils/five/changeMode.js";
|
|
35
|
+
class C {
|
|
36
36
|
constructor(e) {
|
|
37
37
|
s(this, "id");
|
|
38
38
|
s(this, "renderID");
|
|
39
39
|
s(this, "isGuideLine", !0);
|
|
40
40
|
s(this, "panoramaItem");
|
|
41
41
|
s(this, "modelItem");
|
|
42
|
-
s(this, "hooks", new
|
|
42
|
+
s(this, "hooks", new b());
|
|
43
|
+
s(this, "_visible", !0);
|
|
43
44
|
s(this, "plugin");
|
|
44
45
|
s(this, "five");
|
|
45
|
-
s(this, "logError", (e) =>
|
|
46
|
-
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new
|
|
46
|
+
s(this, "logError", (e) => k("GuideLineItem: ", e));
|
|
47
|
+
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new _(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new _(this.five, { mode: "model", plugin: this.plugin, parent: this });
|
|
48
|
+
}
|
|
49
|
+
get visible() {
|
|
50
|
+
return this._visible;
|
|
47
51
|
}
|
|
48
52
|
setData(e) {
|
|
49
53
|
this.setDataByMode("panorama", e), this.setDataByMode("model", e);
|
|
50
54
|
}
|
|
51
55
|
setDataByMode(e, t) {
|
|
52
|
-
const
|
|
56
|
+
const i = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style, l = t.path, m = n, a = n;
|
|
53
57
|
if (t.pano_group) {
|
|
54
|
-
const
|
|
55
|
-
|
|
58
|
+
const r = e === "panorama";
|
|
59
|
+
i.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: r }, m));
|
|
56
60
|
} else
|
|
57
|
-
t.path &&
|
|
58
|
-
|
|
61
|
+
t.path && i.setGeometryByPath(l, m);
|
|
62
|
+
i.setMartial(a), n != null && n.start_tag && i.setStartTag(n == null ? void 0 : n.start_tag), n != null && n.end_tag && i.setEndTag(n.end_tag);
|
|
63
|
+
}
|
|
64
|
+
show() {
|
|
65
|
+
this._visible = !0, this.hooks.emit("show", { userAction: !0 });
|
|
66
|
+
}
|
|
67
|
+
hide() {
|
|
68
|
+
this._visible = !1, this.hooks.emit("hide", { userAction: !0 });
|
|
59
69
|
}
|
|
60
70
|
dispose() {
|
|
61
71
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
@@ -64,54 +74,54 @@ class M {
|
|
|
64
74
|
return c(this, null, function* () {
|
|
65
75
|
if (!this.panoramaItem.panoGroup)
|
|
66
76
|
return;
|
|
67
|
-
const t =
|
|
77
|
+
const t = d({ panoIndexList: this.panoramaItem.panoGroup }, e);
|
|
68
78
|
this.hooks.emit("walkStart", { userAction: !0 });
|
|
69
|
-
const [
|
|
70
|
-
if (this.hooks.emit("walkEnded", { userAction: !0 }),
|
|
71
|
-
return this.logError(
|
|
79
|
+
const [i] = yield P(M(this.five, t));
|
|
80
|
+
if (this.hooks.emit("walkEnded", { userAction: !0 }), i)
|
|
81
|
+
return this.logError(i.message);
|
|
72
82
|
});
|
|
73
83
|
}
|
|
74
84
|
}
|
|
75
|
-
function
|
|
85
|
+
function M(o, e) {
|
|
76
86
|
return c(this, null, function* () {
|
|
77
87
|
if (e.panoIndexList.length === 0)
|
|
78
88
|
return;
|
|
79
89
|
const t = o.getCurrentState();
|
|
80
|
-
t.mode !== "Panorama" && (yield
|
|
81
|
-
const
|
|
82
|
-
yield
|
|
90
|
+
t.mode !== "Panorama" && (yield x(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
|
|
91
|
+
const i = new S(o, { useGuideLine: !1 });
|
|
92
|
+
yield i.load(e), yield new Promise((n, l) => {
|
|
83
93
|
const m = o.getCurrentState();
|
|
84
|
-
let
|
|
85
|
-
m.panoIndex ===
|
|
86
|
-
function
|
|
87
|
-
if (
|
|
94
|
+
let a = e.panoIndexList.slice();
|
|
95
|
+
m.panoIndex === a[0] && u(m.panoIndex), i.playFromStart();
|
|
96
|
+
function r(p) {
|
|
97
|
+
if (p !== "Panorama")
|
|
88
98
|
return f(new Error("mode not match"));
|
|
89
99
|
}
|
|
90
|
-
function p
|
|
91
|
-
const I =
|
|
92
|
-
if (
|
|
93
|
-
return f(new Error("panoIndex not match, wanted: " + I + ", got: " +
|
|
94
|
-
if (
|
|
95
|
-
return
|
|
100
|
+
function u(p) {
|
|
101
|
+
const I = a[0];
|
|
102
|
+
if (a = a.slice(1), p !== I)
|
|
103
|
+
return f(new Error("panoIndex not match, wanted: " + I + ", got: " + p));
|
|
104
|
+
if (a.length === 0)
|
|
105
|
+
return v();
|
|
96
106
|
}
|
|
97
107
|
function g() {
|
|
98
|
-
o.off("modeChange",
|
|
108
|
+
o.off("modeChange", r), o.off("panoArrived", u);
|
|
99
109
|
}
|
|
100
|
-
function f(
|
|
101
|
-
g(), l(
|
|
110
|
+
function f(p) {
|
|
111
|
+
g(), l(p);
|
|
102
112
|
}
|
|
103
|
-
function
|
|
113
|
+
function v() {
|
|
104
114
|
g(), n();
|
|
105
115
|
}
|
|
106
|
-
o.on("modeChange",
|
|
116
|
+
o.on("modeChange", r), o.on("panoArrived", u);
|
|
107
117
|
});
|
|
108
118
|
});
|
|
109
119
|
}
|
|
110
120
|
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
111
121
|
__proto__: null,
|
|
112
|
-
GuideLineItem:
|
|
122
|
+
GuideLineItem: C
|
|
113
123
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
114
124
|
export {
|
|
115
|
-
|
|
125
|
+
C as GuideLineItem,
|
|
116
126
|
O as GuideLineItem$1
|
|
117
127
|
};
|
|
@@ -16,6 +16,8 @@ declare class GuideLineItem {
|
|
|
16
16
|
readonly panoramaItem: GuideLineModeItem;
|
|
17
17
|
readonly modelItem: GuideLineModeItem;
|
|
18
18
|
readonly hooks: Subscribe<PluginType.GuideLineItemEventMap>;
|
|
19
|
+
get visible(): boolean;
|
|
20
|
+
private _visible;
|
|
19
21
|
private plugin;
|
|
20
22
|
private five;
|
|
21
23
|
constructor(options: {
|
|
@@ -25,6 +27,8 @@ declare class GuideLineItem {
|
|
|
25
27
|
});
|
|
26
28
|
setData(data: PluginType.GuideLineItem): void;
|
|
27
29
|
setDataByMode(mode: PluginType.GuideLineModeItemMode, data: PluginType.GuideLineItem): void;
|
|
30
|
+
show(): void;
|
|
31
|
+
hide(): void;
|
|
28
32
|
dispose(): void;
|
|
29
33
|
walk(options?: CruisePluginTypes.MoveAction): Promise<void>;
|
|
30
34
|
private logError;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var C = Object.defineProperty, y = Object.defineProperties;
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var v = Object.getOwnPropertySymbols;
|
|
4
|
-
var w = Object.prototype.hasOwnProperty,
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
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) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
w.call(e, i) && m(o, i, e[i]);
|
|
8
8
|
if (v)
|
|
9
9
|
for (var i of v(e))
|
|
10
|
-
|
|
10
|
+
T.call(e, i) && m(o, i, e[i]);
|
|
11
11
|
return o;
|
|
12
12
|
}, g = (o, e) => y(o, k(e));
|
|
13
13
|
var t = (o, e, i) => (m(o, typeof e != "symbol" ? e + "" : e, i), i);
|
|
14
|
-
import * as
|
|
15
|
-
import { logWarning as
|
|
14
|
+
import * as h from "three";
|
|
15
|
+
import { logWarning as U, logError as V } from "../../shared-utils/log.js";
|
|
16
16
|
import { createLineGeometry as x } from "../utils/createLineGeometry.js";
|
|
17
|
-
import { isPanoramaLike as
|
|
17
|
+
import { isPanoramaLike as _, isModelLike as L } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { BetterTween as
|
|
24
|
-
import { loadTexture as
|
|
23
|
+
import { BetterTween as O, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as P } from "../../shared-utils/three/loadTexture.js";
|
|
25
25
|
import b from "../../PanoTagPlugin/controller/index.js";
|
|
26
26
|
import G from "../Components/Tag.js";
|
|
27
27
|
import { filterAdjacentDistinct as M } from "../utils/index.js";
|
|
@@ -36,7 +36,7 @@ const A = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), B = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -120,7 +120,7 @@ const A = (
|
|
|
120
120
|
}
|
|
121
121
|
`
|
|
122
122
|
);
|
|
123
|
-
class
|
|
123
|
+
class S {
|
|
124
124
|
constructor(e, i) {
|
|
125
125
|
t(this, "startTagContainer");
|
|
126
126
|
t(this, "endTagContainer");
|
|
@@ -146,27 +146,11 @@ class B {
|
|
|
146
146
|
t(this, "plugin");
|
|
147
147
|
t(this, "textureHasLoaded", !1);
|
|
148
148
|
t(this, "disposed", !1);
|
|
149
|
-
t(this, "flowAnime", new
|
|
150
|
-
t(this, "flickerAnime",
|
|
149
|
+
t(this, "flowAnime", new O({ progress: 0 }).to({ progress: 1 }).duration(5e3).repeat(1 / 0));
|
|
150
|
+
t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
151
151
|
t(this, "dispose", () => {
|
|
152
152
|
var e, i;
|
|
153
|
-
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.plugin.hooks.off("show", this.
|
|
154
|
-
});
|
|
155
|
-
/** 当设置 GuideLinePLugin 展示 */
|
|
156
|
-
t(this, "onPluginShow", () => {
|
|
157
|
-
this.updateVisible();
|
|
158
|
-
});
|
|
159
|
-
/** 当设置 GuideLinePLugin 隐藏 */
|
|
160
|
-
t(this, "onPluginHide", () => {
|
|
161
|
-
this.updateVisible();
|
|
162
|
-
});
|
|
163
|
-
/** 当设置 GuideLinePLugin 开启 */
|
|
164
|
-
t(this, "onPluginEnable", () => {
|
|
165
|
-
this.updateVisible();
|
|
166
|
-
});
|
|
167
|
-
/** 当设置 GuideLinePLugin 关闭 */
|
|
168
|
-
t(this, "onPluginDisable", () => {
|
|
169
|
-
this.updateVisible();
|
|
153
|
+
this.disposed || (this.disposed = !0, this.five.off("modeChange", this.onFiveModeChange), this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
|
|
170
154
|
});
|
|
171
155
|
/** 开始走点动画 */
|
|
172
156
|
t(this, "onWalkAnimationStart", () => {
|
|
@@ -178,7 +162,12 @@ class B {
|
|
|
178
162
|
});
|
|
179
163
|
/** 模型状态变更 */
|
|
180
164
|
t(this, "onFiveModeChange", (e) => {
|
|
181
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
165
|
+
this.modeVisible = this.mode === "panorama" ? _(e) : L(e), this.updateVisible();
|
|
166
|
+
});
|
|
167
|
+
/** 更新可见性 */
|
|
168
|
+
t(this, "updateVisible", () => {
|
|
169
|
+
const e = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
|
|
170
|
+
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
182
171
|
});
|
|
183
172
|
t(this, "onFlowAnimeUpdate", (e) => {
|
|
184
173
|
const { progress: i } = e;
|
|
@@ -189,21 +178,21 @@ class B {
|
|
|
189
178
|
const { progress: i } = e, r = 1 - i;
|
|
190
179
|
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 })));
|
|
191
180
|
});
|
|
192
|
-
t(this, "logWarning", (e) =>
|
|
193
|
-
t(this, "logError", (e) =>
|
|
181
|
+
t(this, "logWarning", (e) => U("GuideLineModeItem: ", e));
|
|
182
|
+
t(this, "logError", (e) => V("GuideLineModeItem: ", e));
|
|
194
183
|
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) };
|
|
195
|
-
const r = new
|
|
184
|
+
const r = new h.BufferGeometry(), a = new h.ShaderMaterial({
|
|
196
185
|
vertexShader: A,
|
|
197
|
-
fragmentShader:
|
|
186
|
+
fragmentShader: B,
|
|
198
187
|
transparent: !0,
|
|
199
188
|
uniforms: {
|
|
200
189
|
map: { value: null },
|
|
201
190
|
useMapColor: { value: 0 },
|
|
202
|
-
mapColor: { value: new
|
|
191
|
+
mapColor: { value: new h.Color() },
|
|
203
192
|
mapOpacity: { value: 1 },
|
|
204
|
-
backgroundColor: { value: new
|
|
193
|
+
backgroundColor: { value: new h.Color() },
|
|
205
194
|
backgroundOpacity: { value: 0 },
|
|
206
|
-
borderColor: { value: new
|
|
195
|
+
borderColor: { value: new h.Color() },
|
|
207
196
|
borderOpacity: { value: 0 },
|
|
208
197
|
opacity: { value: 1 },
|
|
209
198
|
flicker: { value: 1 },
|
|
@@ -211,7 +200,7 @@ class B {
|
|
|
211
200
|
vOffset: { value: 0 }
|
|
212
201
|
}
|
|
213
202
|
});
|
|
214
|
-
this.mesh = new
|
|
203
|
+
this.mesh = new h.Mesh(r, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
|
|
215
204
|
}
|
|
216
205
|
get panoGroup() {
|
|
217
206
|
return this._panoGroup;
|
|
@@ -261,13 +250,13 @@ class B {
|
|
|
261
250
|
return this.logError("disposed");
|
|
262
251
|
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
252
|
this.path = e, this.scale = r, this.width = a, this.unitLength = s;
|
|
264
|
-
const { geometry: n, maxU:
|
|
253
|
+
const { geometry: n, maxU: l } = x({
|
|
265
254
|
path: e,
|
|
266
255
|
width: a * r,
|
|
267
256
|
unitLength: s * r,
|
|
268
257
|
skipPositions: this.skippedPositions
|
|
269
258
|
});
|
|
270
|
-
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value =
|
|
259
|
+
this.mesh.geometry = n, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
|
|
271
260
|
}
|
|
272
261
|
/** 设置线条材质 */
|
|
273
262
|
setMartial(e) {
|
|
@@ -280,13 +269,13 @@ class B {
|
|
|
280
269
|
setColor(e) {
|
|
281
270
|
if (this.disposed)
|
|
282
271
|
return this.logError("disposed");
|
|
283
|
-
e && (this.mesh.material.uniforms.mapColor.value = new
|
|
272
|
+
e && (this.mesh.material.uniforms.mapColor.value = new h.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
284
273
|
}
|
|
285
274
|
/** 设置边框 */
|
|
286
275
|
setBorderColor(e) {
|
|
287
276
|
if (this.disposed)
|
|
288
277
|
return this.logError("disposed");
|
|
289
|
-
this.mesh.material.uniforms.borderColor.value = new
|
|
278
|
+
this.mesh.material.uniforms.borderColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
290
279
|
}
|
|
291
280
|
/** 设置边框透明度 */
|
|
292
281
|
setBorderOpacity(e) {
|
|
@@ -298,7 +287,7 @@ class B {
|
|
|
298
287
|
setBackgroundColor(e) {
|
|
299
288
|
if (this.disposed)
|
|
300
289
|
return this.logError("disposed");
|
|
301
|
-
|
|
290
|
+
this.mesh.material.uniforms.backgroundColor.value = new h.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
302
291
|
}
|
|
303
292
|
/** 设置背景透明度 */
|
|
304
293
|
setBackgroundOpacity(e) {
|
|
@@ -322,8 +311,8 @@ class B {
|
|
|
322
311
|
setTextureUrl(e) {
|
|
323
312
|
if (this.disposed)
|
|
324
313
|
return this.logError("disposed");
|
|
325
|
-
this.textureUrl = e,
|
|
326
|
-
this.disposed || this.textureUrl === e && (i.wrapT =
|
|
314
|
+
this.textureUrl = e, P(e).then((i) => {
|
|
315
|
+
this.disposed || this.textureUrl === e && (i.wrapT = h.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());
|
|
327
316
|
});
|
|
328
317
|
}
|
|
329
318
|
setStartTag(e) {
|
|
@@ -349,20 +338,15 @@ class B {
|
|
|
349
338
|
s.tag = a, f(a) && (s.tag.element = (n) => {
|
|
350
339
|
var d;
|
|
351
340
|
(d = s.app) == null || d.$destroy();
|
|
352
|
-
const
|
|
353
|
-
return s.app =
|
|
341
|
+
const l = new G({ target: n, intro: !0, props: a.data });
|
|
342
|
+
return s.app = l, () => l.$destroy();
|
|
354
343
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
355
344
|
}
|
|
356
|
-
/** 更新可见性 */
|
|
357
|
-
updateVisible() {
|
|
358
|
-
const e = (() => !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible)();
|
|
359
|
-
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
360
|
-
}
|
|
361
345
|
doShow() {
|
|
362
|
-
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.five.needsRender = !0;
|
|
346
|
+
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
363
347
|
}
|
|
364
348
|
doHide() {
|
|
365
|
-
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
349
|
+
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
366
350
|
}
|
|
367
351
|
/** 通过 panoIndex 数组计算路径 */
|
|
368
352
|
getPathFromPanoGroup(e, i, r) {
|
|
@@ -377,9 +361,9 @@ function f(o) {
|
|
|
377
361
|
}
|
|
378
362
|
const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
379
363
|
__proto__: null,
|
|
380
|
-
GuideLineModeItem:
|
|
364
|
+
GuideLineModeItem: S
|
|
381
365
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
382
366
|
export {
|
|
383
|
-
|
|
367
|
+
S as GuideLineModeItem,
|
|
384
368
|
Z as GuideLineModeItem$1
|
|
385
369
|
};
|
|
@@ -80,19 +80,11 @@ declare class GuideLineModeItem {
|
|
|
80
80
|
setMapOpacity(opacity: number): void;
|
|
81
81
|
/** 设置贴图 */
|
|
82
82
|
setTextureUrl(url: string): void;
|
|
83
|
-
setStartTag(tag: Tag): void;
|
|
84
|
-
setEndTag(tag: Tag): void;
|
|
83
|
+
setStartTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
|
|
84
|
+
setEndTag(tag: Tag | PluginType.ModelGuideLineTagData): void;
|
|
85
85
|
/** 闪烁 */
|
|
86
86
|
flicker(): void;
|
|
87
87
|
private setTag;
|
|
88
|
-
/** 当设置 GuideLinePLugin 展示 */
|
|
89
|
-
private onPluginShow;
|
|
90
|
-
/** 当设置 GuideLinePLugin 隐藏 */
|
|
91
|
-
private onPluginHide;
|
|
92
|
-
/** 当设置 GuideLinePLugin 开启 */
|
|
93
|
-
private onPluginEnable;
|
|
94
|
-
/** 当设置 GuideLinePLugin 关闭 */
|
|
95
|
-
private onPluginDisable;
|
|
96
88
|
/** 开始走点动画 */
|
|
97
89
|
private onWalkAnimationStart;
|
|
98
90
|
/** 结束走点动画 */
|
|
@@ -41,6 +41,12 @@ export interface EventMap extends BasePluginWithData.EventMap<PluginState, Plugi
|
|
|
41
41
|
}) => void;
|
|
42
42
|
}
|
|
43
43
|
export type GuideLineItemEventMap = {
|
|
44
|
+
show: (options: {
|
|
45
|
+
userAction: boolean;
|
|
46
|
+
}) => void;
|
|
47
|
+
hide: (options: {
|
|
48
|
+
userAction: boolean;
|
|
49
|
+
}) => void;
|
|
44
50
|
walkStart: (options: {
|
|
45
51
|
userAction: boolean;
|
|
46
52
|
}) => void;
|
|
@@ -70,7 +76,7 @@ export type GuideLineItem = RequireAtLeastOne<{
|
|
|
70
76
|
/** 可展示的楼层 */
|
|
71
77
|
visible_floor_indexes?: null | number[];
|
|
72
78
|
/** 点位数组 */
|
|
73
|
-
pano_group?: number[];
|
|
79
|
+
pano_group?: null | number[];
|
|
74
80
|
/** 路径:由多个曲线组合而成的路径,路径为空时,会使用 pano_group 自动创建 */
|
|
75
81
|
path?: PathItem[];
|
|
76
82
|
/** 全景态使用的数据 */
|
|
@@ -85,8 +91,8 @@ export interface PanoramaGuideLineStyle extends GuideLineStyle {
|
|
|
85
91
|
}
|
|
86
92
|
/** 模型路径样式 */
|
|
87
93
|
export interface ModelGuideLineStyle extends GuideLineStyle {
|
|
88
|
-
start_tag?:
|
|
89
|
-
end_tag?:
|
|
94
|
+
start_tag?: ModelGuideLineTagData;
|
|
95
|
+
end_tag?: ModelGuideLineTagData;
|
|
90
96
|
}
|
|
91
97
|
/** 不同模态下的路线数据 */
|
|
92
98
|
export type GuideLineStyle = GuideLineGeometryStyle & GuideLineMaterialStyle;
|
|
@@ -116,19 +122,20 @@ export interface GuideLineMaterialStyle {
|
|
|
116
122
|
/** 透明度 */
|
|
117
123
|
opacity?: number;
|
|
118
124
|
/** 贴图 */
|
|
119
|
-
texture?: {
|
|
125
|
+
texture?: null | {
|
|
120
126
|
/** 贴图地址 */
|
|
121
127
|
url: string;
|
|
122
128
|
};
|
|
123
129
|
}
|
|
124
|
-
|
|
125
|
-
export interface ModelGuideLineTag extends Tag<'Custom', '2DPoint'> {
|
|
130
|
+
export interface ModelGuideLineTagData {
|
|
126
131
|
position: number[];
|
|
127
132
|
data: {
|
|
128
133
|
text: string;
|
|
129
134
|
icon_url: string;
|
|
130
135
|
};
|
|
131
136
|
}
|
|
137
|
+
/** 模型路线引导标签 */
|
|
138
|
+
export type ModelGuideLineTag = Tag<'Custom', '2DPoint'> & ModelGuideLineTagData;
|
|
132
139
|
/** 目前只支持 CatmullRomCurve3 */
|
|
133
140
|
export type PathItem = CatmullRomCurve3;
|
|
134
141
|
/** @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,7 @@ class be extends S {
|
|
|
188
188
|
* @description: 获取是否展开
|
|
189
189
|
*/
|
|
190
190
|
getUnfoldedByCamera(e) {
|
|
191
|
-
return this.
|
|
191
|
+
return this.getVisible(e) ? (() => {
|
|
192
192
|
var l;
|
|
193
193
|
const s = this.getDistance(e), t = this.getTagConfig(e).unfoldedConfig;
|
|
194
194
|
if (t) {
|
|
@@ -290,7 +290,7 @@ class be extends S {
|
|
|
290
290
|
* @description: 一个点的标签
|
|
291
291
|
*/
|
|
292
292
|
getTagProject(e) {
|
|
293
|
-
if (!this.
|
|
293
|
+
if (!this.getVisible(e))
|
|
294
294
|
return;
|
|
295
295
|
const n = V(e.position);
|
|
296
296
|
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-17", "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-17",
|
|
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*",
|