@realsee/dnalogel 2.16.0-6 → 2.16.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -1
- package/dist/GuideLinePlugin/typing.d.ts +0 -1
- package/dist/GuideLinePlugin/utils/index.d.ts +6 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/dist/index.cjs.js +43 -43
- package/dist/index.js +2378 -2297
- package/dist/index.umd.js +31 -31
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +26 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +16 -16
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +28 -28
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +47 -47
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isAbsoluteURL.html +5 -5
- package/docs/functions/Util.isModelLike.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.isPanoramaLike.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/Util.uuid.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
- 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 +7 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -11
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +11 -11
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +21 -23
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +7 -7
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +26 -17
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/CruisePluginTypes.html +5 -5
- package/docs/modules/GuideLineItem.html +5 -5
- package/docs/modules/GuideLineModeItem.html +5 -5
- package/docs/modules/GuideLinePluginType.html +5 -5
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -5
- package/docs/types/GuideLinePluginType.PathItem.html +5 -5
- package/docs/types/GuideLinePluginType.PluginData.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CruisePlugin/Controller.js +16 -14
- package/libs/CruisePlugin/index.js +21 -19
- package/libs/GuideLinePlugin/Components/Tag.js +38 -0
- package/libs/GuideLinePlugin/Controller.js +6 -4
- package/libs/GuideLinePlugin/GuideLineItem/index.js +25 -25
- package/libs/GuideLinePlugin/GuideLineItem.js +16 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +46 -36
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -13
- package/libs/GuideLinePlugin/index.js +9 -7
- package/libs/GuideLinePlugin/typing.d.ts +0 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -16
- package/libs/GuideLinePlugin/utils/index.d.ts +6 -0
- package/libs/GuideLinePlugin/utils/index.js +8 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +92 -66
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +6 -0
- package/libs/PanoTagPlugin/controller/index.js +5 -5
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +111 -109
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
2
|
var g = Object.getOwnPropertySymbols;
|
|
3
3
|
var C = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var h = (r, e, i) => e in r ?
|
|
4
|
+
var h = (r, e, i) => e in r ? v(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, f = (r, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
6
|
C.call(e, i) && h(r, i, e[i]);
|
|
7
7
|
if (g)
|
|
@@ -10,10 +10,10 @@ var h = (r, e, i) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
12
|
var t = (r, e, i) => (h(r, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
|
-
import * as
|
|
13
|
+
import * as o from "three";
|
|
14
14
|
import { logWarning as E, logError as F } from "../../shared-utils/log.js";
|
|
15
|
-
import { createLineGeometry as
|
|
16
|
-
import { isPanoramaLike as
|
|
15
|
+
import { createLineGeometry as y } from "../utils/createLineGeometry.js";
|
|
16
|
+
import { isPanoramaLike as k, isModelLike as P } from "../../shared-utils/five/mode.js";
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "@realsee/five";
|
|
19
19
|
import "@tweenjs/tween.js";
|
|
@@ -22,16 +22,18 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
22
22
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
23
23
|
import { loadTexture as w } from "../../shared-utils/three/loadTexture.js";
|
|
24
24
|
import "object-assign-deep";
|
|
25
|
+
import { filterAdjacentDistinct as U } from "../utils/index.js";
|
|
25
26
|
import p from "../../PanoTagPlugin/controller/index.js";
|
|
26
27
|
import "@realsee/five/gltf-loader";
|
|
27
|
-
|
|
28
|
+
import x from "../Components/Tag.js";
|
|
29
|
+
const L = `
|
|
28
30
|
varying vec2 vUv;
|
|
29
31
|
|
|
30
32
|
void main() {
|
|
31
33
|
vUv = uv;
|
|
32
34
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
33
35
|
}
|
|
34
|
-
`,
|
|
36
|
+
`, V = `
|
|
35
37
|
// \u662F\u5426\u4F7F\u7528\u989C\u8272
|
|
36
38
|
uniform int useMapColor;
|
|
37
39
|
// \u8D34\u56FE
|
|
@@ -89,7 +91,7 @@ const U = `
|
|
|
89
91
|
gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
|
|
90
92
|
}
|
|
91
93
|
`;
|
|
92
|
-
class
|
|
94
|
+
class G {
|
|
93
95
|
constructor(e, i) {
|
|
94
96
|
t(this, "startTagPlugin");
|
|
95
97
|
t(this, "endTagPlugin");
|
|
@@ -112,6 +114,7 @@ class L {
|
|
|
112
114
|
t(this, "plugin");
|
|
113
115
|
t(this, "textureHasLoaded", !1);
|
|
114
116
|
t(this, "disposed", !1);
|
|
117
|
+
t(this, "onTagContainerChange", (e, i) => new x({ target: e, intro: !0, props: i.data }).$destroy);
|
|
115
118
|
t(this, "onPluginShow", () => {
|
|
116
119
|
this.updateVisible();
|
|
117
120
|
});
|
|
@@ -131,27 +134,27 @@ class L {
|
|
|
131
134
|
this.inWalkAnimation = !1, this.updateVisible();
|
|
132
135
|
});
|
|
133
136
|
t(this, "onFiveModeChange", (e) => {
|
|
134
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
137
|
+
this.modeVisible = this.mode === "panorama" ? k(e) : P(e), this.updateVisible();
|
|
135
138
|
});
|
|
136
139
|
t(this, "logWarning", (e) => E("GuideLineModeItem: ", e));
|
|
137
140
|
t(this, "logError", (e) => F("GuideLineModeItem: ", e));
|
|
138
141
|
this.five = e, this.mode = i.mode, this.plugin = i.plugin, this.parent = i.parent, this.startTagPlugin = new p(this.five), this.endTagPlugin = new p(this.five);
|
|
139
|
-
const s = new
|
|
140
|
-
vertexShader:
|
|
141
|
-
fragmentShader:
|
|
142
|
+
const s = new o.BufferGeometry(), a = new o.ShaderMaterial({
|
|
143
|
+
vertexShader: L,
|
|
144
|
+
fragmentShader: V,
|
|
142
145
|
transparent: !0,
|
|
143
146
|
uniforms: {
|
|
144
147
|
map: { value: null },
|
|
145
148
|
useMapColor: { value: 0 },
|
|
146
|
-
mapColor: { value: new
|
|
149
|
+
mapColor: { value: new o.Color() },
|
|
147
150
|
mapOpacity: { value: 1 },
|
|
148
|
-
backgroundColor: { value: new
|
|
151
|
+
backgroundColor: { value: new o.Color() },
|
|
149
152
|
backgroundOpacity: { value: 0 },
|
|
150
153
|
opacity: { value: 1 },
|
|
151
154
|
maxU: { value: 0 }
|
|
152
155
|
}
|
|
153
156
|
});
|
|
154
|
-
this.mesh = new
|
|
157
|
+
this.mesh = new o.Mesh(s, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
|
|
155
158
|
}
|
|
156
159
|
get panoGroup() {
|
|
157
160
|
return this._panoGroup;
|
|
@@ -184,26 +187,27 @@ class L {
|
|
|
184
187
|
return this.logError("disposed");
|
|
185
188
|
if (!this.five.work)
|
|
186
189
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
this.
|
|
190
|
+
const s = U(e);
|
|
191
|
+
if (this._panoGroup = s, (i == null ? void 0 : i.skipPanoGroup) !== void 0) {
|
|
192
|
+
const n = i.skipPanoGroup ? s.map((u) => this.five.work.observers[u]).map((u) => u.standingPosition.clone()) : null;
|
|
193
|
+
this.skippedPositions = n;
|
|
190
194
|
}
|
|
191
|
-
const
|
|
192
|
-
this.path =
|
|
195
|
+
const a = this.getPathFromPanoGroup(s, this.five.work, i);
|
|
196
|
+
this.path = a, this.setGeometryByPath(a, i);
|
|
193
197
|
}
|
|
194
198
|
setGeometryByPath(e, i) {
|
|
195
199
|
var l, d, m;
|
|
196
200
|
if (this.disposed)
|
|
197
201
|
return this.logError("disposed");
|
|
198
|
-
const s = (l = i == null ? void 0 : i.scale) != null ? l : this.scale,
|
|
199
|
-
this.path = e, this.scale = s, this.width =
|
|
200
|
-
const { geometry:
|
|
202
|
+
const s = (l = i == null ? void 0 : i.scale) != null ? l : this.scale, a = (d = i == null ? void 0 : i.width) != null ? d : this.width, n = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
|
|
203
|
+
this.path = e, this.scale = s, this.width = a, this.unitLength = n;
|
|
204
|
+
const { geometry: u, maxU: c } = y({
|
|
201
205
|
path: e,
|
|
202
|
-
width:
|
|
203
|
-
unitLength:
|
|
206
|
+
width: a * s,
|
|
207
|
+
unitLength: n * s,
|
|
204
208
|
skipPositions: this.skippedPositions
|
|
205
209
|
});
|
|
206
|
-
this.mesh.geometry =
|
|
210
|
+
this.mesh.geometry = u, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = c, this.five.needsRender = !0;
|
|
207
211
|
}
|
|
208
212
|
setMartial(e) {
|
|
209
213
|
var i;
|
|
@@ -214,12 +218,12 @@ class L {
|
|
|
214
218
|
setColor(e) {
|
|
215
219
|
if (this.disposed)
|
|
216
220
|
return this.logError("disposed");
|
|
217
|
-
this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new
|
|
221
|
+
this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
218
222
|
}
|
|
219
223
|
setBackgroundColor(e) {
|
|
220
224
|
if (this.disposed)
|
|
221
225
|
return this.logError("disposed");
|
|
222
|
-
this.mesh.material.uniforms.backgroundColor.value = new
|
|
226
|
+
this.mesh.material.uniforms.backgroundColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
223
227
|
}
|
|
224
228
|
setOpacity(e) {
|
|
225
229
|
if (this.disposed)
|
|
@@ -240,7 +244,7 @@ class L {
|
|
|
240
244
|
if (this.disposed)
|
|
241
245
|
return this.logError("disposed");
|
|
242
246
|
this.textureUrl = e, w(e).then((i) => {
|
|
243
|
-
this.disposed || this.textureUrl === e && (i.wrapT =
|
|
247
|
+
this.disposed || this.textureUrl === e && (i.wrapT = o.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());
|
|
244
248
|
});
|
|
245
249
|
}
|
|
246
250
|
setStartTag(e) {
|
|
@@ -250,7 +254,8 @@ class L {
|
|
|
250
254
|
this.setTag("end", e);
|
|
251
255
|
}
|
|
252
256
|
setTag(e, i) {
|
|
253
|
-
|
|
257
|
+
const s = e === "start" ? this.startTagPlugin : this.endTagPlugin;
|
|
258
|
+
T(i) && (i.element = (a) => this.onTagContainerChange(a, i)), s.load({ tagList: [i] });
|
|
254
259
|
}
|
|
255
260
|
updateVisible() {
|
|
256
261
|
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)();
|
|
@@ -263,15 +268,20 @@ class L {
|
|
|
263
268
|
this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
264
269
|
}
|
|
265
270
|
getPathFromPanoGroup(e, i, s) {
|
|
266
|
-
|
|
267
|
-
|
|
271
|
+
if (e.length < 2)
|
|
272
|
+
return [];
|
|
273
|
+
const n = e.map((u) => i.observers[u]).map((u) => u.standingPosition.toArray());
|
|
274
|
+
return [f({ type: "CatmullRomCurve3", points: n }, s)];
|
|
268
275
|
}
|
|
269
276
|
}
|
|
270
|
-
|
|
277
|
+
function T(r) {
|
|
278
|
+
return r.contentType === "Custom";
|
|
279
|
+
}
|
|
280
|
+
const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
271
281
|
__proto__: null,
|
|
272
|
-
GuideLineModeItem:
|
|
282
|
+
GuideLineModeItem: G
|
|
273
283
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
274
284
|
export {
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
G as GuideLineModeItem,
|
|
286
|
+
J as GuideLineModeItem$1
|
|
277
287
|
};
|
|
@@ -48,7 +48,7 @@ declare class GuideLineModeItem {
|
|
|
48
48
|
/** 设置缩放 */
|
|
49
49
|
setScale(scale: number): void;
|
|
50
50
|
/** 通过点位设置线条形状 */
|
|
51
|
-
setGeometryByPanoGroup(
|
|
51
|
+
setGeometryByPanoGroup(_panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
|
|
52
52
|
skipPanoGroup?: boolean;
|
|
53
53
|
}): void;
|
|
54
54
|
/** 通过路径设置线条形状 */
|
|
@@ -70,6 +70,7 @@ declare class GuideLineModeItem {
|
|
|
70
70
|
setStartTag(tag: Tag): void;
|
|
71
71
|
setEndTag(tag: Tag): void;
|
|
72
72
|
private setTag;
|
|
73
|
+
private onTagContainerChange;
|
|
73
74
|
/** 当设置 GuideLinePLugin 展示 */
|
|
74
75
|
private onPluginShow;
|
|
75
76
|
/** 当设置 GuideLinePLugin 隐藏 */
|
|
@@ -10,9 +10,11 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
10
10
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
11
11
|
import "../shared-utils/three/loadTexture.js";
|
|
12
12
|
import "object-assign-deep";
|
|
13
|
-
import { GuideLineModeItem as
|
|
13
|
+
import { GuideLineModeItem as si } from "./GuideLineModeItem/index.js";
|
|
14
|
+
import "./utils/index.js";
|
|
14
15
|
import "../PanoTagPlugin/controller/index.js";
|
|
15
16
|
import "@realsee/five/gltf-loader";
|
|
17
|
+
import "./Components/Tag.js";
|
|
16
18
|
import "polyline-normals";
|
|
17
19
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
18
20
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -27,6 +29,17 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
27
29
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
28
30
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
29
31
|
import "../shared-utils/animationFrame/index.js";
|
|
32
|
+
import "../vendor/svelte/internal/index.js";
|
|
33
|
+
import "../PanoTagPlugin/utils/device.js";
|
|
34
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
35
|
+
import "animejs";
|
|
36
|
+
import "../PanoTagPlugin/utils/constants.js";
|
|
37
|
+
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
38
|
+
import "lodash.get";
|
|
39
|
+
import "lodash.clonedeep";
|
|
40
|
+
import "lodash.isequal";
|
|
41
|
+
import "classnames";
|
|
42
|
+
import "../shared-utils/three/GLTFLoader.js";
|
|
30
43
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
31
44
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
32
45
|
import "../PanoTagPlugin/utils/actionAfterFiveModelLoad.js";
|
|
@@ -48,9 +61,6 @@ import "../PanoTagPlugin/controller/TagCache.js";
|
|
|
48
61
|
import "../base/BasePlugin.js";
|
|
49
62
|
import "../shared-utils/isAbsoluteURL.js";
|
|
50
63
|
import "../vendor/svelte/store/index.js";
|
|
51
|
-
import "../vendor/svelte/internal/index.js";
|
|
52
|
-
import "../PanoTagPlugin/utils/device.js";
|
|
53
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
54
64
|
import "../PanoTagPlugin/Components/TagContainer.js";
|
|
55
65
|
import "../PanoTagPlugin/Components/TagItem.js";
|
|
56
66
|
import "../PanoTagPlugin/Components/Tag/index.js";
|
|
@@ -63,14 +73,11 @@ import "../shared-utils/uuid.js";
|
|
|
63
73
|
import "../PanoTagPlugin/Components/Common/Shadow.js";
|
|
64
74
|
import "../PanoTagPlugin/Components/Common/Text/FlyMText.js";
|
|
65
75
|
import "../PanoTagPlugin/Components/Common/Text/FlyText.js";
|
|
66
|
-
import "animejs";
|
|
67
76
|
import "../PanoTagPlugin/utils/search.js";
|
|
68
|
-
import "../PanoTagPlugin/utils/constants.js";
|
|
69
77
|
import "../PanoTagPlugin/Components/Common/Arrow.js";
|
|
70
78
|
import "../PanoTagPlugin/Assets/Icon.js";
|
|
71
79
|
import "../PanoTagPlugin/utils/doUtil.js";
|
|
72
80
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
73
|
-
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
74
81
|
import "../PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js";
|
|
75
82
|
import "../PanoTagPlugin/Components/Common/Text/MText.js";
|
|
76
83
|
import "../PanoTagPlugin/utils/px2rem.js";
|
|
@@ -97,11 +104,8 @@ import "../vendor/svelte-carousel/src/utils/clones.js";
|
|
|
97
104
|
import "../vendor/svelte-carousel/src/utils/object.js";
|
|
98
105
|
import "../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
|
|
99
106
|
import "../vendor/simply-reactive/src/simply-reactive.js";
|
|
100
|
-
import "lodash.get";
|
|
101
|
-
import "lodash.clonedeep";
|
|
102
107
|
import "../vendor/simply-reactive/src/utils/subscription.js";
|
|
103
108
|
import "../vendor/simply-reactive/src/utils/object.js";
|
|
104
|
-
import "lodash.isequal";
|
|
105
109
|
import "../vendor/simply-reactive/src/utils/watcher.js";
|
|
106
110
|
import "../vendor/svelte-carousel/src/utils/lazy.js";
|
|
107
111
|
import "../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
@@ -120,13 +124,11 @@ import "../PanoTagPlugin/Components/Tag/LinkTag.js";
|
|
|
120
124
|
import "../PanoTagPlugin/Components/Common/Icon/Icon.js";
|
|
121
125
|
import "../PanoTagPlugin/utils/getImageInfo.js";
|
|
122
126
|
import "../PanoTagPlugin/Components/Tag/CustomTag.js";
|
|
123
|
-
import "classnames";
|
|
124
127
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
125
128
|
import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
126
129
|
import "../CSS3DRenderPlugin/index.js";
|
|
127
130
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
128
131
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
129
|
-
import "../shared-utils/three/GLTFLoader.js";
|
|
130
132
|
export {
|
|
131
|
-
|
|
133
|
+
si as GuideLineModeItem
|
|
132
134
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as So } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as Uo } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -54,6 +54,7 @@ import "../CruisePlugin/utils/sleep.js";
|
|
|
54
54
|
import "../shared-utils/log.js";
|
|
55
55
|
import "./utils/createLineGeometry.js";
|
|
56
56
|
import "../shared-utils/five/mode.js";
|
|
57
|
+
import "./utils/index.js";
|
|
57
58
|
import "../PanoTagPlugin/controller/index.js";
|
|
58
59
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
59
60
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
@@ -141,13 +142,14 @@ import "../PanoTagPlugin/utils/model/imagePlane.js";
|
|
|
141
142
|
import "../CSS3DRenderPlugin/index.js";
|
|
142
143
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
143
144
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
145
|
+
import "./Components/Tag.js";
|
|
144
146
|
import "../shared-utils/to.js";
|
|
145
147
|
import "../shared-utils/five/changeMode.js";
|
|
146
148
|
import "../shared-utils/nearlyEqual.js";
|
|
147
|
-
const
|
|
149
|
+
const Oo = (i, o) => new t(i, o);
|
|
148
150
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
So as GuideLineItem,
|
|
152
|
+
Uo as GuideLineModeItem,
|
|
153
|
+
Oo as GuideLinePlugin,
|
|
154
|
+
Oo as default
|
|
153
155
|
};
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import * as n from "three";
|
|
2
|
-
import { Vector3 as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
2
|
+
import { Vector3 as P } from "three";
|
|
3
|
+
import G from "polyline-normals";
|
|
4
|
+
const z = 2, M = 3, X = 3, k = 2;
|
|
5
5
|
function Y(e) {
|
|
6
|
-
const i = e.width,
|
|
7
|
-
|
|
6
|
+
const i = e.width, E = e.unitLength / i, c = i / 2, p = e.path;
|
|
7
|
+
if (p.length === 0)
|
|
8
|
+
return { geometry: new n.BufferGeometry(), maxU: 0 };
|
|
9
|
+
const h = new n.CurvePath();
|
|
10
|
+
p.forEach((t) => {
|
|
8
11
|
const a = I(t);
|
|
9
|
-
a &&
|
|
12
|
+
a && h.add(a);
|
|
10
13
|
});
|
|
11
|
-
const x = Math.ceil(
|
|
12
|
-
let
|
|
14
|
+
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, d = 2 * w, C = d * X, U = d * k, r = new Uint32Array(B), s = new Float32Array(C), u = new Float32Array(U);
|
|
15
|
+
let y = 0, N = 0;
|
|
13
16
|
for (let t = 0; t < o.length; t++) {
|
|
14
|
-
const [a, R] = L[t][0],
|
|
17
|
+
const [a, R] = L[t][0], T = o[t], { x: A, y: _, z: b } = T, m = new P(A + a * c, _ + 0.05, b + R * c);
|
|
15
18
|
s[t * 6 + 0] = m.x, s[t * 6 + 1] = m.y, s[t * 6 + 2] = m.z;
|
|
16
|
-
const
|
|
17
|
-
s[t * 6 + 3] =
|
|
18
|
-
const
|
|
19
|
-
if (N =
|
|
20
|
-
const V = new n.Vector3().lerpVectors(m,
|
|
19
|
+
const f = new P(A - a * c, _ + 0.05, b - R * c);
|
|
20
|
+
s[t * 6 + 3] = f.x, s[t * 6 + 4] = f.y, s[t * 6 + 5] = f.z, y += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
|
|
21
|
+
const v = y / i / E;
|
|
22
|
+
if (N = v, u[t * 4 + 0] = 0, u[t * 4 + 1] = v, u[t * 4 + 2] = 1, u[t * 4 + 3] = v, e.skipPositions) {
|
|
23
|
+
const V = new n.Vector3().lerpVectors(m, f, 0.5);
|
|
21
24
|
if (e.skipPositions.some((F) => F.distanceTo(V) < 0.26))
|
|
22
25
|
continue;
|
|
23
26
|
}
|
|
@@ -28,8 +31,8 @@ function Y(e) {
|
|
|
28
31
|
}
|
|
29
32
|
function I(e) {
|
|
30
33
|
if (O(e)) {
|
|
31
|
-
const i = [e.closed, e.curve_type, e.tension],
|
|
32
|
-
return new n.CatmullRomCurve3(
|
|
34
|
+
const i = [e.closed, e.curve_type, e.tension], g = e.points.map((c) => new n.Vector3().fromArray(c));
|
|
35
|
+
return new n.CatmullRomCurve3(g, ...i);
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
function O(e) {
|
|
@@ -5,3 +5,9 @@ export declare function updateGuideLineModeItemByData(options: {
|
|
|
5
5
|
data: PluginType.GuideLineItem;
|
|
6
6
|
mode: PluginType.GuideLineModeItemMode;
|
|
7
7
|
}): void;
|
|
8
|
+
/**
|
|
9
|
+
* 筛选出给定数组中,相邻元素不能重复的元素组成的新数组
|
|
10
|
+
* @param array 要筛选的数组
|
|
11
|
+
* @returns 筛选后的新数组
|
|
12
|
+
*/
|
|
13
|
+
export declare function filterAdjacentDistinct<T>(array: T[]): T[];
|
|
@@ -34,12 +34,16 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
34
34
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
35
35
|
import "../../shared-utils/animationFrame/index.js";
|
|
36
36
|
function O(o) {
|
|
37
|
-
const t = o.data,
|
|
38
|
-
if (!
|
|
37
|
+
const t = o.data, r = o.item, i = o.mode === "panorama" ? t.panorama_style : t.model_style;
|
|
38
|
+
if (!i)
|
|
39
39
|
return;
|
|
40
|
-
const
|
|
41
|
-
t.path ?
|
|
40
|
+
const p = t.path, m = i, e = i;
|
|
41
|
+
t.path ? r.setGeometryByPath(p, m) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, m), r.setMartial(e);
|
|
42
|
+
}
|
|
43
|
+
function Q(o) {
|
|
44
|
+
return o.length === 0 ? [] : o.filter((t, r) => t !== o[r - 1]);
|
|
42
45
|
}
|
|
43
46
|
export {
|
|
47
|
+
Q as filterAdjacentDistinct,
|
|
44
48
|
O as updateGuideLineModeItemByData
|
|
45
49
|
};
|