@realsee/dnalogel 2.20.1 → 2.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GuideLinePlugin/Controller.d.ts +3 -3
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -16
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -2
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +580 -616
- package/dist/index.umd.js +19 -19
- package/docs/assets/search.js +1 -1
- 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 +31 -79
- 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 +46 -46
- 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/PointType.html +6 -6
- 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/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.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/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/PartialObjectDeep.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.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/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.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/GuideLinePlugin/Controller.d.ts +3 -3
- package/libs/GuideLinePlugin/Controller.js +39 -39
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +76 -108
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +17 -19
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +28 -30
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
2
|
var S = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var f = (
|
|
3
|
+
var N = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var f = (s, o, t) => o in s ? M(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, c = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
|
|
6
|
+
N.call(o, t) && f(s, t, o[t]);
|
|
7
7
|
if (S)
|
|
8
8
|
for (var t of S(o))
|
|
9
|
-
|
|
10
|
-
return
|
|
9
|
+
O.call(o, t) && f(s, t, o[t]);
|
|
10
|
+
return s;
|
|
11
11
|
};
|
|
12
|
-
var d = (
|
|
13
|
-
var u = (
|
|
12
|
+
var d = (s, o, t) => (f(s, typeof o != "symbol" ? o + "" : o, t), t);
|
|
13
|
+
var u = (s, o, t) => new Promise((i, p) => {
|
|
14
14
|
var a = (m) => {
|
|
15
15
|
try {
|
|
16
16
|
r(t.next(m));
|
|
17
17
|
} catch (n) {
|
|
18
|
-
|
|
18
|
+
p(n);
|
|
19
19
|
}
|
|
20
20
|
}, e = (m) => {
|
|
21
21
|
try {
|
|
22
22
|
r(t.throw(m));
|
|
23
23
|
} catch (n) {
|
|
24
|
-
|
|
24
|
+
p(n);
|
|
25
25
|
}
|
|
26
26
|
}, r = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(a, e);
|
|
27
|
-
r((t = t.apply(
|
|
27
|
+
r((t = t.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { GuideLineItem as
|
|
32
|
-
import
|
|
29
|
+
import { Controller as P } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as $ } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as k } from "./GuideLineItem/index.js";
|
|
32
|
+
import x from "../CruisePlugin/Controller.js";
|
|
33
33
|
import { objectAssignDeepExports as T } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
-
import * as
|
|
34
|
+
import * as V from "three";
|
|
35
35
|
import "../base/BasePlugin.js";
|
|
36
36
|
import "../shared-utils/Subscribe.js";
|
|
37
37
|
import "hammerjs";
|
|
@@ -188,52 +188,52 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
188
188
|
import "../CruisePlugin/utils/formatRad.js";
|
|
189
189
|
import "../CruisePlugin/utils/linerValue.js";
|
|
190
190
|
import "../CruisePlugin/utils/sleep.js";
|
|
191
|
-
const
|
|
192
|
-
class
|
|
191
|
+
const _ = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${_}`, Wr = (s) => `${g}--${s}`;
|
|
192
|
+
class Ur extends P {
|
|
193
193
|
constructor(t, i) {
|
|
194
194
|
super(t, i);
|
|
195
|
-
d(this, "version",
|
|
195
|
+
d(this, "version", _);
|
|
196
196
|
d(this, "name", b);
|
|
197
197
|
d(this, "cruisePlugin");
|
|
198
198
|
/** GuideLineItem 索引 */
|
|
199
199
|
d(this, "itemMap", /* @__PURE__ */ new Map());
|
|
200
|
+
/** 当新增一根线时,整体高度的偏移值 */
|
|
201
|
+
d(this, "heightOffset", 0);
|
|
200
202
|
d(this, "state", {
|
|
201
203
|
visible: !1,
|
|
202
204
|
enabled: !0
|
|
203
205
|
});
|
|
204
206
|
d(this, "data");
|
|
205
|
-
/** 当新增一根线时,整体高度的偏移值 */
|
|
206
|
-
d(this, "heightOffset", 0);
|
|
207
207
|
d(this, "_disposed", !1);
|
|
208
208
|
d(this, "disposedErrorLog", () => {
|
|
209
209
|
console.error(`${g} is disposed`);
|
|
210
210
|
});
|
|
211
|
-
this.cruisePlugin = new
|
|
211
|
+
this.cruisePlugin = new x(t, { useGuideLine: !1 }), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
212
212
|
}
|
|
213
213
|
get disposed() {
|
|
214
214
|
return this._disposed;
|
|
215
215
|
}
|
|
216
|
-
load(t, i,
|
|
216
|
+
load(t, i, p = !0) {
|
|
217
217
|
return u(this, null, function* () {
|
|
218
218
|
var v, w, E, I, y, L, D;
|
|
219
219
|
if (this.disposed)
|
|
220
220
|
return;
|
|
221
221
|
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
222
222
|
this.hooks.emit("dataChange", e, a), this.data = e;
|
|
223
|
-
const r = e.config,
|
|
223
|
+
const r = e.config, n = {
|
|
224
224
|
panorama_style: {
|
|
225
|
-
visible: !
|
|
225
|
+
visible: !!(!e.lines && e.routes),
|
|
226
226
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
227
227
|
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
228
228
|
texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
229
229
|
}
|
|
230
|
-
},
|
|
230
|
+
}, h = (y = (I = e.routes) == null ? void 0 : I.map((l) => {
|
|
231
231
|
var G;
|
|
232
|
-
return T({},
|
|
233
|
-
})) != null ? y : [],
|
|
232
|
+
return T({}, n, { id: (G = l.id) != null ? G : Date.now(), pano_group: l.panoIndexList });
|
|
233
|
+
})) != null ? y : [], A = (D = (L = e.lines) == null ? void 0 : L.map((l) => T({}, n, l))) != null ? D : [], C = [...h, ...A];
|
|
234
234
|
yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
|
|
235
235
|
this.addGuideLineItem(l);
|
|
236
|
-
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction:
|
|
236
|
+
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: p }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
formatData(t) {
|
|
@@ -269,14 +269,14 @@ class Wr extends O {
|
|
|
269
269
|
var a;
|
|
270
270
|
if (this.disposed)
|
|
271
271
|
return this.disposedErrorLog();
|
|
272
|
-
const
|
|
273
|
-
this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !==
|
|
272
|
+
const p = c({}, this.state);
|
|
273
|
+
this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !== p.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== p.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(p, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: p, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 }), this.five.needsRender = !0);
|
|
274
274
|
}
|
|
275
275
|
/** 添加一个 GuideLineItem */
|
|
276
276
|
addGuideLineItem(t) {
|
|
277
|
-
const i = t.render_id || t.id,
|
|
278
|
-
|
|
279
|
-
const a = new
|
|
277
|
+
const i = t.render_id || t.id, p = this.itemMap.get(i);
|
|
278
|
+
p && this.removeGuideLineItem(p);
|
|
279
|
+
const a = new k({ five: this.five, id: i, plugin: this });
|
|
280
280
|
return this.itemMap.set(i, a), t && a.setData(t), this.heightOffset += 1e-4, a.setHeightOffset(this.heightOffset), a;
|
|
281
281
|
}
|
|
282
282
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -293,15 +293,15 @@ class Wr extends O {
|
|
|
293
293
|
function i(e) {
|
|
294
294
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return new
|
|
296
|
+
function p(e, r) {
|
|
297
|
+
return new V.Vector3().fromArray(e).distanceTo(new V.Vector3().fromArray(r)) < 0.01;
|
|
298
298
|
}
|
|
299
299
|
function a(e) {
|
|
300
300
|
var m;
|
|
301
301
|
const r = (m = e.tag) == null ? void 0 : m.position;
|
|
302
302
|
return i(r) ? t.every((n) => {
|
|
303
303
|
var h;
|
|
304
|
-
return i((h = n.tag) == null ? void 0 : h.position) ? !
|
|
304
|
+
return i((h = n.tag) == null ? void 0 : h.position) ? !p(r, n.tag.position) : !0;
|
|
305
305
|
}) : !1;
|
|
306
306
|
}
|
|
307
307
|
this.itemMap.forEach((e) => {
|
|
@@ -344,6 +344,6 @@ class Wr extends O {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
Ur as default,
|
|
348
|
+
Wr as pluginFlag
|
|
349
349
|
};
|
|
@@ -2,7 +2,7 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import type GuideLinePlugin from './Controller';
|
|
3
3
|
import type * as PluginType from './typing';
|
|
4
4
|
import { GuideLineModeItem } from './GuideLineModeItem';
|
|
5
|
-
import
|
|
5
|
+
import { CruisePluginTypes } from '../CruisePlugin';
|
|
6
6
|
import { Subscribe } from '@realsee/five';
|
|
7
7
|
/** 路线引导实例。
|
|
8
8
|
* - 路线包括两个部分:全景路线和模型路线。
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var C = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var c = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, F = 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) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var t = (
|
|
14
|
-
import * as
|
|
15
|
-
import { logWarning as V, logError as
|
|
7
|
+
w.call(e, i) && m(o, i, e[i]);
|
|
8
|
+
if (c)
|
|
9
|
+
for (var i of c(e))
|
|
10
|
+
F.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);
|
|
14
|
+
import * as l from "three";
|
|
15
|
+
import { logWarning as V, logError as T } from "../../shared-utils/log.js";
|
|
16
16
|
import { createLineGeometry as U } from "../utils/createLineGeometry.js";
|
|
17
17
|
import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
@@ -20,13 +20,13 @@ 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
|
|
25
|
-
import
|
|
23
|
+
import { BetterTween as M, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as L } from "../../shared-utils/three/loadTexture.js";
|
|
25
|
+
import b from "../../PanoTagPlugin/controller/index.js";
|
|
26
26
|
import O from "../Components/Tag.js";
|
|
27
|
-
import { filterAdjacentDistinct as
|
|
28
|
-
import { objectAssignDeepExports as
|
|
29
|
-
const
|
|
27
|
+
import { filterAdjacentDistinct as P } from "../utils/index.js";
|
|
28
|
+
import { objectAssignDeepExports as G } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const S = (
|
|
30
30
|
/* glsl */
|
|
31
31
|
`
|
|
32
32
|
varying vec2 vUv;
|
|
@@ -36,7 +36,7 @@ const B = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), A = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -120,7 +120,7 @@ const B = (
|
|
|
120
120
|
}
|
|
121
121
|
`
|
|
122
122
|
);
|
|
123
|
-
class
|
|
123
|
+
class B {
|
|
124
124
|
constructor(e, i) {
|
|
125
125
|
t(this, "startTagContainer");
|
|
126
126
|
t(this, "endTagContainer");
|
|
@@ -128,9 +128,7 @@ class R {
|
|
|
128
128
|
t(this, "five");
|
|
129
129
|
t(this, "mode");
|
|
130
130
|
t(this, "path", []);
|
|
131
|
-
t(this, "
|
|
132
|
-
t(this, "_curvePoints", null);
|
|
133
|
-
t(this, "_panoGroup", []);
|
|
131
|
+
t(this, "_panoGroup", null);
|
|
134
132
|
t(this, "skippedPositions", null);
|
|
135
133
|
t(this, "textureUrl", "");
|
|
136
134
|
t(this, "scale", 1);
|
|
@@ -151,10 +149,8 @@ class R {
|
|
|
151
149
|
t(this, "plugin");
|
|
152
150
|
t(this, "textureHasLoaded", !1);
|
|
153
151
|
t(this, "disposed", !1);
|
|
154
|
-
t(this, "flowAnime", new
|
|
155
|
-
t(this, "flickerAnime",
|
|
156
|
-
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
157
|
-
t(this, "cacheLengths", []);
|
|
152
|
+
t(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
153
|
+
t(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
158
154
|
t(this, "dispose", () => {
|
|
159
155
|
var e, i;
|
|
160
156
|
this.disposed || (this.disposed = !0, 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.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (i = this.endTagContainer) == null || i.plugin.dispose());
|
|
@@ -184,26 +180,26 @@ class R {
|
|
|
184
180
|
this.mesh.material.uniforms.vOffset.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
185
181
|
});
|
|
186
182
|
t(this, "onFlickerAnimeUpdate", (e) => {
|
|
187
|
-
var
|
|
188
|
-
const { progress: i } = e,
|
|
189
|
-
this.mesh.material.uniforms.flicker.value =
|
|
183
|
+
var n, s;
|
|
184
|
+
const { progress: i } = e, r = 1 - i;
|
|
185
|
+
this.mesh.material.uniforms.flicker.value = r, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && f(this.startTagContainer.tag) && ((n = this.startTagContainer.app) == null || n.$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 })));
|
|
190
186
|
});
|
|
191
187
|
t(this, "logWarning", (e) => V("GuideLineModeItem: ", e));
|
|
192
|
-
t(this, "logError", (e) =>
|
|
193
|
-
var
|
|
194
|
-
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagContainer = { tag: null, plugin: new
|
|
195
|
-
const
|
|
196
|
-
vertexShader:
|
|
197
|
-
fragmentShader:
|
|
188
|
+
t(this, "logError", (e) => T("GuideLineModeItem: ", e));
|
|
189
|
+
var s, a;
|
|
190
|
+
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) };
|
|
191
|
+
const r = new l.BufferGeometry(), n = new l.ShaderMaterial({
|
|
192
|
+
vertexShader: S,
|
|
193
|
+
fragmentShader: A,
|
|
198
194
|
transparent: !0,
|
|
199
195
|
uniforms: {
|
|
200
196
|
map: { value: null },
|
|
201
197
|
useMapColor: { value: 0 },
|
|
202
|
-
mapColor: { value: new
|
|
198
|
+
mapColor: { value: new l.Color() },
|
|
203
199
|
mapOpacity: { value: 1 },
|
|
204
|
-
backgroundColor: { value: new
|
|
200
|
+
backgroundColor: { value: new l.Color() },
|
|
205
201
|
backgroundOpacity: { value: 0 },
|
|
206
|
-
borderColor: { value: new
|
|
202
|
+
borderColor: { value: new l.Color() },
|
|
207
203
|
borderOpacity: { value: 0 },
|
|
208
204
|
opacity: { value: 1 },
|
|
209
205
|
flicker: { value: 1 },
|
|
@@ -211,7 +207,7 @@ class R {
|
|
|
211
207
|
vOffset: { value: 0 }
|
|
212
208
|
}
|
|
213
209
|
});
|
|
214
|
-
this.mesh = new
|
|
210
|
+
this.mesh = new l.Mesh(r, n), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (s = this.five.model) == null ? void 0 : s.shownFloor) != null ? a : null), 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.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
215
211
|
}
|
|
216
212
|
get panoGroup() {
|
|
217
213
|
return this._panoGroup;
|
|
@@ -220,14 +216,6 @@ class R {
|
|
|
220
216
|
get visibleFloorIndexes() {
|
|
221
217
|
return this._visibleFloorIndexes;
|
|
222
218
|
}
|
|
223
|
-
/** THREE Curve 路径 */
|
|
224
|
-
get curvePath() {
|
|
225
|
-
return this._curvePath;
|
|
226
|
-
}
|
|
227
|
-
/** THREE Curve 路径上的点 */
|
|
228
|
-
get curvePoints() {
|
|
229
|
-
return this._curvePoints;
|
|
230
|
-
}
|
|
231
219
|
/** 自定义展示 */
|
|
232
220
|
setCustomVisible(e) {
|
|
233
221
|
if (this.disposed)
|
|
@@ -258,28 +246,28 @@ class R {
|
|
|
258
246
|
return this.logError("disposed");
|
|
259
247
|
if (!this.five.work)
|
|
260
248
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
261
|
-
const
|
|
262
|
-
if (this._panoGroup =
|
|
263
|
-
const
|
|
264
|
-
this.skippedPositions =
|
|
249
|
+
const r = P(e);
|
|
250
|
+
if (this._panoGroup = r, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
251
|
+
const s = i.skipPanoGroup ? r.map((a) => this.five.work.observers[a]).map((a) => a.standingPosition.clone()) : null;
|
|
252
|
+
this.skippedPositions = s;
|
|
265
253
|
}
|
|
266
|
-
const
|
|
267
|
-
this.path =
|
|
254
|
+
const n = this.getPathFromPanoGroup(r, this.five.work, i);
|
|
255
|
+
this.path = n, this.setGeometryByPath(n, i);
|
|
268
256
|
}
|
|
269
257
|
/** 通过路径设置线条形状 */
|
|
270
258
|
setGeometryByPath(e, i) {
|
|
271
|
-
var
|
|
259
|
+
var h, p, v;
|
|
272
260
|
if (this.disposed)
|
|
273
261
|
return this.logError("disposed");
|
|
274
|
-
const
|
|
275
|
-
this.path = e, this.scale =
|
|
276
|
-
const { geometry:
|
|
262
|
+
const r = (h = i == null ? void 0 : i.scale) != null ? h : this.scale, n = (p = i == null ? void 0 : i.width) != null ? p : this.width, s = (v = i == null ? void 0 : i.unit_length) != null ? v : this.unitLength;
|
|
263
|
+
this.path = e, this.scale = r, this.width = n, this.unitLength = s;
|
|
264
|
+
const { geometry: a, maxU: d } = U({
|
|
277
265
|
path: e,
|
|
278
|
-
width:
|
|
279
|
-
unitLength:
|
|
266
|
+
width: n * r,
|
|
267
|
+
unitLength: s * r,
|
|
280
268
|
skipPositions: this.skippedPositions
|
|
281
269
|
});
|
|
282
|
-
this.
|
|
270
|
+
this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = d, this.five.needsRender = !0;
|
|
283
271
|
}
|
|
284
272
|
/** 设置线条材质 */
|
|
285
273
|
setMartial(e) {
|
|
@@ -292,13 +280,13 @@ class R {
|
|
|
292
280
|
setColor(e) {
|
|
293
281
|
if (this.disposed)
|
|
294
282
|
return this.logError("disposed");
|
|
295
|
-
e && (this.mesh.material.uniforms.mapColor.value = new
|
|
283
|
+
e && (this.mesh.material.uniforms.mapColor.value = new l.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
296
284
|
}
|
|
297
285
|
/** 设置边框 */
|
|
298
286
|
setBorderColor(e) {
|
|
299
287
|
if (this.disposed)
|
|
300
288
|
return this.logError("disposed");
|
|
301
|
-
this.mesh.material.uniforms.borderColor.value = new
|
|
289
|
+
this.mesh.material.uniforms.borderColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
302
290
|
}
|
|
303
291
|
/** 设置边框透明度 */
|
|
304
292
|
setBorderOpacity(e) {
|
|
@@ -310,7 +298,7 @@ class R {
|
|
|
310
298
|
setBackgroundColor(e) {
|
|
311
299
|
if (this.disposed)
|
|
312
300
|
return this.logError("disposed");
|
|
313
|
-
this.mesh.material.uniforms.backgroundColor.value = new
|
|
301
|
+
this.mesh.material.uniforms.backgroundColor.value = new l.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
314
302
|
}
|
|
315
303
|
/** 设置背景透明度 */
|
|
316
304
|
setBackgroundOpacity(e) {
|
|
@@ -334,15 +322,15 @@ class R {
|
|
|
334
322
|
setTextureUrl(e) {
|
|
335
323
|
if (this.disposed)
|
|
336
324
|
return this.logError("disposed");
|
|
337
|
-
this.textureUrl = e,
|
|
338
|
-
this.disposed || this.textureUrl === e && (i.wrapT =
|
|
325
|
+
this.textureUrl = e, L(e).then((i) => {
|
|
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());
|
|
339
327
|
});
|
|
340
328
|
}
|
|
341
329
|
setVisibleFloorIndexes(e) {
|
|
342
|
-
var i,
|
|
330
|
+
var i, r;
|
|
343
331
|
if (this.disposed)
|
|
344
332
|
return this.logError("disposed");
|
|
345
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
333
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : null);
|
|
346
334
|
}
|
|
347
335
|
setStartTag(e) {
|
|
348
336
|
this.setTag("start", e);
|
|
@@ -356,42 +344,22 @@ class R {
|
|
|
356
344
|
return this.logError("disposed");
|
|
357
345
|
this.flickerAnime.play();
|
|
358
346
|
}
|
|
359
|
-
/** 求起点到 panoIndex 曲线长度
|
|
360
|
-
* @param index panoIndex 在 panoGroup 中的索引
|
|
361
|
-
*
|
|
362
|
-
* @description 为什么不使用 panoIndex 作为参数?
|
|
363
|
-
* - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
|
|
364
|
-
*/
|
|
365
|
-
getLengthByPanoGroupIndex(e) {
|
|
366
|
-
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
367
|
-
}
|
|
368
|
-
getPanoGroupLengths() {
|
|
369
|
-
const e = this.panoGroup.map((l) => this.five.work.observers[l]), i = this.curvePoints.length, s = this.curvePath.getLength(), a = i - 1, r = s / a, o = this.curvePath.getLengths(a), d = [];
|
|
370
|
-
let u = 0;
|
|
371
|
-
for (let l = 0; l < i; l++) {
|
|
372
|
-
const m = this.curvePoints[l], g = e[u];
|
|
373
|
-
if (!g)
|
|
374
|
-
break;
|
|
375
|
-
g.standingPosition.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (d.push(o[l]), u += 1);
|
|
376
|
-
}
|
|
377
|
-
return d;
|
|
378
|
-
}
|
|
379
347
|
setTag(e, i) {
|
|
380
|
-
const
|
|
381
|
-
i ||
|
|
382
|
-
const
|
|
348
|
+
const r = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
349
|
+
i || r.plugin.clearTags();
|
|
350
|
+
const s = G({}, {
|
|
383
351
|
contentType: "Custom",
|
|
384
352
|
stickType: "2DPoint",
|
|
385
353
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
386
354
|
style: { point: { enabled: !1 } },
|
|
387
355
|
data: {}
|
|
388
356
|
}, i);
|
|
389
|
-
|
|
390
|
-
var
|
|
391
|
-
(
|
|
392
|
-
const d = new O({ target:
|
|
393
|
-
return
|
|
394
|
-
}),
|
|
357
|
+
r.tag = s, f(s) && (r.tag.element = (a) => {
|
|
358
|
+
var h;
|
|
359
|
+
(h = r.app) == null || h.$destroy();
|
|
360
|
+
const d = new O({ target: a, intro: !0, props: s.data });
|
|
361
|
+
return r.app = d, () => d.$destroy();
|
|
362
|
+
}), r.plugin.load({ tagList: [r.tag] });
|
|
395
363
|
}
|
|
396
364
|
doShow() {
|
|
397
365
|
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
@@ -400,21 +368,21 @@ class R {
|
|
|
400
368
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
401
369
|
}
|
|
402
370
|
/** 通过 panoIndex 数组计算路径 */
|
|
403
|
-
getPathFromPanoGroup(e, i,
|
|
371
|
+
getPathFromPanoGroup(e, i, r) {
|
|
404
372
|
if (e.length < 2)
|
|
405
373
|
return [];
|
|
406
|
-
const
|
|
407
|
-
return [
|
|
374
|
+
const s = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
|
|
375
|
+
return [u({ type: "CatmullRomCurve3", points: s }, r)];
|
|
408
376
|
}
|
|
409
377
|
}
|
|
410
|
-
function
|
|
411
|
-
return
|
|
378
|
+
function f(o) {
|
|
379
|
+
return o.contentType === "Custom";
|
|
412
380
|
}
|
|
413
|
-
const
|
|
381
|
+
const Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
414
382
|
__proto__: null,
|
|
415
|
-
GuideLineModeItem:
|
|
383
|
+
GuideLineModeItem: B
|
|
416
384
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
417
385
|
export {
|
|
418
|
-
|
|
419
|
-
|
|
386
|
+
B as GuideLineModeItem,
|
|
387
|
+
Z as GuideLineModeItem$1
|
|
420
388
|
};
|
|
@@ -18,18 +18,12 @@ declare class GuideLineModeItem {
|
|
|
18
18
|
get panoGroup(): number[];
|
|
19
19
|
/** 可展示的楼层 */
|
|
20
20
|
get visibleFloorIndexes(): number[];
|
|
21
|
-
/** THREE Curve 路径 */
|
|
22
|
-
get curvePath(): THREE.CurvePath<THREE.Vector3>;
|
|
23
|
-
/** THREE Curve 路径上的点 */
|
|
24
|
-
get curvePoints(): THREE.Vector3[];
|
|
25
21
|
startTagContainer: GuideLineTagContainer;
|
|
26
22
|
endTagContainer: GuideLineTagContainer;
|
|
27
23
|
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
28
24
|
private five;
|
|
29
25
|
private mode;
|
|
30
26
|
private path;
|
|
31
|
-
private _curvePath;
|
|
32
|
-
private _curvePoints;
|
|
33
27
|
private _panoGroup;
|
|
34
28
|
private skippedPositions;
|
|
35
29
|
private textureUrl;
|
|
@@ -53,8 +47,6 @@ declare class GuideLineModeItem {
|
|
|
53
47
|
private disposed;
|
|
54
48
|
private flowAnime;
|
|
55
49
|
private flickerAnime;
|
|
56
|
-
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
57
|
-
private cacheLengths;
|
|
58
50
|
constructor(five: Five, options: {
|
|
59
51
|
mode: PluginType.GuideLineModeItemMode;
|
|
60
52
|
plugin: GuideLinePlugin;
|
|
@@ -98,14 +90,6 @@ declare class GuideLineModeItem {
|
|
|
98
90
|
setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
|
|
99
91
|
/** 闪烁 */
|
|
100
92
|
flicker(): void;
|
|
101
|
-
/** 求起点到 panoIndex 曲线长度
|
|
102
|
-
* @param index panoIndex 在 panoGroup 中的索引
|
|
103
|
-
*
|
|
104
|
-
* @description 为什么不使用 panoIndex 作为参数?
|
|
105
|
-
* - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
|
|
106
|
-
*/
|
|
107
|
-
getLengthByPanoGroupIndex(index: number): number | void;
|
|
108
|
-
private getPanoGroupLengths;
|
|
109
93
|
private setTag;
|
|
110
94
|
/** 开始走点动画 */
|
|
111
95
|
private onWalkAnimationStart;
|
|
@@ -19,12 +19,5 @@ interface LineGeometryOption {
|
|
|
19
19
|
export declare function createLineGeometry(options: LineGeometryOption): {
|
|
20
20
|
geometry: THREE.BufferGeometry;
|
|
21
21
|
maxU: number;
|
|
22
|
-
curvePath?: undefined;
|
|
23
|
-
curvePoints?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
geometry: THREE.BufferGeometry;
|
|
26
|
-
maxU: number;
|
|
27
|
-
curvePath: THREE.CurvePath<THREE.Vector3>;
|
|
28
|
-
curvePoints: THREE.Vector3[];
|
|
29
22
|
};
|
|
30
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as n from "three";
|
|
2
|
-
import { Vector3 as
|
|
2
|
+
import { Vector3 as P } from "three";
|
|
3
3
|
import { polylineNormals as G } from "../../vendor/polyline-normals/index.js";
|
|
4
4
|
import "../../vendor/polyline-miter-util/index.js";
|
|
5
5
|
import "../../vendor/gl-vec2/add.js";
|
|
@@ -12,35 +12,33 @@ function Q(e) {
|
|
|
12
12
|
const i = e.width, g = e.unitLength / i, c = i / 2, E = e.path;
|
|
13
13
|
if (E.length === 0)
|
|
14
14
|
return { geometry: new n.BufferGeometry(), maxU: 0 };
|
|
15
|
-
const
|
|
15
|
+
const h = new n.CurvePath();
|
|
16
16
|
E.forEach((t) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
17
|
+
const a = I(t);
|
|
18
|
+
a && h.add(a);
|
|
19
19
|
});
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const o = u.getPoints(w), y = o.length, L = G(o.map((t) => [t.x, t.z])), B = (y - 1) * z * M, d = 2 * y, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), a = new Float32Array(U);
|
|
23
|
-
let N = 0, R = 0;
|
|
20
|
+
const x = Math.ceil(h.getLength() * 100), o = h.getPoints(x), w = o.length, L = G(o.map((t) => [t.x, t.z])), B = (w - 1) * z * M, y = 2 * w, C = y * X, U = y * k, r = new Uint32Array(B), s = new Float32Array(C), u = new Float32Array(U);
|
|
21
|
+
let d = 0, N = 0;
|
|
24
22
|
for (let t = 0; t < o.length; t++) {
|
|
25
|
-
const [
|
|
26
|
-
s[t * 6 + 0] =
|
|
27
|
-
const
|
|
28
|
-
s[t * 6 + 3] =
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const V = new n.Vector3().lerpVectors(
|
|
23
|
+
const [a, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, l = new P(A + a * c, _ + 0.05, b + R * c);
|
|
24
|
+
s[t * 6 + 0] = l.x, s[t * 6 + 1] = l.y, s[t * 6 + 2] = l.z;
|
|
25
|
+
const f = new P(A - a * c, _ + 0.05, b - R * c);
|
|
26
|
+
s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, d += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
|
|
27
|
+
const p = d / i / g;
|
|
28
|
+
if (N = p, u[t * 4 + 0] = 0, u[t * 4 + 1] = p, u[t * 4 + 2] = 1, u[t * 4 + 3] = p, e.skipPositions) {
|
|
29
|
+
const V = new n.Vector3().lerpVectors(l, f, 0.5);
|
|
32
30
|
if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
|
|
33
31
|
continue;
|
|
34
32
|
}
|
|
35
33
|
t !== o.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
|
|
36
34
|
}
|
|
37
|
-
const
|
|
38
|
-
return
|
|
35
|
+
const m = new n.BufferGeometry();
|
|
36
|
+
return m.setAttribute("position", new n.BufferAttribute(s, 3)), m.setAttribute("uv", new n.BufferAttribute(u, 2)), m.setIndex(new n.BufferAttribute(r, 1)), { geometry: m, maxU: N };
|
|
39
37
|
}
|
|
40
38
|
function I(e) {
|
|
41
39
|
if (O(e)) {
|
|
42
|
-
const i = [e.closed, e.curve_type, e.tension],
|
|
43
|
-
return new n.CatmullRomCurve3(
|
|
40
|
+
const i = [e.closed, e.curve_type, e.tension], v = e.points.map((c) => new n.Vector3().fromArray(c));
|
|
41
|
+
return new n.CatmullRomCurve3(v, ...i);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
function O(e) {
|