@realsee/dnalogel 2.21.0-dev.2 → 2.21.0-dev.4
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 +5 -3
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/dist/index.cjs.js +57 -57
- package/dist/index.js +5117 -4939
- package/dist/index.umd.js +50 -50
- 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 +86 -31
- 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 +24 -24
- package/docs/classes/PanoMeasurePluginModel.html +25 -25
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +16 -16
- 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 +14 -14
- 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/interfaces/Util.PointIntersection.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/Components/Tag.js +137 -44
- package/libs/GuideLinePlugin/Controller.d.ts +5 -3
- package/libs/GuideLinePlugin/Controller.js +48 -44
- package/libs/GuideLinePlugin/GuideLineItem/index.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +150 -113
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -17
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +157 -117
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/base.js +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- 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 +30 -28
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,82 +1,175 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { SvelteComponent as G, init as X, safe_not_equal as x, append_styles as P, element as m, space as h, attr as c, set_style as q, insert as z, append as r, noop as E, detach as N, text as j, set_data as T } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
function w(i) {
|
|
3
|
+
P(i, "svelte-1jku181", ".guide-line__tag.svelte-1jku181.svelte-1jku181{position:relative}.text-with-distance.svelte-1jku181.svelte-1jku181{display:flex;flex-direction:column;position:relative;padding:0.125rem 0.25rem;border-radius:0.125rem;background:linear-gradient(to top, rgba(147, 147, 147, 0.3), rgba(74, 74, 74, 0.3));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.2)}.text-with-distance.svelte-1jku181 .border.svelte-1jku181{position:absolute;top:0;right:0;bottom:0;left:0;padding:0.0625rem;border-radius:0.125rem;background:linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:xor}.distance-and-name.svelte-1jku181.svelte-1jku181{display:flex;gap:0.1875rem}.distance.svelte-1jku181.svelte-1jku181{white-space:nowrap;font-size:0.625rem;line-height:0.875rem;color:#66afff}.name.svelte-1jku181.svelte-1jku181{opacity:0.6;font-size:0.625rem;line-height:0.875rem;white-space:nowrap;color:#ffffff}.line-name.svelte-1jku181.svelte-1jku181{color:#fff;white-space:nowrap;font-size:0.625rem;line-height:0.875rem}.guide-line__tag-point.svelte-1jku181.svelte-1jku181{position:absolute;left:50%;bottom:0.0625rem;width:0.4375rem;height:0.125rem;transform:translateX(-50%);background:#fff;border-radius:50%;opacity:0.5}.guide-line__tag-line.svelte-1jku181.svelte-1jku181{position:absolute;left:50%;bottom:0.0625rem;width:0.0625rem;height:1.875rem;transform:translateX(-50%);background:linear-gradient(to top, #fff, rgba(255, 255, 255, 0))}.guide-line__tag-content.svelte-1jku181.svelte-1jku181{position:absolute;left:-0.9375rem;bottom:1.9375rem;display:flex}.guide-line__tag-icon.svelte-1jku181.svelte-1jku181{width:1.875rem;height:1.875rem;background-size:100%}.guide-line__tag-text.svelte-1jku181.svelte-1jku181{box-sizing:content-box;height:0.875rem;width:-moz-max-content;width:max-content;margin-top:0.3125rem;transform:translateX(-0.1875rem);white-space:nowrap;font-size:0.625rem;line-height:0.875rem;border:solid transparent;border-width:0.125rem 0.5rem 0.125rem 0.375rem;border-image-source:url('https://vrlab-static.ljcdn.com/release/web/jsl/test2.2ea9ddee.png');border-image-slice:6 25 6 18 fill;color:#fff}");
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
let e,
|
|
5
|
+
function I(i) {
|
|
6
|
+
let e, a;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
e = m("div"),
|
|
9
|
+
e = m("div"), a = j(
|
|
10
10
|
/*text*/
|
|
11
11
|
i[0]
|
|
12
|
-
),
|
|
13
|
-
i[
|
|
12
|
+
), c(e, "class", "guide-line__tag-text svelte-1jku181"), q(e, "border-image-source", `url(${/*text_background_url*/
|
|
13
|
+
i[6]})`);
|
|
14
14
|
},
|
|
15
|
-
m(
|
|
16
|
-
|
|
15
|
+
m(l, n) {
|
|
16
|
+
z(l, e, n), r(e, a);
|
|
17
17
|
},
|
|
18
|
-
p(
|
|
18
|
+
p(l, n) {
|
|
19
19
|
n & /*text*/
|
|
20
|
-
1 &&
|
|
21
|
-
|
|
20
|
+
1 && T(
|
|
21
|
+
a,
|
|
22
|
+
/*text*/
|
|
23
|
+
l[0]
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
d(l) {
|
|
27
|
+
l && N(e);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function _(i) {
|
|
32
|
+
let e, a, l, n, v = (
|
|
33
|
+
/*i18n*/
|
|
34
|
+
i[5]("全程") + ""
|
|
35
|
+
), o, d, k = (
|
|
36
|
+
/*i18n*/
|
|
37
|
+
i[5]("米") + ""
|
|
38
|
+
), b, t, s, u, p, y, f = (
|
|
39
|
+
/*name*/
|
|
40
|
+
i[4] && D(i)
|
|
41
|
+
);
|
|
42
|
+
return {
|
|
43
|
+
c() {
|
|
44
|
+
e = m("div"), f && f.c(), a = h(), l = m("div"), n = m("span"), o = j(v), d = j(
|
|
45
|
+
/*distance*/
|
|
46
|
+
i[2]
|
|
47
|
+
), b = j(k), t = h(), s = m("span"), u = j(
|
|
48
|
+
/*text*/
|
|
49
|
+
i[0]
|
|
50
|
+
), p = h(), y = m("div"), c(n, "class", "distance svelte-1jku181"), c(s, "class", "name svelte-1jku181"), c(l, "class", "distance-and-name svelte-1jku181"), c(y, "class", "border svelte-1jku181"), c(e, "class", "text-with-distance svelte-1jku181");
|
|
51
|
+
},
|
|
52
|
+
m(g, A) {
|
|
53
|
+
z(g, e, A), f && f.m(e, null), r(e, a), r(e, l), r(l, n), r(n, o), r(n, d), r(n, b), r(l, t), r(l, s), r(s, u), r(e, p), r(e, y);
|
|
54
|
+
},
|
|
55
|
+
p(g, A) {
|
|
56
|
+
/*name*/
|
|
57
|
+
g[4] ? f ? f.p(g, A) : (f = D(g), f.c(), f.m(e, a)) : f && (f.d(1), f = null), A & /*i18n*/
|
|
58
|
+
32 && v !== (v = /*i18n*/
|
|
59
|
+
g[5]("全程") + "") && T(o, v), A & /*distance*/
|
|
60
|
+
4 && T(
|
|
61
|
+
d,
|
|
62
|
+
/*distance*/
|
|
63
|
+
g[2]
|
|
64
|
+
), A & /*i18n*/
|
|
65
|
+
32 && k !== (k = /*i18n*/
|
|
66
|
+
g[5]("米") + "") && T(b, k), A & /*text*/
|
|
67
|
+
1 && T(
|
|
68
|
+
u,
|
|
22
69
|
/*text*/
|
|
23
|
-
|
|
70
|
+
g[0]
|
|
24
71
|
);
|
|
25
72
|
},
|
|
26
|
-
d(
|
|
27
|
-
|
|
73
|
+
d(g) {
|
|
74
|
+
g && N(e), f && f.d();
|
|
28
75
|
}
|
|
29
76
|
};
|
|
30
77
|
}
|
|
31
|
-
function
|
|
32
|
-
let e,
|
|
78
|
+
function D(i) {
|
|
79
|
+
let e, a;
|
|
80
|
+
return {
|
|
81
|
+
c() {
|
|
82
|
+
e = m("span"), a = j(
|
|
83
|
+
/*name*/
|
|
84
|
+
i[4]
|
|
85
|
+
), c(e, "class", "line-name svelte-1jku181");
|
|
86
|
+
},
|
|
87
|
+
m(l, n) {
|
|
88
|
+
z(l, e, n), r(e, a);
|
|
89
|
+
},
|
|
90
|
+
p(l, n) {
|
|
91
|
+
n & /*name*/
|
|
92
|
+
16 && T(
|
|
93
|
+
a,
|
|
94
|
+
/*name*/
|
|
95
|
+
l[4]
|
|
96
|
+
);
|
|
97
|
+
},
|
|
98
|
+
d(l) {
|
|
99
|
+
l && N(e);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function Z(i) {
|
|
104
|
+
let e, a, l, n, v, o, d, k, b, t = (
|
|
33
105
|
/*text*/
|
|
34
|
-
i[0] &&
|
|
106
|
+
i[0] && !/*distance*/
|
|
107
|
+
i[2] && I(i)
|
|
108
|
+
), s = (
|
|
109
|
+
/*distance*/
|
|
110
|
+
i[2] && _(i)
|
|
35
111
|
);
|
|
36
112
|
return {
|
|
37
113
|
c() {
|
|
38
|
-
e = m("div"),
|
|
39
|
-
i[1]})`),
|
|
114
|
+
e = m("div"), a = m("div"), l = h(), n = m("div"), v = h(), o = m("div"), d = m("div"), k = h(), t && t.c(), b = h(), s && s.c(), c(a, "class", "guide-line__tag-point svelte-1jku181"), c(n, "class", "guide-line__tag-line svelte-1jku181"), c(d, "class", "guide-line__tag-icon svelte-1jku181"), q(d, "background-image", `url(${/*icon_url*/
|
|
115
|
+
i[1]})`), c(o, "class", "guide-line__tag-content svelte-1jku181"), c(e, "class", "guide-line__tag svelte-1jku181"), q(
|
|
40
116
|
e,
|
|
41
117
|
"opacity",
|
|
42
118
|
/*opacity*/
|
|
43
|
-
i[
|
|
119
|
+
i[3]
|
|
44
120
|
);
|
|
45
121
|
},
|
|
46
|
-
m(
|
|
47
|
-
|
|
122
|
+
m(u, p) {
|
|
123
|
+
z(u, e, p), r(e, a), r(e, l), r(e, n), r(e, v), r(e, o), r(o, d), r(o, k), t && t.m(o, null), r(o, b), s && s.m(o, null);
|
|
48
124
|
},
|
|
49
|
-
p(
|
|
50
|
-
|
|
51
|
-
2 && d
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
125
|
+
p(u, [p]) {
|
|
126
|
+
p & /*icon_url*/
|
|
127
|
+
2 && q(d, "background-image", `url(${/*icon_url*/
|
|
128
|
+
u[1]})`), /*text*/
|
|
129
|
+
u[0] && !/*distance*/
|
|
130
|
+
u[2] ? t ? t.p(u, p) : (t = I(u), t.c(), t.m(o, b)) : t && (t.d(1), t = null), /*distance*/
|
|
131
|
+
u[2] ? s ? s.p(u, p) : (s = _(u), s.c(), s.m(o, null)) : s && (s.d(1), s = null), p & /*opacity*/
|
|
132
|
+
8 && q(
|
|
55
133
|
e,
|
|
56
134
|
"opacity",
|
|
57
135
|
/*opacity*/
|
|
58
|
-
|
|
136
|
+
u[3]
|
|
59
137
|
);
|
|
60
138
|
},
|
|
61
|
-
i:
|
|
62
|
-
o:
|
|
63
|
-
d(
|
|
64
|
-
|
|
139
|
+
i: E,
|
|
140
|
+
o: E,
|
|
141
|
+
d(u) {
|
|
142
|
+
u && N(e), t && t.d(), s && s.d();
|
|
65
143
|
}
|
|
66
144
|
};
|
|
67
145
|
}
|
|
68
|
-
function
|
|
69
|
-
let { text:
|
|
70
|
-
const
|
|
71
|
-
return i.$$set = (
|
|
72
|
-
"text" in
|
|
73
|
-
}, [
|
|
146
|
+
function K(i, e, a) {
|
|
147
|
+
let { text: l = "" } = e, { icon_url: n = "" } = e, { distance: v = 0 } = e, { opacity: o = 1 } = e, { name: d = "" } = e, { i18n: k = (t) => t } = e;
|
|
148
|
+
const b = "data:image/png;base64,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";
|
|
149
|
+
return i.$$set = (t) => {
|
|
150
|
+
"text" in t && a(0, l = t.text), "icon_url" in t && a(1, n = t.icon_url), "distance" in t && a(2, v = t.distance), "opacity" in t && a(3, o = t.opacity), "name" in t && a(4, d = t.name), "i18n" in t && a(5, k = t.i18n);
|
|
151
|
+
}, [l, n, v, o, d, k, b];
|
|
74
152
|
}
|
|
75
|
-
class
|
|
153
|
+
class F extends G {
|
|
76
154
|
constructor(e) {
|
|
77
|
-
super(),
|
|
155
|
+
super(), X(
|
|
156
|
+
this,
|
|
157
|
+
e,
|
|
158
|
+
K,
|
|
159
|
+
Z,
|
|
160
|
+
x,
|
|
161
|
+
{
|
|
162
|
+
text: 0,
|
|
163
|
+
icon_url: 1,
|
|
164
|
+
distance: 2,
|
|
165
|
+
opacity: 3,
|
|
166
|
+
name: 4,
|
|
167
|
+
i18n: 5
|
|
168
|
+
},
|
|
169
|
+
w
|
|
170
|
+
);
|
|
78
171
|
}
|
|
79
172
|
}
|
|
80
173
|
export {
|
|
81
|
-
|
|
174
|
+
F as default
|
|
82
175
|
};
|
|
@@ -12,14 +12,16 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
12
12
|
readonly cruisePlugin: CruisePluginController;
|
|
13
13
|
/** GuideLineItem 索引 */
|
|
14
14
|
readonly itemMap: Map<string | number, GuideLineItem>;
|
|
15
|
-
|
|
16
|
-
private heightOffset;
|
|
17
|
-
get disposed(): boolean;
|
|
15
|
+
get config(): Config;
|
|
18
16
|
state: {
|
|
19
17
|
visible: boolean;
|
|
20
18
|
enabled: boolean;
|
|
21
19
|
};
|
|
22
20
|
protected data?: PluginData;
|
|
21
|
+
/** 当新增一根线时,整体高度的偏移值 */
|
|
22
|
+
private heightOffset;
|
|
23
|
+
get disposed(): boolean;
|
|
24
|
+
private _config;
|
|
23
25
|
private _disposed;
|
|
24
26
|
constructor(five: Five, config?: Config);
|
|
25
27
|
load(serverData: PluginServerData | PluginData, state?: PluginState, userAction?: boolean): Promise<void>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var f = (
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
|
+
var G = Object.getOwnPropertySymbols;
|
|
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
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
N.call(o, t) && f(s, t, o[t]);
|
|
7
|
+
if (G)
|
|
8
|
+
for (var t of G(o))
|
|
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
|
|
33
|
-
import { objectAssignDeepExports as
|
|
34
|
-
import * as
|
|
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
|
+
import { objectAssignDeepExports as S } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as T from "three";
|
|
35
35
|
import "../base/BasePlugin.js";
|
|
36
36
|
import "../shared-utils/Subscribe.js";
|
|
37
37
|
import "hammerjs";
|
|
@@ -188,52 +188,56 @@ 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 V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, 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", V);
|
|
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);
|
|
202
200
|
d(this, "state", {
|
|
203
201
|
visible: !1,
|
|
204
202
|
enabled: !0
|
|
205
203
|
});
|
|
206
204
|
d(this, "data");
|
|
205
|
+
/** 当新增一根线时,整体高度的偏移值 */
|
|
206
|
+
d(this, "heightOffset", 0);
|
|
207
|
+
d(this, "_config");
|
|
207
208
|
d(this, "_disposed", !1);
|
|
208
209
|
d(this, "disposedErrorLog", () => {
|
|
209
210
|
console.error(`${g} is disposed`);
|
|
210
211
|
});
|
|
211
|
-
this.cruisePlugin = new
|
|
212
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new x(t, { useGuideLine: !1 }), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
213
|
+
}
|
|
214
|
+
get config() {
|
|
215
|
+
return this._config;
|
|
212
216
|
}
|
|
213
217
|
get disposed() {
|
|
214
218
|
return this._disposed;
|
|
215
219
|
}
|
|
216
|
-
load(t, i,
|
|
220
|
+
load(t, i, p = !0) {
|
|
217
221
|
return u(this, null, function* () {
|
|
218
222
|
var v, w, E, I, y, L, D;
|
|
219
223
|
if (this.disposed)
|
|
220
224
|
return;
|
|
221
225
|
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
222
226
|
this.hooks.emit("dataChange", e, a), this.data = e;
|
|
223
|
-
const r = e.config,
|
|
227
|
+
const r = e.config, n = {
|
|
224
228
|
panorama_style: {
|
|
225
|
-
visible: !
|
|
229
|
+
visible: !!(!e.lines && e.routes),
|
|
226
230
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
227
231
|
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
228
232
|
texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
229
233
|
}
|
|
230
|
-
},
|
|
231
|
-
var
|
|
232
|
-
return
|
|
233
|
-
})) != null ? y : [],
|
|
234
|
+
}, h = (y = (I = e.routes) == null ? void 0 : I.map((l) => {
|
|
235
|
+
var _;
|
|
236
|
+
return S({}, n, { id: (_ = l.id) != null ? _ : Date.now(), pano_group: l.panoIndexList });
|
|
237
|
+
})) != null ? y : [], A = (D = (L = e.lines) == null ? void 0 : L.map((l) => S({}, n, l))) != null ? D : [], C = [...h, ...A];
|
|
234
238
|
yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
|
|
235
239
|
this.addGuideLineItem(l);
|
|
236
|
-
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction:
|
|
240
|
+
}), 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
241
|
});
|
|
238
242
|
}
|
|
239
243
|
formatData(t) {
|
|
@@ -269,14 +273,14 @@ class Wr extends O {
|
|
|
269
273
|
var a;
|
|
270
274
|
if (this.disposed)
|
|
271
275
|
return this.disposedErrorLog();
|
|
272
|
-
const
|
|
273
|
-
this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !==
|
|
276
|
+
const p = c({}, this.state);
|
|
277
|
+
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
278
|
}
|
|
275
279
|
/** 添加一个 GuideLineItem */
|
|
276
280
|
addGuideLineItem(t) {
|
|
277
|
-
const i = t.render_id || t.id,
|
|
278
|
-
|
|
279
|
-
const a = new
|
|
281
|
+
const i = t.render_id || t.id, p = this.itemMap.get(i);
|
|
282
|
+
p && this.removeGuideLineItem(p);
|
|
283
|
+
const a = new k({ five: this.five, id: i, plugin: this });
|
|
280
284
|
return this.itemMap.set(i, a), t && a.setData(t), this.heightOffset += 1e-4, a.setHeightOffset(this.heightOffset), a;
|
|
281
285
|
}
|
|
282
286
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -293,15 +297,15 @@ class Wr extends O {
|
|
|
293
297
|
function i(e) {
|
|
294
298
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
295
299
|
}
|
|
296
|
-
function
|
|
297
|
-
return new
|
|
300
|
+
function p(e, r) {
|
|
301
|
+
return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
|
|
298
302
|
}
|
|
299
303
|
function a(e) {
|
|
300
304
|
var m;
|
|
301
305
|
const r = (m = e.tag) == null ? void 0 : m.position;
|
|
302
306
|
return i(r) ? t.every((n) => {
|
|
303
307
|
var h;
|
|
304
|
-
return i((h = n.tag) == null ? void 0 : h.position) ? !
|
|
308
|
+
return i((h = n.tag) == null ? void 0 : h.position) ? !p(r, n.tag.position) : !0;
|
|
305
309
|
}) : !1;
|
|
306
310
|
}
|
|
307
311
|
this.itemMap.forEach((e) => {
|
|
@@ -344,6 +348,6 @@ class Wr extends O {
|
|
|
344
348
|
}
|
|
345
349
|
}
|
|
346
350
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
351
|
+
Ur as default,
|
|
352
|
+
Wr as pluginFlag
|
|
349
353
|
};
|
|
@@ -63,7 +63,7 @@ class C {
|
|
|
63
63
|
n.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: m }, l));
|
|
64
64
|
} else
|
|
65
65
|
t.path && n.setGeometryByPath(u, l);
|
|
66
|
-
n.setMartial(a), n.setVisibleFloorIndexes((r = t.visible_floor_indexes) != null ? r : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
|
|
66
|
+
n.name = t.name, n.setMartial(a), n.setVisibleFloorIndexes((r = t.visible_floor_indexes) != null ? r : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
|
|
67
67
|
}
|
|
68
68
|
show() {
|
|
69
69
|
this._visible = !0, this.hooks.emit("show", { userAction: !0 });
|
|
@@ -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 { CruisePluginTypes } from '../CruisePlugin';
|
|
5
|
+
import type { CruisePluginTypes } from '../CruisePlugin';
|
|
6
6
|
import { Subscribe } from '@realsee/five';
|
|
7
7
|
/** 路线引导实例。
|
|
8
8
|
* - 路线包括两个部分:全景路线和模型路线。
|