@realsee/dnalogel 3.69.1-alpha.2 → 3.69.1-alpha.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/CHANGELOG.md +8 -0
- package/dist/index.cjs.js +32 -32
- package/dist/index.js +487 -467
- package/dist/index.umd.js +34 -34
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LegacyPointHelper.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointDomHelper.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/SculptPluginForFive.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.replaceStaticPrefix.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/SculptConfig.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MeasureEndReason.html +1 -1
- package/docs/types/MeasurePluginConfig.html +2 -2
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPlacement.html +2 -2
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/MeasurePlugin/Controller.js +188 -168
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var Rv = Object.defineProperty, _v = Object.defineProperties;
|
|
|
2
2
|
var Bv = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var aa = Object.getOwnPropertySymbols;
|
|
4
4
|
var Hu = Object.prototype.hasOwnProperty, Fu = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Fn = Math.pow, Gl = (n, t, e) => t in n ? Rv(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e,
|
|
5
|
+
var Fn = Math.pow, Gl = (n, t, e) => t in n ? Rv(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, B = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
Hu.call(t, e) && Gl(n, e, t[e]);
|
|
8
8
|
if (aa)
|
|
@@ -43,7 +43,7 @@ import { LineGeometry as yA, LineMaterial as wA, THREE_Line2 as PA, Line as CA }
|
|
|
43
43
|
import { GLTFLoader as IA } from "@realsee/five/gltf-loader";
|
|
44
44
|
function EA() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.69.1-alpha.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.69.1-alpha.4",
|
|
47
47
|
[
|
|
48
48
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -1707,7 +1707,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1707
1707
|
}
|
|
1708
1708
|
return !1;
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function V(O, G) {
|
|
1711
1711
|
return O.indexOf(G) > -1;
|
|
1712
1712
|
}
|
|
1713
1713
|
function b(O) {
|
|
@@ -2080,7 +2080,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2080
2080
|
G.preventDefault();
|
|
2081
2081
|
return;
|
|
2082
2082
|
}
|
|
2083
|
-
var ne = this.actions, be =
|
|
2083
|
+
var ne = this.actions, be = V(ne, zi) && !On[zi], Oe = V(ne, an) && !On[an], Qe = V(ne, rn) && !On[rn];
|
|
2084
2084
|
if (be) {
|
|
2085
2085
|
var bt = O.pointers.length === 1, Pt = O.distance < 2, xt = O.deltaTime < 250;
|
|
2086
2086
|
if (bt && Pt && xt)
|
|
@@ -2098,10 +2098,10 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2098
2098
|
}
|
|
2099
2099
|
};
|
|
2100
2100
|
function Jo(O) {
|
|
2101
|
-
if (
|
|
2101
|
+
if (V(O, zi))
|
|
2102
2102
|
return zi;
|
|
2103
|
-
var G =
|
|
2104
|
-
return G && Z ? zi : G || Z ? G ? rn : an :
|
|
2103
|
+
var G = V(O, rn), Z = V(O, an);
|
|
2104
|
+
return G && Z ? zi : G || Z ? G ? rn : an : V(O, As) ? As : kt;
|
|
2105
2105
|
}
|
|
2106
2106
|
function Ko() {
|
|
2107
2107
|
if (!Zs)
|
|
@@ -3106,8 +3106,8 @@ let $A = function(n) {
|
|
|
3106
3106
|
g.onBeforeRender(t, v, A);
|
|
3107
3107
|
let z;
|
|
3108
3108
|
g.isCSS3DSprite ? (r.copy(A.matrixWorldInverse), r.transpose(), r.copyPosition(g.matrixWorld), r.scale(g.scale), r.elements[3] = 0, r.elements[7] = 0, r.elements[11] = 0, r.elements[15] = 1, z = f(r)) : z = f(g.matrixWorld);
|
|
3109
|
-
let
|
|
3110
|
-
if (
|
|
3109
|
+
let V = a.objects.get(g);
|
|
3110
|
+
if (V === void 0 || V.style !== z) {
|
|
3111
3111
|
j.style.WebkitTransform = z, j.style.transform = z;
|
|
3112
3112
|
let b = { style: z };
|
|
3113
3113
|
a.objects.set(g, b);
|
|
@@ -3861,7 +3861,7 @@ class wi extends fi {
|
|
|
3861
3861
|
d(this, "onPanoArrived", () => {
|
|
3862
3862
|
setTimeout(() => this.updateDomItems({ force: !0 }), 100);
|
|
3863
3863
|
});
|
|
3864
|
-
this.paramsStyle =
|
|
3864
|
+
this.paramsStyle = B({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new Da();
|
|
3865
3865
|
const i = {
|
|
3866
3866
|
color: new P.Color((r = e == null ? void 0 : e.lineColor) != null ? r : ib),
|
|
3867
3867
|
linewidth: (a = e == null ? void 0 : e.lineWidth) != null ? a : nb,
|
|
@@ -3871,7 +3871,7 @@ class wi extends fi {
|
|
|
3871
3871
|
opacity: (l = e == null ? void 0 : e.lineOpacity) != null ? l : 1,
|
|
3872
3872
|
depthWrite: !1,
|
|
3873
3873
|
transparent: !0
|
|
3874
|
-
}, s = new rb(ce(
|
|
3874
|
+
}, s = new rb(ce(B({}, i), { dashed: !1, depthTest: !0 })), o = new ab(ce(B({}, i), { dashed: !0, depthTest: !1 }));
|
|
3875
3875
|
if (this.line1 = new ed(this.geometry, s), this.line2 = new ed(this.geometry, o), this.line1.renderOrder = 2, this.line2.renderOrder = 2, this.line1.name = "line1", this.line2.name = "line2", this.add(this.line1), this.five) {
|
|
3876
3876
|
const h = (c = this.five.renderer) == null ? void 0 : c.getSize(new P.Vector2());
|
|
3877
3877
|
h && this.setResolution(h.width, h.height), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("cameraFovUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onPanoArrived);
|
|
@@ -3959,7 +3959,7 @@ class wi extends fi {
|
|
|
3959
3959
|
}
|
|
3960
3960
|
setStyle(e) {
|
|
3961
3961
|
var o, r, a, l;
|
|
3962
|
-
if (this.paramsStyle =
|
|
3962
|
+
if (this.paramsStyle = B(B({}, this.paramsStyle), e), Fe(e.lineColor)) {
|
|
3963
3963
|
const c = new P.Color(e.lineColor);
|
|
3964
3964
|
this.line1.material.three_color = c, this.line2.material.three_color = c;
|
|
3965
3965
|
}
|
|
@@ -4027,8 +4027,8 @@ class wi extends fi {
|
|
|
4027
4027
|
return document.body.removeChild(C), I;
|
|
4028
4028
|
};
|
|
4029
4029
|
let z = 0;
|
|
4030
|
-
const
|
|
4031
|
-
A > 0 &&
|
|
4030
|
+
const V = j(u);
|
|
4031
|
+
A > 0 && V > A && (z = -20), this.doms[a].container.innerHTML = Ch(u, {
|
|
4032
4032
|
style: `${D} ${this.paramsStyle.cssStyle || ""}`,
|
|
4033
4033
|
offsetY: z
|
|
4034
4034
|
});
|
|
@@ -4117,7 +4117,7 @@ function pb() {
|
|
|
4117
4117
|
lineColor: 3407837,
|
|
4118
4118
|
lineOpacity: 0.7,
|
|
4119
4119
|
occlusionVisibility: !0
|
|
4120
|
-
}, i = new wi(ce(
|
|
4120
|
+
}, i = new wi(ce(B({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new wi(ce(B({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
|
|
4121
4121
|
return t.add(i, s), t;
|
|
4122
4122
|
}
|
|
4123
4123
|
function gb(n) {
|
|
@@ -4218,7 +4218,7 @@ class Hm {
|
|
|
4218
4218
|
d(this, "abortUpdateMagnifier", () => {
|
|
4219
4219
|
});
|
|
4220
4220
|
var s, o, r, a, l;
|
|
4221
|
-
this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new yh(t, ce(
|
|
4221
|
+
this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new yh(t, ce(B({ dragEnabled: !0 }, e == null ? void 0 : e.magnifierParams), { skipPanorama: (s = e == null ? void 0 : e.skipPanorama) != null ? s : !1 }));
|
|
4222
4222
|
let i = null;
|
|
4223
4223
|
(e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? i = new Ym(t) : (e == null ? void 0 : e.pointHelper) === "highlight" ? i = new bb(t) : (e == null ? void 0 : e.pointHelper) === null ? i = null : i = e.pointHelper, this.pointHelper = i, this.group.name = "five-point-selector", this.five.scene.add(this.group), (l = this.magnifier) == null || l.appendTo((a = (r = e.container) != null ? r : (o = t.getElement()) == null ? void 0 : o.parentElement) != null ? a : document.body);
|
|
4224
4224
|
}
|
|
@@ -4260,7 +4260,7 @@ function Nm(n, t = 3) {
|
|
|
4260
4260
|
function wb(n, t) {
|
|
4261
4261
|
const s = bi(n).intersectRaycaster(t)[0];
|
|
4262
4262
|
if (s)
|
|
4263
|
-
return ce(
|
|
4263
|
+
return ce(B({}, s), { raycaster: t, isVirtual: !1 });
|
|
4264
4264
|
}
|
|
4265
4265
|
const td = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, Pb = new P.Vector3();
|
|
4266
4266
|
function es(n) {
|
|
@@ -4437,7 +4437,7 @@ class pl extends Ct {
|
|
|
4437
4437
|
const i = yb(this.five, e);
|
|
4438
4438
|
let s = Ur(this.five, i);
|
|
4439
4439
|
if (s) {
|
|
4440
|
-
if (this.plane && this.planeMode === "vertical" && (s = ce(
|
|
4440
|
+
if (this.plane && this.planeMode === "vertical" && (s = ce(B({}, s), {
|
|
4441
4441
|
point: this.plane.projectPoint(s.point, new P.Vector3()),
|
|
4442
4442
|
face: new P.Face3(0, 0, 0, this.plane.normal.clone()),
|
|
4443
4443
|
originalPoint: s.point.clone()
|
|
@@ -4487,7 +4487,7 @@ class pl extends Ct {
|
|
|
4487
4487
|
return;
|
|
4488
4488
|
}
|
|
4489
4489
|
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
4490
|
-
const i =
|
|
4490
|
+
const i = B({}, e);
|
|
4491
4491
|
if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer) {
|
|
4492
4492
|
const f = {
|
|
4493
4493
|
x: this.mouseNdcPosition.x,
|
|
@@ -4547,8 +4547,8 @@ class pl extends Ct {
|
|
|
4547
4547
|
else {
|
|
4548
4548
|
const D = new P.Raycaster();
|
|
4549
4549
|
D.setFromCamera(g.clone(), this.five.camera);
|
|
4550
|
-
const j = this.five.model.intersectRaycaster(D, void 0, !0)[0], z = 0.1,
|
|
4551
|
-
j && j.distance <
|
|
4550
|
+
const j = this.five.model.intersectRaycaster(D, void 0, !0)[0], z = 0.1, V = this.five.camera.position.distanceTo(g);
|
|
4551
|
+
j && j.distance < V + z && (L = !0);
|
|
4552
4552
|
}
|
|
4553
4553
|
if (L) {
|
|
4554
4554
|
i.point = g.clone(), !this.plane && p instanceof P.Face3 && (i.face = p), i.isAdsorbed = !0;
|
|
@@ -4581,15 +4581,15 @@ class pl extends Ct {
|
|
|
4581
4581
|
d(this, "emitIntersectionUpdate", (e) => {
|
|
4582
4582
|
this.emit("intersectionUpdate", e);
|
|
4583
4583
|
});
|
|
4584
|
-
this.five = e, this.config =
|
|
4584
|
+
this.five = e, this.config = B(B({}, this.config), i), this.actionIfNoIntersection = (a = (r = i == null ? void 0 : i.actionIfNoIntersection) != null ? r : i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
|
|
4585
4585
|
const s = (l = i == null ? void 0 : i.mode) != null ? l : "auto";
|
|
4586
4586
|
s === "auto" ? this.mode = Fm ? "fixed" : "cursor" : this.mode = s;
|
|
4587
4587
|
const o = {
|
|
4588
4588
|
autoFixPCPosition: this.mode === "cursor",
|
|
4589
4589
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
4590
4590
|
};
|
|
4591
|
-
this.pointSelectorHelper = new Hm(this.five, ce(
|
|
4592
|
-
magnifierParams:
|
|
4591
|
+
this.pointSelectorHelper = new Hm(this.five, ce(B({}, i == null ? void 0 : i.helper), {
|
|
4592
|
+
magnifierParams: B(B({}, o), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams),
|
|
4593
4593
|
skipPanorama: (h = i == null ? void 0 : i.skipPanorama) != null ? h : !1
|
|
4594
4594
|
})), this.pointSelectorHelper.hide();
|
|
4595
4595
|
}
|
|
@@ -4659,7 +4659,7 @@ class Wm extends P.Mesh {
|
|
|
4659
4659
|
const Ih = (n) => n ? n.visible === !1 ? !1 : Ih(n.parent) : !0, Um = 1, nd = `CSS3DObjectPlus@${Um}`, Cb = 216e-5, Ib = 3e-3;
|
|
4660
4660
|
let Qm = class extends yn {
|
|
4661
4661
|
constructor(e) {
|
|
4662
|
-
var L, D, j, z,
|
|
4662
|
+
var L, D, j, z, V;
|
|
4663
4663
|
if (di(e.cornerPoints) && di(e.width))
|
|
4664
4664
|
throw new Error("cornerPoints and width cannot be both empty");
|
|
4665
4665
|
const i = (L = e.container) != null ? L : document.createElement("div"), s = (D = e.cornerPoints) != null ? D : (() => {
|
|
@@ -4670,7 +4670,7 @@ let Qm = class extends yn {
|
|
|
4670
4670
|
new Ae(b, -b, 0),
|
|
4671
4671
|
new Ae(b, b, 0)
|
|
4672
4672
|
];
|
|
4673
|
-
})(), o = (j = e.ratio) != null ? j : Ib, r = (z = e.dpr) != null ? z : 1, a = (
|
|
4673
|
+
})(), o = (j = e.ratio) != null ? j : Ib, r = (z = e.dpr) != null ? z : 1, a = (V = e.pointerEvents) != null ? V : "auto", l = Math.max(Cb, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = Mo(c / o * r), f = Mo(h / o * r), m = si(...s);
|
|
4674
4674
|
let p;
|
|
4675
4675
|
if (l === o)
|
|
4676
4676
|
i.style.width = `${u}px`, i.style.height = `${f}px`, p = i;
|
|
@@ -5745,8 +5745,8 @@ function ut(n) {
|
|
|
5745
5745
|
}
|
|
5746
5746
|
function p(w) {
|
|
5747
5747
|
for (var E = 0, k = l.animations, L = k.length; E < L; ) {
|
|
5748
|
-
var D = k[E], j = D.animatable, z = D.tweens,
|
|
5749
|
-
|
|
5748
|
+
var D = k[E], j = D.animatable, z = D.tweens, V = z.length - 1, b = z[V];
|
|
5749
|
+
V && (b = ml(z, function(Te) {
|
|
5750
5750
|
return w < Te.end;
|
|
5751
5751
|
})[0] || b);
|
|
5752
5752
|
for (var C = Zi(w - b.start - b.delay, 0, b.duration) / b.duration, I = isNaN(C) ? 1 : b.easing(C), M = b.to.strings, S = b.round, T = [], N = b.to.numbers.length, _ = void 0, q = 0; q < N; q++) {
|
|
@@ -5830,8 +5830,8 @@ function cy(n, t) {
|
|
|
5830
5830
|
if (!s)
|
|
5831
5831
|
g.push(Math.abs(r - k));
|
|
5832
5832
|
else {
|
|
5833
|
-
var L = l ? (s[0] - 1) / 2 : r % s[0], D = l ? (s[1] - 1) / 2 : Math.floor(r / s[0]), j = k % s[0], z = Math.floor(k / s[0]),
|
|
5834
|
-
o === "x" && (C = -
|
|
5833
|
+
var L = l ? (s[0] - 1) / 2 : r % s[0], D = l ? (s[1] - 1) / 2 : Math.floor(r / s[0]), j = k % s[0], z = Math.floor(k / s[0]), V = L - j, b = D - z, C = Math.sqrt(V * V + b * b);
|
|
5834
|
+
o === "x" && (C = -V), o === "y" && (C = -b), g.push(C);
|
|
5835
5835
|
}
|
|
5836
5836
|
v = Math.max.apply(Math, g);
|
|
5837
5837
|
}
|
|
@@ -5922,7 +5922,7 @@ function bl(n, t) {
|
|
|
5922
5922
|
c && s.push(c);
|
|
5923
5923
|
})) : s.push(l)));
|
|
5924
5924
|
}), i = [...new Set(s.filter(Boolean))], uy(i);
|
|
5925
|
-
const o = ut(
|
|
5925
|
+
const o = ut(B({
|
|
5926
5926
|
targets: i,
|
|
5927
5927
|
duration: 300,
|
|
5928
5928
|
easing: "linear",
|
|
@@ -5956,7 +5956,7 @@ function bl(n, t) {
|
|
|
5956
5956
|
}), o;
|
|
5957
5957
|
}
|
|
5958
5958
|
function m0(n, t) {
|
|
5959
|
-
return bl(n,
|
|
5959
|
+
return bl(n, B({
|
|
5960
5960
|
update: (e) => {
|
|
5961
5961
|
var i;
|
|
5962
5962
|
e.animatables.forEach((s) => {
|
|
@@ -5975,7 +5975,7 @@ function dy(n, t) {
|
|
|
5975
5975
|
a.setFromCamera({ x: o, y: r }, n.camera);
|
|
5976
5976
|
const c = e.intersectRaycaster(a)[0];
|
|
5977
5977
|
if (c)
|
|
5978
|
-
return ce(
|
|
5978
|
+
return ce(B({}, c), { raycaster: a, isVirtual: !1 });
|
|
5979
5979
|
}
|
|
5980
5980
|
function fy(n, t) {
|
|
5981
5981
|
const e = n.getElement();
|
|
@@ -6190,7 +6190,7 @@ class Sr {
|
|
|
6190
6190
|
s && (e ? s.add(i) : s.remove(i));
|
|
6191
6191
|
});
|
|
6192
6192
|
d(this, "createObject", (t, e) => {
|
|
6193
|
-
const i = new Qm(ce(
|
|
6193
|
+
const i = new Qm(ce(B({ cornerPoints: t }, e), { style: e.wrapperStyle }));
|
|
6194
6194
|
return i.element.classList.add(`${_c}__container`), i.element.id = `${_c}__container--${i.uuid}`, i;
|
|
6195
6195
|
});
|
|
6196
6196
|
t && this.setScene(t);
|
|
@@ -6219,7 +6219,7 @@ class Sr {
|
|
|
6219
6219
|
setState(t, e = { userAction: !0 }) {
|
|
6220
6220
|
if (this.state.disposed)
|
|
6221
6221
|
return so();
|
|
6222
|
-
const i =
|
|
6222
|
+
const i = B({}, this.state);
|
|
6223
6223
|
this.state = Object.assign(this.state, t), i.visible !== this.state.visible && (t.visible ? this.handleShow() : this.handleHide()), i.enabled !== this.state.enabled && (t.enabled ? this.handleEnable() : this.handleDisable()), i.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e.userAction });
|
|
6224
6224
|
}
|
|
6225
6225
|
dispose() {
|
|
@@ -6394,7 +6394,7 @@ let Py = class extends Sr {
|
|
|
6394
6394
|
return Object.assign(h, i, (i == null ? void 0 : i.mode) === "behind" ? { scene: this.five.scene } : void 0);
|
|
6395
6395
|
})(), { autoRender: o } = s;
|
|
6396
6396
|
s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
|
|
6397
|
-
const r = this.create3DElement(this.five.camera, e, ce(
|
|
6397
|
+
const r = this.create3DElement(this.five.camera, e, ce(B({}, s), { autoRender: !1 }));
|
|
6398
6398
|
if (!r)
|
|
6399
6399
|
return;
|
|
6400
6400
|
const a = r.dispose;
|
|
@@ -6408,7 +6408,7 @@ let Py = class extends Sr {
|
|
|
6408
6408
|
}, c = () => {
|
|
6409
6409
|
yi(this.five).then(() => l());
|
|
6410
6410
|
};
|
|
6411
|
-
return o && c(), ce(
|
|
6411
|
+
return o && c(), ce(B({}, r), { render: o ? void 0 : c });
|
|
6412
6412
|
});
|
|
6413
6413
|
this.five = e;
|
|
6414
6414
|
}
|
|
@@ -6584,21 +6584,21 @@ function Dy(n, t, e) {
|
|
|
6584
6584
|
Fe(S) ? S > C && (L += 1) : L += 1;
|
|
6585
6585
|
}, z = i.clampPoint(D, new P.Vector3());
|
|
6586
6586
|
j(z);
|
|
6587
|
-
const
|
|
6588
|
-
if (j(
|
|
6587
|
+
const V = new P.Vector3(r.x, D.y, r.z);
|
|
6588
|
+
if (j(V), Fe(m[L]) && f > m[L] || (m[L] = f), L === 2)
|
|
6589
6589
|
break;
|
|
6590
6590
|
f += 30;
|
|
6591
6591
|
}
|
|
6592
6592
|
const g = p((k = (E = m[2]) != null ? E : m[1]) != null ? k : 0), v = g.distanceTo(r), A = Qr(r.clone().sub(g).normalize());
|
|
6593
6593
|
if (n.state.mode === "Mapview")
|
|
6594
6594
|
return n.updateCamera(
|
|
6595
|
-
|
|
6595
|
+
B({
|
|
6596
6596
|
offset: r,
|
|
6597
6597
|
distance: v
|
|
6598
6598
|
}, A),
|
|
6599
6599
|
800
|
|
6600
6600
|
);
|
|
6601
|
-
n.setState(
|
|
6601
|
+
n.setState(B({
|
|
6602
6602
|
mode: "Mapview",
|
|
6603
6603
|
offset: r,
|
|
6604
6604
|
distance: v
|
|
@@ -6629,13 +6629,13 @@ function b0(n, t, e) {
|
|
|
6629
6629
|
const m = f((v = u[1]) != null ? v : 0), p = Qr(t.clone().sub(m).normalize());
|
|
6630
6630
|
if (n.state.mode === "Mapview")
|
|
6631
6631
|
return n.updateCamera(
|
|
6632
|
-
|
|
6632
|
+
B({
|
|
6633
6633
|
offset: t,
|
|
6634
6634
|
distance: i
|
|
6635
6635
|
}, p),
|
|
6636
6636
|
800
|
|
6637
6637
|
);
|
|
6638
|
-
n.setState(
|
|
6638
|
+
n.setState(B({
|
|
6639
6639
|
mode: "Mapview",
|
|
6640
6640
|
offset: t,
|
|
6641
6641
|
distance: i
|
|
@@ -6747,7 +6747,7 @@ class xo {
|
|
|
6747
6747
|
if (!r)
|
|
6748
6748
|
return !1;
|
|
6749
6749
|
const D = r.slice(1);
|
|
6750
|
-
return D[0] ? this.notify(ce(
|
|
6750
|
+
return D[0] ? this.notify(ce(B({}, t), { object: D[0].object, intersects: D })) : !1;
|
|
6751
6751
|
};
|
|
6752
6752
|
let f = i;
|
|
6753
6753
|
for (h.push(f); f.parent; )
|
|
@@ -6765,7 +6765,7 @@ class xo {
|
|
|
6765
6765
|
continue;
|
|
6766
6766
|
const z = j[`${e}Handler`];
|
|
6767
6767
|
if (z)
|
|
6768
|
-
for (const [
|
|
6768
|
+
for (const [V, b] of z) {
|
|
6769
6769
|
if (b != null && b.noEmitWhenNotInScene && m.type !== "Scene")
|
|
6770
6770
|
continue;
|
|
6771
6771
|
if (b.skipPano && a) {
|
|
@@ -6794,7 +6794,7 @@ class xo {
|
|
|
6794
6794
|
continue;
|
|
6795
6795
|
D._hovered = !1;
|
|
6796
6796
|
}
|
|
6797
|
-
const C =
|
|
6797
|
+
const C = V({
|
|
6798
6798
|
type: e,
|
|
6799
6799
|
target: D,
|
|
6800
6800
|
origDomEvent: s,
|
|
@@ -6847,7 +6847,7 @@ class xo {
|
|
|
6847
6847
|
* @return {void}
|
|
6848
6848
|
*/
|
|
6849
6849
|
addEventListener(t, e, i, s) {
|
|
6850
|
-
t._domEvent || (t._domEvent = {}), t._domEvent[`${e}Handler`] || (t._domEvent[`${e}Handler`] = []), this.boundObject[e] || (this.boundObject[e] = []), this.boundObject[e].includes(t) || this.boundObject[e].push(t), t._domEvent[`${e}Handler`].push([i,
|
|
6850
|
+
t._domEvent || (t._domEvent = {}), t._domEvent[`${e}Handler`] || (t._domEvent[`${e}Handler`] = []), this.boundObject[e] || (this.boundObject[e] = []), this.boundObject[e].includes(t) || this.boundObject[e].push(t), t._domEvent[`${e}Handler`].push([i, B({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
|
|
6851
6851
|
}
|
|
6852
6852
|
removeEventListener(t, e, i, ...s) {
|
|
6853
6853
|
var r, a;
|
|
@@ -7078,7 +7078,7 @@ const fS = (n, t) => {
|
|
|
7078
7078
|
var C, I;
|
|
7079
7079
|
const e = new Ct();
|
|
7080
7080
|
let i = (I = (C = t == null ? void 0 : t.initialState) == null ? void 0 : C.enabled) != null ? I : !0, s = !1, o = !0, r = null;
|
|
7081
|
-
const l =
|
|
7081
|
+
const l = B(B({}, {
|
|
7082
7082
|
lookAtCurrentCamera: !1,
|
|
7083
7083
|
lockedPanoIndex: null,
|
|
7084
7084
|
lockedLatitude: null,
|
|
@@ -7158,12 +7158,12 @@ const fS = (n, t) => {
|
|
|
7158
7158
|
!i || o !== !0 || !r || !r.domElement.parentNode || r.domElement.parentNode.offsetWidth === 0 || (r.render(c, h), o = !1);
|
|
7159
7159
|
}, z = () => {
|
|
7160
7160
|
r && r.dispose(), r = null;
|
|
7161
|
-
},
|
|
7161
|
+
}, V = (M) => {
|
|
7162
7162
|
Object.assign(l, M), D();
|
|
7163
7163
|
}, b = () => ({
|
|
7164
7164
|
enabled: i
|
|
7165
7165
|
});
|
|
7166
|
-
return n.on("loaded", A), n.on("willLoad", v), n.on("cameraDirectionUpdate", D), n.on("dispose", z), n.on("renderFrame", j), n.on("cameraPositionUpdate", D), { appendTo: k, refresh: L, changeConfigs:
|
|
7166
|
+
return n.on("loaded", A), n.on("willLoad", v), n.on("cameraDirectionUpdate", D), n.on("dispose", z), n.on("renderFrame", j), n.on("cameraPositionUpdate", D), { appendTo: k, refresh: L, changeConfigs: V, enable: w, disable: E, getCurrentState: b, hooks: e };
|
|
7167
7167
|
};
|
|
7168
7168
|
class P0 extends CA {
|
|
7169
7169
|
constructor(...t) {
|
|
@@ -7797,16 +7797,16 @@ function Ti(n, t, e, i, s, o, r, a, l, c, h, u) {
|
|
|
7797
7797
|
const v = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), E = [];
|
|
7798
7798
|
for (p = m; p--; ) {
|
|
7799
7799
|
const j = u(s, o, p), z = e(j);
|
|
7800
|
-
let
|
|
7801
|
-
|
|
7800
|
+
let V = r.get(z);
|
|
7801
|
+
V ? i && E.push(() => V.p(j, t)) : (V = c(z, j), V.c()), A.set(z, v[p] = V), z in g && w.set(z, Math.abs(p - g[z]));
|
|
7802
7802
|
}
|
|
7803
7803
|
const k = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
|
7804
7804
|
function D(j) {
|
|
7805
7805
|
F(j, 1), j.m(a, h), r.set(j.key, j), h = j.first, m--;
|
|
7806
7806
|
}
|
|
7807
7807
|
for (; f && m; ) {
|
|
7808
|
-
const j = v[m - 1], z = n[f - 1],
|
|
7809
|
-
j === z ? (h = j.first, f--, m--) : A.has(b) ? !r.has(
|
|
7808
|
+
const j = v[m - 1], z = n[f - 1], V = j.key, b = z.key;
|
|
7809
|
+
j === z ? (h = j.first, f--, m--) : A.has(b) ? !r.has(V) || k.has(V) ? D(j) : L.has(b) ? f-- : w.get(V) > w.get(b) ? (L.add(V), D(j)) : (k.add(b), f--) : (l(z, r), f--);
|
|
7810
7810
|
}
|
|
7811
7811
|
for (; f--; ) {
|
|
7812
7812
|
const j = n[f];
|
|
@@ -8592,8 +8592,8 @@ function Dw(n, t, e) {
|
|
|
8592
8592
|
return !1;
|
|
8593
8593
|
const L = new Ho(), D = s.camera.position.clone(), j = new Ae(E.position.x, E.position.y, E.position.z), z = j.distanceTo(D);
|
|
8594
8594
|
L.set(D.clone(), j.clone().sub(D).normalize());
|
|
8595
|
-
const [
|
|
8596
|
-
return !(
|
|
8595
|
+
const [V] = s.model.intersectRaycaster(L);
|
|
8596
|
+
return !(V && V.distance + 1 < z);
|
|
8597
8597
|
}
|
|
8598
8598
|
function f(E, k) {
|
|
8599
8599
|
const D = new Ae(E.position.x, E.position.y, E.position.z).clone().project(s.camera), j = Math.ceil((D.x + 1) / 2 * k.x), z = Math.ceil((-D.y + 1) / 2 * k.y);
|
|
@@ -8602,15 +8602,15 @@ function Dw(n, t, e) {
|
|
|
8602
8602
|
function m(E) {
|
|
8603
8603
|
const { rendererSize: k } = E, L = /* @__PURE__ */ new Map();
|
|
8604
8604
|
function D(z) {
|
|
8605
|
-
const
|
|
8606
|
-
if (
|
|
8607
|
-
return
|
|
8605
|
+
const V = L.get(z.id);
|
|
8606
|
+
if (V)
|
|
8607
|
+
return V;
|
|
8608
8608
|
const { x: b, y: C, z: I } = z.position, M = new Ae(b, C, I).clone().distanceTo(s.camera.position);
|
|
8609
8609
|
return L.set(z.id, M), M;
|
|
8610
8610
|
}
|
|
8611
8611
|
return o.map((z) => {
|
|
8612
|
-
const
|
|
8613
|
-
return ce(
|
|
8612
|
+
const V = u(z), b = V ? f(z, k) : z.transform, C = D(z), M = o.filter((S) => S.visible && D(S) < C).length * 10;
|
|
8613
|
+
return ce(B({}, z), { visible: V, transform: b, zIndex: M });
|
|
8614
8614
|
});
|
|
8615
8615
|
}
|
|
8616
8616
|
function p() {
|
|
@@ -9562,7 +9562,7 @@ function o2(n, t) {
|
|
|
9562
9562
|
return s;
|
|
9563
9563
|
}
|
|
9564
9564
|
function r2(n, t, e) {
|
|
9565
|
-
let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, { pxmm: E } = t, { roomAreaEnable: k } = t, { roomNameEnable: L } = t, { roomNameOtherTypeEnable: D } = t, { roomDimensionEnable: j } = t, { room: z } = t, { hoveredRoom:
|
|
9565
|
+
let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, { pxmm: E } = t, { roomAreaEnable: k } = t, { roomNameEnable: L } = t, { roomNameOtherTypeEnable: D } = t, { roomDimensionEnable: j } = t, { room: z } = t, { hoveredRoom: V } = t, { getRoomAreaText: b } = t, { getRoomDimensionText: C } = t, { getLabelElement: I } = t, { adaptiveRoomLabelVisibleEnable: M } = t, { fontSize: S } = t;
|
|
9566
9566
|
function T(he, Le) {
|
|
9567
9567
|
if (Le.width === 0 || Le.height === 0)
|
|
9568
9568
|
return () => !1;
|
|
@@ -9579,7 +9579,7 @@ function r2(n, t, e) {
|
|
|
9579
9579
|
}
|
|
9580
9580
|
const N = z.roomLabel, _ = N.positionInImage.x * 100 + "%", q = N.positionInImage.y * 100 + "%";
|
|
9581
9581
|
let ee = 0, K = 0, se = 0, te = 0, le = !1;
|
|
9582
|
-
|
|
9582
|
+
V.subscribe(function(Le) {
|
|
9583
9583
|
e(27, le = !!Le && Le.id === z.id);
|
|
9584
9584
|
});
|
|
9585
9585
|
const Se = (he) => {
|
|
@@ -9592,7 +9592,7 @@ function r2(n, t, e) {
|
|
|
9592
9592
|
e(7, K = he.detail);
|
|
9593
9593
|
};
|
|
9594
9594
|
return n.$$set = (he) => {
|
|
9595
|
-
"pxmm" in he && e(21, E = he.pxmm), "roomAreaEnable" in he && e(0, k = he.roomAreaEnable), "roomNameEnable" in he && e(1, L = he.roomNameEnable), "roomNameOtherTypeEnable" in he && e(2, D = he.roomNameOtherTypeEnable), "roomDimensionEnable" in he && e(3, j = he.roomDimensionEnable), "room" in he && e(4, z = he.room), "hoveredRoom" in he && e(22,
|
|
9595
|
+
"pxmm" in he && e(21, E = he.pxmm), "roomAreaEnable" in he && e(0, k = he.roomAreaEnable), "roomNameEnable" in he && e(1, L = he.roomNameEnable), "roomNameOtherTypeEnable" in he && e(2, D = he.roomNameOtherTypeEnable), "roomDimensionEnable" in he && e(3, j = he.roomDimensionEnable), "room" in he && e(4, z = he.room), "hoveredRoom" in he && e(22, V = he.hoveredRoom), "getRoomAreaText" in he && e(23, b = he.getRoomAreaText), "getRoomDimensionText" in he && e(24, C = he.getRoomDimensionText), "getLabelElement" in he && e(5, I = he.getLabelElement), "adaptiveRoomLabelVisibleEnable" in he && e(25, M = he.adaptiveRoomLabelVisibleEnable), "fontSize" in he && e(26, S = he.fontSize);
|
|
9596
9596
|
}, n.$$.update = () => {
|
|
9597
9597
|
var he, Le;
|
|
9598
9598
|
n.$$.dirty[0] & /*fontSize*/
|
|
@@ -9642,7 +9642,7 @@ function r2(n, t, e) {
|
|
|
9642
9642
|
_,
|
|
9643
9643
|
q,
|
|
9644
9644
|
E,
|
|
9645
|
-
|
|
9645
|
+
V,
|
|
9646
9646
|
b,
|
|
9647
9647
|
C,
|
|
9648
9648
|
M,
|
|
@@ -10947,7 +10947,7 @@ function H2(n, t, e) {
|
|
|
10947
10947
|
"roomLabelsEnable" in u && e(4, s = u.roomLabelsEnable), "roomDimensionEnable" in u && e(5, o = u.roomDimensionEnable), "floorIndex" in u && e(6, r = u.floorIndex), "floorplanData" in u && e(7, a = u.floorplanData);
|
|
10948
10948
|
}, n.$$.update = () => {
|
|
10949
10949
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
10950
|
-
192 && e(0, i = a.floorDatas[r].rooms.map((u) => ce(
|
|
10950
|
+
192 && e(0, i = a.floorDatas[r].rooms.map((u) => ce(B({}, u), {
|
|
10951
10951
|
path: u.path.map((f) => N0(f, a.bounding))
|
|
10952
10952
|
})));
|
|
10953
10953
|
}, [
|
|
@@ -11614,11 +11614,11 @@ function h3(n) {
|
|
|
11614
11614
|
c() {
|
|
11615
11615
|
me(t.$$.fragment), e = ae(), g && g.c(), i = ae(), me(s.$$.fragment), o = ae(), me(r.$$.fragment), a = ae(), k && k.c(), l = ae(), L && L.c(), c = ae(), D && D.c(), h = ae(), j && j.c(), u = Ge();
|
|
11616
11616
|
},
|
|
11617
|
-
m(z,
|
|
11618
|
-
pe(t, z,
|
|
11617
|
+
m(z, V) {
|
|
11618
|
+
pe(t, z, V), Y(z, e, V), g && g.m(z, V), Y(z, i, V), pe(s, z, V), Y(z, o, V), pe(r, z, V), Y(z, a, V), k && k.m(z, V), Y(z, l, V), L && L.m(z, V), Y(z, c, V), D && D.m(z, V), Y(z, h, V), j && j.m(z, V), Y(z, u, V), f = !0;
|
|
11619
11619
|
},
|
|
11620
|
-
p(z,
|
|
11621
|
-
const b =
|
|
11620
|
+
p(z, V) {
|
|
11621
|
+
const b = V & /*floorIndex, floorplanData, roomLabelsEnable, roomDimensionEnable*/
|
|
11622
11622
|
5188 ? jt(m, [
|
|
11623
11623
|
{
|
|
11624
11624
|
floorIndex: (
|
|
@@ -11641,11 +11641,11 @@ function h3(n) {
|
|
|
11641
11641
|
]) : {};
|
|
11642
11642
|
t.$set(b), /*highlightEnable*/
|
|
11643
11643
|
z[3] || /*hoverEnable*/
|
|
11644
|
-
z[5] ? g ? (g.p(z,
|
|
11644
|
+
z[5] ? g ? (g.p(z, V), V & /*highlightEnable, hoverEnable*/
|
|
11645
11645
|
40 && F(g, 1)) : (g = Nd(z), g.c(), F(g, 1), g.m(i.parentNode, i)) : g && (ke(), X(g, 1, 1, () => {
|
|
11646
11646
|
g = null;
|
|
11647
11647
|
}), xe());
|
|
11648
|
-
const C =
|
|
11648
|
+
const C = V & /*floorplanData, floorIndex*/
|
|
11649
11649
|
4100 ? jt(v, [
|
|
11650
11650
|
{
|
|
11651
11651
|
floorplanData: (
|
|
@@ -11659,7 +11659,7 @@ function h3(n) {
|
|
|
11659
11659
|
}
|
|
11660
11660
|
]) : {};
|
|
11661
11661
|
s.$set(C);
|
|
11662
|
-
const I =
|
|
11662
|
+
const I = V & /*floorplanData, floorIndex*/
|
|
11663
11663
|
4100 ? jt(w, [
|
|
11664
11664
|
{
|
|
11665
11665
|
floorplanData: (
|
|
@@ -11673,19 +11673,19 @@ function h3(n) {
|
|
|
11673
11673
|
}
|
|
11674
11674
|
]) : {};
|
|
11675
11675
|
r.$set(I), /*roomLabelsEnable*/
|
|
11676
|
-
z[6] ? k ? (k.p(z,
|
|
11676
|
+
z[6] ? k ? (k.p(z, V), V & /*roomLabelsEnable*/
|
|
11677
11677
|
64 && F(k, 1)) : (k = Gd(z), k.c(), F(k, 1), k.m(l.parentNode, l)) : k && (ke(), X(k, 1, 1, () => {
|
|
11678
11678
|
k = null;
|
|
11679
11679
|
}), xe()), /*ruleLabelsEnable*/
|
|
11680
|
-
z[11] ? L ? (L.p(z,
|
|
11680
|
+
z[11] ? L ? (L.p(z, V), V & /*ruleLabelsEnable*/
|
|
11681
11681
|
2048 && F(L, 1)) : (L = Wd(z), L.c(), F(L, 1), L.m(c.parentNode, c)) : L && (ke(), X(L, 1, 1, () => {
|
|
11682
11682
|
L = null;
|
|
11683
11683
|
}), xe()), /*cameraEnable*/
|
|
11684
|
-
z[4] ? D ? (D.p(z,
|
|
11684
|
+
z[4] ? D ? (D.p(z, V), V & /*cameraEnable*/
|
|
11685
11685
|
16 && F(D, 1)) : (D = Ud(z), D.c(), F(D, 1), D.m(h.parentNode, h)) : D && (ke(), X(D, 1, 1, () => {
|
|
11686
11686
|
D = null;
|
|
11687
11687
|
}), xe()), /*compassEnable*/
|
|
11688
|
-
z[23] ? j ? (j.p(z,
|
|
11688
|
+
z[23] ? j ? (j.p(z, V), V & /*compassEnable*/
|
|
11689
11689
|
8388608 && F(j, 1)) : (j = Qd(z), j.c(), F(j, 1), j.m(u.parentNode, u)) : j && (ke(), X(j, 1, 1, () => {
|
|
11690
11690
|
j = null;
|
|
11691
11691
|
}), xe());
|
|
@@ -12126,12 +12126,12 @@ function d3(n) {
|
|
|
12126
12126
|
};
|
|
12127
12127
|
}
|
|
12128
12128
|
function f3(n, t, e) {
|
|
12129
|
-
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: A } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: E } = t, { getLabelElement: k } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: D } = t, { highlightData: j } = t, { missingFloorConfig: z } = t, { lastPanoramaLongitude:
|
|
12129
|
+
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: A } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: E } = t, { getLabelElement: k } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: D } = t, { highlightData: j } = t, { missingFloorConfig: z } = t, { lastPanoramaLongitude: V } = t, { cameraImageUrl: b } = t, { northDesc: C } = t, { compassEnable: I } = t, { store: M = void 0 } = t;
|
|
12130
12130
|
const S = eu(void 0);
|
|
12131
12131
|
return S.subscribe((T) => {
|
|
12132
12132
|
M && e(26, M.roomOnMouse = T, M);
|
|
12133
12133
|
}), n.$$set = (T) => {
|
|
12134
|
-
"panoIndex" in T && e(0, o = T.panoIndex), "isCurrent" in T && e(1, r = T.isCurrent), "floorIndex" in T && e(2, a = T.floorIndex), "highlightEnable" in T && e(3, l = T.highlightEnable), "cameraEnable" in T && e(4, c = T.cameraEnable), "hoverEnable" in T && e(5, h = T.hoverEnable), "roomLabelsEnable" in T && e(6, u = T.roomLabelsEnable), "roomAreaEnable" in T && e(7, f = T.roomAreaEnable), "roomNameEnable" in T && e(8, m = T.roomNameEnable), "roomNameOtherTypeEnable" in T && e(9, p = T.roomNameOtherTypeEnable), "roomDimensionEnable" in T && e(10, g = T.roomDimensionEnable), "ruleLabelsEnable" in T && e(11, v = T.ruleLabelsEnable), "floorplanData" in T && e(12, A = T.floorplanData), "getRoomAreaText" in T && e(13, w = T.getRoomAreaText), "getRoomDimensionText" in T && e(14, E = T.getRoomDimensionText), "getLabelElement" in T && e(15, k = T.getLabelElement), "getRuleDistanceText" in T && e(16, L = T.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in T && e(17, D = T.adaptiveRoomLabelVisibleEnable), "highlightData" in T && e(18, j = T.highlightData), "missingFloorConfig" in T && e(19, z = T.missingFloorConfig), "lastPanoramaLongitude" in T && e(20,
|
|
12134
|
+
"panoIndex" in T && e(0, o = T.panoIndex), "isCurrent" in T && e(1, r = T.isCurrent), "floorIndex" in T && e(2, a = T.floorIndex), "highlightEnable" in T && e(3, l = T.highlightEnable), "cameraEnable" in T && e(4, c = T.cameraEnable), "hoverEnable" in T && e(5, h = T.hoverEnable), "roomLabelsEnable" in T && e(6, u = T.roomLabelsEnable), "roomAreaEnable" in T && e(7, f = T.roomAreaEnable), "roomNameEnable" in T && e(8, m = T.roomNameEnable), "roomNameOtherTypeEnable" in T && e(9, p = T.roomNameOtherTypeEnable), "roomDimensionEnable" in T && e(10, g = T.roomDimensionEnable), "ruleLabelsEnable" in T && e(11, v = T.ruleLabelsEnable), "floorplanData" in T && e(12, A = T.floorplanData), "getRoomAreaText" in T && e(13, w = T.getRoomAreaText), "getRoomDimensionText" in T && e(14, E = T.getRoomDimensionText), "getLabelElement" in T && e(15, k = T.getLabelElement), "getRuleDistanceText" in T && e(16, L = T.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in T && e(17, D = T.adaptiveRoomLabelVisibleEnable), "highlightData" in T && e(18, j = T.highlightData), "missingFloorConfig" in T && e(19, z = T.missingFloorConfig), "lastPanoramaLongitude" in T && e(20, V = T.lastPanoramaLongitude), "cameraImageUrl" in T && e(21, b = T.cameraImageUrl), "northDesc" in T && e(22, C = T.northDesc), "compassEnable" in T && e(23, I = T.compassEnable), "store" in T && e(26, M = T.store);
|
|
12135
12135
|
}, n.$$.update = () => {
|
|
12136
12136
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
12137
12137
|
4100 && e(27, i = A.floorDatas[a]), n.$$.dirty & /*floorData*/
|
|
@@ -12157,7 +12157,7 @@ function f3(n, t, e) {
|
|
|
12157
12157
|
D,
|
|
12158
12158
|
j,
|
|
12159
12159
|
z,
|
|
12160
|
-
|
|
12160
|
+
V,
|
|
12161
12161
|
b,
|
|
12162
12162
|
C,
|
|
12163
12163
|
I,
|
|
@@ -12565,9 +12565,9 @@ function m3(n) {
|
|
|
12565
12565
|
};
|
|
12566
12566
|
}
|
|
12567
12567
|
function v3(n, t, e) {
|
|
12568
|
-
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: A } = t, { floorplanData: w } = t, { lastPanoramaLongitude: E } = t, { cameraImageUrl: k } = t, { getRoomAreaText: L } = t, { getRoomDimensionText: D } = t, { getLabelElement: j } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable:
|
|
12568
|
+
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: A } = t, { floorplanData: w } = t, { lastPanoramaLongitude: E } = t, { cameraImageUrl: k } = t, { getRoomAreaText: L } = t, { getRoomDimensionText: D } = t, { getLabelElement: j } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable: V } = t, { highlightData: b } = t, { missingFloorConfig: C } = t, { store: I = void 0 } = t;
|
|
12569
12569
|
return n.$$set = (M) => {
|
|
12570
|
-
"duration" in M && e(0, i = M.duration), "visible" in M && e(1, s = M.visible), "northDesc" in M && e(2, o = M.northDesc), "panoIndex" in M && e(3, r = M.panoIndex), "floorIndex" in M && e(4, a = M.floorIndex), "cameraEnable" in M && e(5, l = M.cameraEnable), "hoverEnable" in M && e(6, c = M.hoverEnable), "highlightEnable" in M && e(7, h = M.highlightEnable), "compassEnable" in M && e(8, u = M.compassEnable), "roomLabelsEnable" in M && e(9, f = M.roomLabelsEnable), "roomAreaEnable" in M && e(10, m = M.roomAreaEnable), "roomNameEnable" in M && e(11, p = M.roomNameEnable), "roomNameOtherTypeEnable" in M && e(12, g = M.roomNameOtherTypeEnable), "roomDimensionEnable" in M && e(13, v = M.roomDimensionEnable), "ruleLabelsEnable" in M && e(14, A = M.ruleLabelsEnable), "floorplanData" in M && e(15, w = M.floorplanData), "lastPanoramaLongitude" in M && e(16, E = M.lastPanoramaLongitude), "cameraImageUrl" in M && e(17, k = M.cameraImageUrl), "getRoomAreaText" in M && e(18, L = M.getRoomAreaText), "getRoomDimensionText" in M && e(19, D = M.getRoomDimensionText), "getLabelElement" in M && e(20, j = M.getLabelElement), "getRuleDistanceText" in M && e(21, z = M.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in M && e(22,
|
|
12570
|
+
"duration" in M && e(0, i = M.duration), "visible" in M && e(1, s = M.visible), "northDesc" in M && e(2, o = M.northDesc), "panoIndex" in M && e(3, r = M.panoIndex), "floorIndex" in M && e(4, a = M.floorIndex), "cameraEnable" in M && e(5, l = M.cameraEnable), "hoverEnable" in M && e(6, c = M.hoverEnable), "highlightEnable" in M && e(7, h = M.highlightEnable), "compassEnable" in M && e(8, u = M.compassEnable), "roomLabelsEnable" in M && e(9, f = M.roomLabelsEnable), "roomAreaEnable" in M && e(10, m = M.roomAreaEnable), "roomNameEnable" in M && e(11, p = M.roomNameEnable), "roomNameOtherTypeEnable" in M && e(12, g = M.roomNameOtherTypeEnable), "roomDimensionEnable" in M && e(13, v = M.roomDimensionEnable), "ruleLabelsEnable" in M && e(14, A = M.ruleLabelsEnable), "floorplanData" in M && e(15, w = M.floorplanData), "lastPanoramaLongitude" in M && e(16, E = M.lastPanoramaLongitude), "cameraImageUrl" in M && e(17, k = M.cameraImageUrl), "getRoomAreaText" in M && e(18, L = M.getRoomAreaText), "getRoomDimensionText" in M && e(19, D = M.getRoomDimensionText), "getLabelElement" in M && e(20, j = M.getLabelElement), "getRuleDistanceText" in M && e(21, z = M.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in M && e(22, V = M.adaptiveRoomLabelVisibleEnable), "highlightData" in M && e(23, b = M.highlightData), "missingFloorConfig" in M && e(24, C = M.missingFloorConfig), "store" in M && e(25, I = M.store);
|
|
12571
12571
|
}, [
|
|
12572
12572
|
i,
|
|
12573
12573
|
s,
|
|
@@ -12591,7 +12591,7 @@ function v3(n, t, e) {
|
|
|
12591
12591
|
D,
|
|
12592
12592
|
j,
|
|
12593
12593
|
z,
|
|
12594
|
-
|
|
12594
|
+
V,
|
|
12595
12595
|
b,
|
|
12596
12596
|
C,
|
|
12597
12597
|
I
|
|
@@ -12749,7 +12749,7 @@ let us = class {
|
|
|
12749
12749
|
/**
|
|
12750
12750
|
* @realsee/dnalogel 版本号
|
|
12751
12751
|
*/
|
|
12752
|
-
d(this, "VERSION", "3.69.1-alpha.
|
|
12752
|
+
d(this, "VERSION", "3.69.1-alpha.4");
|
|
12753
12753
|
d(this, "NAME");
|
|
12754
12754
|
d(this, "five");
|
|
12755
12755
|
d(this, "workUtil");
|
|
@@ -12975,7 +12975,7 @@ let L3 = class extends kn {
|
|
|
12975
12975
|
immediately: !1,
|
|
12976
12976
|
isAutoShow: !1,
|
|
12977
12977
|
userAction: !0
|
|
12978
|
-
}, s =
|
|
12978
|
+
}, s = B(B({}, i), e), o = () => ie(this, null, function* () {
|
|
12979
12979
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
12980
12980
|
let a = !1, l;
|
|
12981
12981
|
this.showRejection = (u) => {
|
|
@@ -13005,7 +13005,7 @@ let L3 = class extends kn {
|
|
|
13005
13005
|
d(this, "_hide", (e) => {
|
|
13006
13006
|
var o;
|
|
13007
13007
|
(o = this.showRejection) == null || o.call(this, hi.BreakOffByHide), this.showPromise = void 0;
|
|
13008
|
-
const s =
|
|
13008
|
+
const s = B(B({}, {
|
|
13009
13009
|
userAction: !0,
|
|
13010
13010
|
isAutoHide: !1
|
|
13011
13011
|
}), e);
|
|
@@ -13106,12 +13106,12 @@ let L3 = class extends kn {
|
|
|
13106
13106
|
cameraImageUrl: os,
|
|
13107
13107
|
attachedTo: xs.BOUNDING_CENTER,
|
|
13108
13108
|
getLabelElement: void 0,
|
|
13109
|
-
missingFloorConfig:
|
|
13109
|
+
missingFloorConfig: B(B({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
13110
13110
|
i18n: (u) => u,
|
|
13111
13111
|
getRoomAreaText: (u) => (u / 1e6).toFixed(1) + "㎡",
|
|
13112
13112
|
getRoomDimensionText: (u, f) => (u / 1e3).toFixed(1) + "m × " + (f / 1e3).toFixed(1) + "m",
|
|
13113
13113
|
getRuleDistanceText: (u) => u.toString()
|
|
13114
|
-
}, o = i ? Lo(i, ["selector", "scale"]) : {}, r =
|
|
13114
|
+
}, o = i ? Lo(i, ["selector", "scale"]) : {}, r = B(B({}, s.missingFloorConfig), o.missingFloorConfig), a = ce(B(B({}, s), o), { missingFloorConfig: r });
|
|
13115
13115
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
|
|
13116
13116
|
}
|
|
13117
13117
|
load(e, i, s = !0) {
|
|
@@ -13163,8 +13163,8 @@ let L3 = class extends kn {
|
|
|
13163
13163
|
}
|
|
13164
13164
|
updateState(e, i) {
|
|
13165
13165
|
var a;
|
|
13166
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
13167
|
-
this.state = ce(
|
|
13166
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ce(B(B({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
13167
|
+
this.state = ce(B(B({}, this.state), e), { config: r }), !qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
13168
13168
|
}
|
|
13169
13169
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
13170
13170
|
*
|
|
@@ -13193,7 +13193,7 @@ let L3 = class extends kn {
|
|
|
13193
13193
|
render(e) {
|
|
13194
13194
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
13195
13195
|
return;
|
|
13196
|
-
const i = ce(
|
|
13196
|
+
const i = ce(B({}, this.state.config), {
|
|
13197
13197
|
visible: this.state.visible,
|
|
13198
13198
|
duration: e != null ? e : 0,
|
|
13199
13199
|
panoIndex: this.panoIndex,
|
|
@@ -15986,7 +15986,7 @@ let R3 = class extends kn {
|
|
|
15986
15986
|
immediately: !1,
|
|
15987
15987
|
isAutoShow: !1,
|
|
15988
15988
|
userAction: !0
|
|
15989
|
-
}, s =
|
|
15989
|
+
}, s = B(B({}, i), e), o = () => ie(this, null, function* () {
|
|
15990
15990
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
15991
15991
|
let a = !1, l;
|
|
15992
15992
|
this.showRejection = (u) => {
|
|
@@ -16016,7 +16016,7 @@ let R3 = class extends kn {
|
|
|
16016
16016
|
d(this, "_hide", (e) => {
|
|
16017
16017
|
var o;
|
|
16018
16018
|
(o = this.showRejection) == null || o.call(this, hi.BreakOffByHide), this.showPromise = void 0;
|
|
16019
|
-
const s =
|
|
16019
|
+
const s = B(B({}, {
|
|
16020
16020
|
userAction: !0,
|
|
16021
16021
|
isAutoHide: !1
|
|
16022
16022
|
}), e);
|
|
@@ -16112,12 +16112,12 @@ let R3 = class extends kn {
|
|
|
16112
16112
|
attachedTo: xs.BOUNDING_CENTER,
|
|
16113
16113
|
getLabelElement: void 0,
|
|
16114
16114
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
16115
|
-
missingFloorConfig:
|
|
16115
|
+
missingFloorConfig: B(B({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
16116
16116
|
i18n: (h) => h,
|
|
16117
16117
|
getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
|
|
16118
16118
|
getRoomDimensionText: (h, u) => (h / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
|
|
16119
16119
|
getRuleDistanceText: (h) => h.toString()
|
|
16120
|
-
}, o = i ? Lo(i, ["selector", "scale"]) : {}, r =
|
|
16120
|
+
}, o = i ? Lo(i, ["selector", "scale"]) : {}, r = B(B({}, s.missingFloorConfig), o.missingFloorConfig), a = ce(B(B({}, s), o), { missingFloorConfig: r });
|
|
16121
16121
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), yi(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
16122
16122
|
}
|
|
16123
16123
|
load(e, i, s = !0) {
|
|
@@ -16196,8 +16196,8 @@ let R3 = class extends kn {
|
|
|
16196
16196
|
}
|
|
16197
16197
|
updateState(e, i) {
|
|
16198
16198
|
var a;
|
|
16199
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
16200
|
-
this.state = ce(
|
|
16199
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ce(B(B({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
16200
|
+
this.state = ce(B(B({}, this.state), e), { config: r }), !qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
16201
16201
|
}
|
|
16202
16202
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
16203
16203
|
*
|
|
@@ -16226,7 +16226,7 @@ let R3 = class extends kn {
|
|
|
16226
16226
|
render(e) {
|
|
16227
16227
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
16228
16228
|
return;
|
|
16229
|
-
const i = ce(
|
|
16229
|
+
const i = ce(B({}, this.state.config), {
|
|
16230
16230
|
visible: this.state.visible,
|
|
16231
16231
|
duration: e != null ? e : 0,
|
|
16232
16232
|
panoIndex: this.panoIndex,
|
|
@@ -16362,13 +16362,13 @@ let _3 = class extends kn {
|
|
|
16362
16362
|
cameraImageUrl: os,
|
|
16363
16363
|
attachedTo: xs.BOUNDING_CENTER,
|
|
16364
16364
|
getLabelElement: void 0,
|
|
16365
|
-
missingFloorConfig:
|
|
16365
|
+
missingFloorConfig: B(B({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
16366
16366
|
i18n: (h) => h,
|
|
16367
16367
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
16368
16368
|
getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
|
|
16369
16369
|
getRoomDimensionText: (h, u) => (h / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
|
|
16370
16370
|
getRuleDistanceText: (h) => h.toString()
|
|
16371
|
-
}, o = i ? Lo(i, ["selector", "scale"]) : {}, r =
|
|
16371
|
+
}, o = i ? Lo(i, ["selector", "scale"]) : {}, r = B(B({}, s.missingFloorConfig), o.missingFloorConfig), a = ce(B(B({}, s), o), { missingFloorConfig: r });
|
|
16372
16372
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
16373
16373
|
}
|
|
16374
16374
|
load(e, i, s = !0) {
|
|
@@ -16471,8 +16471,8 @@ let _3 = class extends kn {
|
|
|
16471
16471
|
}
|
|
16472
16472
|
updateState(e, i) {
|
|
16473
16473
|
var a;
|
|
16474
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
16475
|
-
this.state = ce(
|
|
16474
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ce(B(B({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
16475
|
+
this.state = ce(B(B({}, this.state), e), { config: r }), !qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
16476
16476
|
}
|
|
16477
16477
|
addEventListener() {
|
|
16478
16478
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -16502,7 +16502,7 @@ let _3 = class extends kn {
|
|
|
16502
16502
|
render(e) {
|
|
16503
16503
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
16504
16504
|
return;
|
|
16505
|
-
const i = ce(
|
|
16505
|
+
const i = ce(B({}, this.state.config), {
|
|
16506
16506
|
visible: this.state.visible,
|
|
16507
16507
|
duration: e != null ? e : 0,
|
|
16508
16508
|
panoIndex: this.panoIndex,
|
|
@@ -16586,7 +16586,7 @@ function F3(n, t, e) {
|
|
|
16586
16586
|
const D = k.bounding, j = k.observers[L];
|
|
16587
16587
|
if (!j)
|
|
16588
16588
|
return "";
|
|
16589
|
-
const z = (D.max.x - D.min.x) * l,
|
|
16589
|
+
const z = (D.max.x - D.min.x) * l, V = (D.max.y - D.min.y) * l, b = Math.floor(j.positionInImage.x * z), C = Math.floor(j.positionInImage.y * V);
|
|
16590
16590
|
return `translate(${b}px, ${C}px)`;
|
|
16591
16591
|
}
|
|
16592
16592
|
function g(k) {
|
|
@@ -17241,10 +17241,10 @@ function t5(n, t, e) {
|
|
|
17241
17241
|
}, n.$$.update = () => {
|
|
17242
17242
|
if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
17243
17243
|
1800) {
|
|
17244
|
-
const D = Math.min(m, p), { max: j, min: z } = r.bounding,
|
|
17245
|
-
return
|
|
17244
|
+
const D = Math.min(m, p), { max: j, min: z } = r.bounding, V = j.x - z.x, b = j.y - z.y, C = function() {
|
|
17245
|
+
return V > b ? [D, D / V * b] : [D / b * V, D];
|
|
17246
17246
|
}();
|
|
17247
|
-
e(10, g = C[0]), e(13, v = C[1]), e(11, u = g /
|
|
17247
|
+
e(10, g = C[0]), e(13, v = C[1]), e(11, u = g / V);
|
|
17248
17248
|
}
|
|
17249
17249
|
}, [
|
|
17250
17250
|
i,
|
|
@@ -17323,7 +17323,7 @@ let n5 = class extends kn {
|
|
|
17323
17323
|
highlightEnable: !1,
|
|
17324
17324
|
cameraImageUrl: os,
|
|
17325
17325
|
missingFloorImageUrl: Kn(i == null ? void 0 : i.staticPrefix, Fo)
|
|
17326
|
-
}, o =
|
|
17326
|
+
}, o = B(B({}, s), i == null ? void 0 : i.configs);
|
|
17327
17327
|
this.state = { enabled: !0, visible: !0, config: o }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose);
|
|
17328
17328
|
}
|
|
17329
17329
|
load(e, i, s = !0) {
|
|
@@ -17407,8 +17407,8 @@ let n5 = class extends kn {
|
|
|
17407
17407
|
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
17408
17408
|
}
|
|
17409
17409
|
updateState(e, i) {
|
|
17410
|
-
const s = this.state, o = e.config ?
|
|
17411
|
-
this.state = ce(
|
|
17410
|
+
const s = this.state, o = e.config ? B(B({}, s.config), e.config) : s.config;
|
|
17411
|
+
this.state = ce(B(B({}, this.state), e), { config: o }), !qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
17412
17412
|
}
|
|
17413
17413
|
render() {
|
|
17414
17414
|
if (this.disposed || !this.state.enabled)
|
|
@@ -17419,7 +17419,7 @@ let n5 = class extends kn {
|
|
|
17419
17419
|
}
|
|
17420
17420
|
if (!this.data || !this.wrapper)
|
|
17421
17421
|
return;
|
|
17422
|
-
const e = ce(
|
|
17422
|
+
const e = ce(B({}, this.state.config), {
|
|
17423
17423
|
five: this.five,
|
|
17424
17424
|
floorplanData: this.data,
|
|
17425
17425
|
visible: this.state.visible,
|
|
@@ -17542,7 +17542,7 @@ function X0(n, t) {
|
|
|
17542
17542
|
n.traverse((e) => {
|
|
17543
17543
|
var i;
|
|
17544
17544
|
if (e.type === "Mesh") {
|
|
17545
|
-
const s = e, o =
|
|
17545
|
+
const s = e, o = B({ map: s.material.map || {} }, t);
|
|
17546
17546
|
s.material = new Er(o), s.renderOrder = 1, ((i = e.parent) == null ? void 0 : i.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
|
|
17547
17547
|
}
|
|
17548
17548
|
});
|
|
@@ -17906,34 +17906,34 @@ var gf = Y0.Zlib, J0 = {
|
|
|
17906
17906
|
l[0][0] = 1;
|
|
17907
17907
|
for (var c = o.slice(0), h = o.slice(0), u = 1; u <= e; ++u) {
|
|
17908
17908
|
c[u] = t - s[n + 1 - u], h[u] = s[n + u] - t;
|
|
17909
|
-
for (var f = 0,
|
|
17910
|
-
var m = h[
|
|
17911
|
-
l[u][
|
|
17912
|
-
var g = l[
|
|
17913
|
-
l[
|
|
17909
|
+
for (var f = 0, V = 0; V < u; ++V) {
|
|
17910
|
+
var m = h[V + 1], p = c[u - V];
|
|
17911
|
+
l[u][V] = m + p;
|
|
17912
|
+
var g = l[V][u - 1] / l[u][V];
|
|
17913
|
+
l[V][u] = f + m * g, f = p * g;
|
|
17914
17914
|
}
|
|
17915
17915
|
l[u][u] = f;
|
|
17916
17916
|
}
|
|
17917
17917
|
for (var u = 0; u <= e; ++u)
|
|
17918
17918
|
a[0][u] = l[u][e];
|
|
17919
|
-
for (var
|
|
17919
|
+
for (var V = 0; V <= e; ++V) {
|
|
17920
17920
|
for (var v = 0, A = 1, w = [], r = 0; r <= e; ++r)
|
|
17921
17921
|
w[r] = o.slice(0);
|
|
17922
17922
|
w[0][0] = 1;
|
|
17923
17923
|
for (var E = 1; E <= i; ++E) {
|
|
17924
|
-
var k = 0, L =
|
|
17925
|
-
|
|
17926
|
-
for (var j = L >= -1 ? 1 : -L, z =
|
|
17924
|
+
var k = 0, L = V - E, D = e - E;
|
|
17925
|
+
V >= E && (w[A][0] = w[v][0] / l[D + 1][L], k = w[A][0] * l[L][D]);
|
|
17926
|
+
for (var j = L >= -1 ? 1 : -L, z = V - 1 <= D ? E - 1 : e - V, u = j; u <= z; ++u)
|
|
17927
17927
|
w[A][u] = (w[v][u] - w[v][u - 1]) / l[D + 1][L + u], k += w[A][u] * l[L + u][D];
|
|
17928
|
-
|
|
17928
|
+
V <= D && (w[A][E] = -w[v][E - 1] / l[D + 1][V], k += w[A][E] * l[V][D]), a[E][V] = k;
|
|
17929
17929
|
var u = v;
|
|
17930
17930
|
v = A, A = u;
|
|
17931
17931
|
}
|
|
17932
17932
|
}
|
|
17933
|
-
for (var
|
|
17933
|
+
for (var V = e, E = 1; E <= i; ++E) {
|
|
17934
17934
|
for (var u = 0; u <= e; ++u)
|
|
17935
|
-
a[E][u] *=
|
|
17936
|
-
|
|
17935
|
+
a[E][u] *= V;
|
|
17936
|
+
V *= e - E;
|
|
17937
17937
|
}
|
|
17938
17938
|
return a;
|
|
17939
17939
|
},
|
|
@@ -19079,7 +19079,7 @@ var K0 = function() {
|
|
|
19079
19079
|
if (S >= 180) {
|
|
19080
19080
|
for (var T = S / 180, N = M / T, _ = I + N, q = b.times[C - 1], ee = b.times[C] - q, K = ee / T, se = q + K, te = [], le = []; se < b.times[C]; )
|
|
19081
19081
|
te.push(se), se += K, le.push(_), _ += N;
|
|
19082
|
-
b.times =
|
|
19082
|
+
b.times = V(b.times, C, te), b.values = V(b.values, C, le);
|
|
19083
19083
|
}
|
|
19084
19084
|
}
|
|
19085
19085
|
}
|
|
@@ -19531,7 +19531,7 @@ var K0 = function() {
|
|
|
19531
19531
|
b[T] = C[S];
|
|
19532
19532
|
return b;
|
|
19533
19533
|
}
|
|
19534
|
-
function
|
|
19534
|
+
function V(b, C, I) {
|
|
19535
19535
|
return b.slice(0, C).concat(I).concat(b.slice(C));
|
|
19536
19536
|
}
|
|
19537
19537
|
return i;
|
|
@@ -19579,9 +19579,9 @@ const zS = (n, t) => {
|
|
|
19579
19579
|
return;
|
|
19580
19580
|
const A = n.model.bounding, w = A.max.x - A.min.x, E = A.max.z - A.min.z, k = Math.max(w, E), {
|
|
19581
19581
|
max: { x: L, z: D },
|
|
19582
|
-
min: { x: j, y: z, z:
|
|
19582
|
+
min: { x: j, y: z, z: V }
|
|
19583
19583
|
} = A;
|
|
19584
|
-
s.yBase = z, o = { x: (L + j) / 2, y: z - 1.6, z: (D +
|
|
19584
|
+
s.yBase = z, o = { x: (L + j) / 2, y: z - 1.6, z: (D + V) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * k, s5(v, { position: o, rotation: r, scale: a });
|
|
19585
19585
|
}
|
|
19586
19586
|
return { load: c, disable: m, enable: f };
|
|
19587
19587
|
};
|
|
@@ -19607,8 +19607,8 @@ const c5 = ({ x: n, y: t, z: e }) => new Ae(n, t, e), OS = (n, t) => {
|
|
|
19607
19607
|
const z = (N = (T = (S = (M = j.children) == null ? void 0 : M[0]) == null ? void 0 : S.children) == null ? void 0 : T[3]) == null ? void 0 : N.clone();
|
|
19608
19608
|
if (!z)
|
|
19609
19609
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${z}`));
|
|
19610
|
-
const
|
|
19611
|
-
return z.material = new Er({ transparent: !0, map: l5(
|
|
19610
|
+
const V = (_ = t.name) != null ? _ : "入户门";
|
|
19611
|
+
return z.material = new Er({ transparent: !0, map: l5(V) }), z.renderOrder = 3, j.children[0].add(z), e.object = j, !0;
|
|
19612
19612
|
}), c = () => {
|
|
19613
19613
|
if (e.animation)
|
|
19614
19614
|
return;
|
|
@@ -19629,14 +19629,14 @@ const c5 = ({ x: n, y: t, z: e }) => new Ae(n, t, e), OS = (n, t) => {
|
|
|
19629
19629
|
return b = requestAnimationFrame(M), () => {
|
|
19630
19630
|
cancelAnimationFrame(b);
|
|
19631
19631
|
};
|
|
19632
|
-
},
|
|
19632
|
+
}, V = { play: () => {
|
|
19633
19633
|
L || (k.play(), L = D(), requestAnimationFrame(() => {
|
|
19634
19634
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
19635
19635
|
}));
|
|
19636
19636
|
}, stop: () => {
|
|
19637
19637
|
k.stop(), L == null || L(), L = void 0;
|
|
19638
19638
|
} };
|
|
19639
|
-
e.animation =
|
|
19639
|
+
e.animation = V;
|
|
19640
19640
|
}, h = (w) => {
|
|
19641
19641
|
var k;
|
|
19642
19642
|
if (!e.object)
|
|
@@ -19688,7 +19688,7 @@ const Uc = (n, t, e) => {
|
|
|
19688
19688
|
const t = {}, e = (l, c, ...h) => ie(void 0, [l, c, ...h], function* (o, r, a = { preload: !0 }) {
|
|
19689
19689
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), o.mode && o.mode !== n.currentMode && (yield n.changeMode(o.mode)), a.preload && o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (yield n.preloadPano(o.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0 ? !0 : yield new Promise((u, f) => {
|
|
19690
19690
|
const m = o.panoIndex !== void 0 ? o.panoIndex : n.panoIndex;
|
|
19691
|
-
m !== void 0 ? n.moveToPano(m,
|
|
19691
|
+
m !== void 0 ? n.moveToPano(m, B({
|
|
19692
19692
|
duration: r,
|
|
19693
19693
|
// 移动耗时
|
|
19694
19694
|
moveEndCallback: () => u(!0),
|
|
@@ -19930,7 +19930,7 @@ const m5 = `<style type="text/css">
|
|
|
19930
19930
|
const L = v[k], D = (E = w.observers[0]) == null ? void 0 : E.standingPosition;
|
|
19931
19931
|
if (!D)
|
|
19932
19932
|
return;
|
|
19933
|
-
const j = L.map(({ x: z, z:
|
|
19933
|
+
const j = L.map(({ x: z, z: V, observers: b }) => {
|
|
19934
19934
|
const C = b.length > 0 ? g.rooms[g.observers[b[0]]].name : "", I = A[C] ? A[C].floor : null;
|
|
19935
19935
|
let M = 1 / 0, S = {
|
|
19936
19936
|
index: 0,
|
|
@@ -19946,28 +19946,28 @@ const m5 = `<style type="text/css">
|
|
|
19946
19946
|
x: se.x,
|
|
19947
19947
|
y: se.y,
|
|
19948
19948
|
z: se.z
|
|
19949
|
-
}, le = v5({ x: z, z:
|
|
19949
|
+
}, le = v5({ x: z, z: V }, te);
|
|
19950
19950
|
I ? le < M && Math.abs(te.y - I) < 0.3 && (M = le, S = te) : le < M && (M = le, S = te);
|
|
19951
19951
|
});
|
|
19952
|
-
const T = new Ae(z, S.y,
|
|
19952
|
+
const T = new Ae(z, S.y, V);
|
|
19953
19953
|
Object.assign(T, { observers: b });
|
|
19954
|
-
const N = A[C] ? A[C].roof : null, _ = N ? new Ae(z, N,
|
|
19954
|
+
const N = A[C] ? A[C].roof : null, _ = N ? new Ae(z, N, V) : null;
|
|
19955
19955
|
return _ && Object.assign(_, { observers: b }), { origin: T, vertical: _ };
|
|
19956
19956
|
});
|
|
19957
19957
|
r[k] = {
|
|
19958
19958
|
origins: j.map((z) => z.origin),
|
|
19959
19959
|
rules: []
|
|
19960
19960
|
};
|
|
19961
|
-
for (const { origin: z, vertical:
|
|
19962
|
-
if (!
|
|
19961
|
+
for (const { origin: z, vertical: V } of j) {
|
|
19962
|
+
if (!V)
|
|
19963
19963
|
continue;
|
|
19964
|
-
const b = i(k, z.distanceTo(
|
|
19965
|
-
s.append(b), r[k].rules.push({ vertical: !0, rule: [z,
|
|
19964
|
+
const b = i(k, z.distanceTo(V));
|
|
19965
|
+
s.append(b), r[k].rules.push({ vertical: !0, rule: [z, V], $element: b });
|
|
19966
19966
|
}
|
|
19967
19967
|
for (let z = 0; z < j.length; z++) {
|
|
19968
|
-
let
|
|
19969
|
-
|
|
19970
|
-
const { origin: b } = j[z], { origin: C } = j[
|
|
19968
|
+
let V = z + 1;
|
|
19969
|
+
V >= j.length && (V = 0);
|
|
19970
|
+
const { origin: b } = j[z], { origin: C } = j[V], I = i(k, b.distanceTo(C));
|
|
19971
19971
|
s.append(I), r[k].rules.push({ vertical: !1, rule: [b, C], $element: I });
|
|
19972
19972
|
}
|
|
19973
19973
|
}
|
|
@@ -19976,7 +19976,7 @@ const m5 = `<style type="text/css">
|
|
|
19976
19976
|
const w = g || t.roomInfo, E = v || t.roomRules;
|
|
19977
19977
|
if (!w || !E)
|
|
19978
19978
|
throw new Error("标尺数据依赖不齐全!");
|
|
19979
|
-
return e.loaded = !1, e.options =
|
|
19979
|
+
return e.loaded = !1, e.options = B(B({}, e.options), A || {}), n.model.loaded ? a(w, E) : yield new Promise((k) => n.once("modelLoaded", () => k(a(w, E))));
|
|
19980
19980
|
});
|
|
19981
19981
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
19982
19982
|
const c = (g, v, A, w) => {
|
|
@@ -20004,8 +20004,8 @@ const m5 = `<style type="text/css">
|
|
|
20004
20004
|
}
|
|
20005
20005
|
return k.length === 0 ? !1 : k;
|
|
20006
20006
|
}, h = () => {
|
|
20007
|
-
var
|
|
20008
|
-
const g = (
|
|
20007
|
+
var V;
|
|
20008
|
+
const g = (V = n.getElement()) == null ? void 0 : V.parentElement;
|
|
20009
20009
|
if (!g || !e.loaded || Object.keys(r).length <= 0)
|
|
20010
20010
|
return;
|
|
20011
20011
|
const { panoIndex: v, camera: A, currentMode: w } = n;
|
|
@@ -20422,18 +20422,18 @@ function M5(n, t, e) {
|
|
|
20422
20422
|
}
|
|
20423
20423
|
return D.length === 0 ? !1 : D;
|
|
20424
20424
|
}, h = (E, k) => {
|
|
20425
|
-
const L = E.clone().project(i.camera), D = (L.x + 1) / 2 * a, j = (-L.y + 1) / 2 * l, z = k.clone().project(i.camera),
|
|
20425
|
+
const L = E.clone().project(i.camera), D = (L.x + 1) / 2 * a, j = (-L.y + 1) / 2 * l, z = k.clone().project(i.camera), V = (z.x + 1) / 2 * a, b = (-z.y + 1) / 2 * l, C = Math.sqrt(Math.pow(V - D, 2) + Math.pow(b - j, 2));
|
|
20426
20426
|
return {
|
|
20427
20427
|
startLeft: D,
|
|
20428
20428
|
startTop: j,
|
|
20429
|
-
endLeft:
|
|
20429
|
+
endLeft: V,
|
|
20430
20430
|
endTop: b,
|
|
20431
20431
|
distance: C
|
|
20432
20432
|
};
|
|
20433
20433
|
}, u = (E, k, L) => {
|
|
20434
|
-
const D = i.camera.position, j = i.camera.getWorldDirection(new Ae()), z = E.clone().sub(D).normalize().angleTo(j),
|
|
20434
|
+
const D = i.camera.position, j = i.camera.getWorldDirection(new Ae()), z = E.clone().sub(D).normalize().angleTo(j), V = k.clone().sub(D).normalize().angleTo(j), b = E.distanceTo(k), I = k.clone().sub(k.clone().sub(E).divide(new Ae(2, 2, 2))).distanceTo(D), { startLeft: M, startTop: S, endLeft: T, endTop: N, distance: _ } = h(E, k), ee = -((Math.PI / 2 - Math.atan2(T - M, S - N)) / Math.PI) * 180;
|
|
20435
20435
|
let K = !0;
|
|
20436
|
-
L || (K = !1), !qt(E, L) && !qt(k, L) && (K = !1), b < 0.3 && (K = !1), z > Math.PI / 2 && (K = !1),
|
|
20436
|
+
L || (K = !1), !qt(E, L) && !qt(k, L) && (K = !1), b < 0.3 && (K = !1), z > Math.PI / 2 && (K = !1), V > Math.PI / 2 && (K = !1), I / b > 8 && (K = !1);
|
|
20437
20437
|
let se = 50, te = _;
|
|
20438
20438
|
const le = c({ x: ~~M, y: ~~S }, { x: ~~T, y: ~~N });
|
|
20439
20439
|
if (le && le.length === 1 && (qt(E, L) ? (te = Math.sqrt(Math.pow(le[0].x - M, 2) + Math.pow(le[0].y - S, 2)), se = te / _ * 50) : qt(k, L) && (te = Math.sqrt(Math.pow(le[0].x - T, 2) + Math.pow(le[0].y - N, 2)), se = 100 - te / _ * 50)), le && le.length === 2) {
|
|
@@ -20458,12 +20458,12 @@ function M5(n, t, e) {
|
|
|
20458
20458
|
return e(0, r = []);
|
|
20459
20459
|
if (i.currentMode !== Vt.Mode.Panorama)
|
|
20460
20460
|
return e(0, r = []);
|
|
20461
|
-
const L = i.camera.position, D = i.camera.getWorldDirection(new Ae()), j = k.lines.map((C) => new Ae(C.start[0], -C.start[1], -C.start[2])), z = k.lines.map((C) => new Ae(C.end[0], -C.end[1], -C.end[2])), [
|
|
20461
|
+
const L = i.camera.position, D = i.camera.getWorldDirection(new Ae()), j = k.lines.map((C) => new Ae(C.start[0], -C.start[1], -C.start[2])), z = k.lines.map((C) => new Ae(C.end[0], -C.end[1], -C.end[2])), [V] = j.concat(z).sort((C, I) => {
|
|
20462
20462
|
const M = C.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0)), S = I.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0));
|
|
20463
20463
|
return M - S;
|
|
20464
20464
|
}), b = k.lines.map((C) => {
|
|
20465
20465
|
var te, le;
|
|
20466
|
-
const I = C.start, M = C.end, { startLeft: S, startTop: T, distance: N, deg: _, visible: q, labelOffset: ee, ruleLength: K } = u(new Ae(I[0], -I[1], -I[2]), new Ae(M[0], -M[1], -M[2]),
|
|
20466
|
+
const I = C.start, M = C.end, { startLeft: S, startTop: T, distance: N, deg: _, visible: q, labelOffset: ee, ruleLength: K } = u(new Ae(I[0], -I[1], -I[2]), new Ae(M[0], -M[1], -M[2]), V), se = [];
|
|
20467
20467
|
return C.children && ((te = C.children) == null ? void 0 : te.length) > 0 && ((le = C.children) == null || le.forEach((Se) => {
|
|
20468
20468
|
const ue = Se.start, Te = Se.end, { distance: fe } = h(new Ae(ue[0], -ue[1], -ue[2]), new Ae(Te[0], -Te[1], -Te[2]));
|
|
20469
20469
|
se.push({ width: fe, state: Se.state });
|
|
@@ -20512,7 +20512,7 @@ let x5 = class {
|
|
|
20512
20512
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
20513
20513
|
"style",
|
|
20514
20514
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
20515
|
-
), e && (e.data && this.load(e.data), this.state.options =
|
|
20515
|
+
), e && (e.data && this.load(e.data), this.state.options = B(B({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => ie(this, null, function* () {
|
|
20516
20516
|
var o, r;
|
|
20517
20517
|
(r = (o = this.five.getElement()) == null ? void 0 : o.parentNode) == null || r.append(this.container);
|
|
20518
20518
|
})), this.five.once("dispose", () => this.dispose());
|
|
@@ -20709,7 +20709,7 @@ class L5 extends kn {
|
|
|
20709
20709
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
20710
20710
|
visible: !0,
|
|
20711
20711
|
enabled: !0,
|
|
20712
|
-
config:
|
|
20712
|
+
config: B(B({}, this.state.config), i || {})
|
|
20713
20713
|
});
|
|
20714
20714
|
}
|
|
20715
20715
|
/**
|
|
@@ -20772,7 +20772,7 @@ class L5 extends kn {
|
|
|
20772
20772
|
this.state = {
|
|
20773
20773
|
visible: (o = e.visible) != null ? o : s.visible,
|
|
20774
20774
|
enabled: (r = e.enabled) != null ? r : s.enabled,
|
|
20775
|
-
config:
|
|
20775
|
+
config: B(B({}, s.config), e.config || {})
|
|
20776
20776
|
}, this.hooks.emit("stateChange", {
|
|
20777
20777
|
state: this.state,
|
|
20778
20778
|
prevState: s,
|
|
@@ -20782,7 +20782,7 @@ class L5 extends kn {
|
|
|
20782
20782
|
load(e, i, s = !0) {
|
|
20783
20783
|
return ie(this, null, function* () {
|
|
20784
20784
|
const o = yield this.formatData(e);
|
|
20785
|
-
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data =
|
|
20785
|
+
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = B({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
|
|
20786
20786
|
});
|
|
20787
20787
|
}
|
|
20788
20788
|
formatData(e) {
|
|
@@ -20958,7 +20958,7 @@ class s1 {
|
|
|
20958
20958
|
class X5 extends s1 {
|
|
20959
20959
|
constructor(e) {
|
|
20960
20960
|
var i;
|
|
20961
|
-
e.contentStyle = ce(
|
|
20961
|
+
e.contentStyle = ce(B({}, e.contentStyle), {
|
|
20962
20962
|
background: "#FFFFFF",
|
|
20963
20963
|
color: "#041066",
|
|
20964
20964
|
fontFamily: "Arial-BoldMT",
|
|
@@ -21068,8 +21068,8 @@ class X5 extends s1 {
|
|
|
21068
21068
|
}
|
|
21069
21069
|
const w = si(l, c).distanceTo(e.camera.position), E = e.camera.fov || 60, k = 2 * Math.tan(0.5 * E / 180 * Math.PI), L = Math.max(Math.min(1 - k * w / 40, 1), 0);
|
|
21070
21070
|
this.contentDom.style.setProperty("--distance-scale", L.toString());
|
|
21071
|
-
const D = (f.x + 1) / 2 * s, j = -(f.y - 1) / 2 * o,
|
|
21072
|
-
this.containerDom.style.transform = `translate(${D}px, ${j}px) rotate(${
|
|
21071
|
+
const D = (f.x + 1) / 2 * s, j = -(f.y - 1) / 2 * o, V = -(Math.atan((m.y - p.y) / (m.x - p.x)) * 180) / Math.PI, b = this.containerDom.parentElement && this.contentDom.clientWidth > g ? -20 : 0;
|
|
21072
|
+
this.containerDom.style.transform = `translate(${D}px, ${j}px) rotate(${V}deg) translateY(${b}px)`, this.show(), (I = this.params.userDistanceItem) == null || I.update({ line: this.line, polyline: this.line.getPolyline() });
|
|
21073
21073
|
const C = this.getCurrentContent();
|
|
21074
21074
|
this.contentDom.innerText = C;
|
|
21075
21075
|
}
|
|
@@ -21197,8 +21197,8 @@ let Sl = class {
|
|
|
21197
21197
|
});
|
|
21198
21198
|
});
|
|
21199
21199
|
var i, s, o;
|
|
21200
|
-
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = ce(
|
|
21201
|
-
helper:
|
|
21200
|
+
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = ce(B({}, t.pointSelectorConfig), {
|
|
21201
|
+
helper: B({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
21202
21202
|
}), this.container = t.container, this.isMobile = (o = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? o : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new Oo(new xi([0, 0, 0]), new xi([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new Oo(new xi([0, 0, 0]), new xi([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new Xt(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
21203
21203
|
const e = this.five.getElement();
|
|
21204
21204
|
e && (e.addEventListener("touchstart", ya), e.addEventListener("contextmenu", ya));
|
|
@@ -21754,9 +21754,9 @@ function mP(n) {
|
|
|
21754
21754
|
}
|
|
21755
21755
|
class vP extends s1 {
|
|
21756
21756
|
constructor(e) {
|
|
21757
|
-
e.containerStyle = ce(
|
|
21757
|
+
e.containerStyle = ce(B({}, e.containerStyle), {
|
|
21758
21758
|
zIndex: "1"
|
|
21759
|
-
}), e.contentStyle = ce(
|
|
21759
|
+
}), e.contentStyle = ce(B({}, e.contentStyle), {
|
|
21760
21760
|
background: "#6386FF",
|
|
21761
21761
|
borderRadius: "2px"
|
|
21762
21762
|
});
|
|
@@ -22201,9 +22201,9 @@ class Zn extends Sl {
|
|
|
22201
22201
|
const s = i.type === "area", o = Array.isArray(i) && ((r = i[0]) == null ? void 0 : r.type) === "line";
|
|
22202
22202
|
s && this.unHighlightArea(i), o && this.unHighlightLines(i);
|
|
22203
22203
|
}
|
|
22204
|
-
}).appendTo(this.container), this.pointSelector = new pl(this.five, ce(
|
|
22204
|
+
}).appendTo(this.container), this.pointSelector = new pl(this.five, ce(B({}, this.pointSelectorConfig), {
|
|
22205
22205
|
mode: this.editParams.pointSelectorMode,
|
|
22206
|
-
helper:
|
|
22206
|
+
helper: B({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
|
|
22207
22207
|
})), this.pointSelector.enable(), this.polyline = new jo({ model: this.model }), this.area = new qc(void 0, {
|
|
22208
22208
|
five: this.five,
|
|
22209
22209
|
model: this.model,
|
|
@@ -22677,7 +22677,7 @@ class xP {
|
|
|
22677
22677
|
const t = bi(this.five).intersectRaycaster(this.raycaster)[0];
|
|
22678
22678
|
return t || null;
|
|
22679
22679
|
});
|
|
22680
|
-
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = m1(
|
|
22680
|
+
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = m1(B({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = Mb, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new bo(
|
|
22681
22681
|
new mA(0.04, 0.08, 32),
|
|
22682
22682
|
new Er({ color: 1245179, opacity: 0, side: Tm, transparent: !0 })
|
|
22683
22683
|
), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
|
|
@@ -24376,7 +24376,7 @@ function hC(n, t, e) {
|
|
|
24376
24376
|
}), ri(() => {
|
|
24377
24377
|
i.hook.off("measureTypeChange", D), i.hook.off("modeChange", k), i.hook.off("allowAddPointStateChange", L), i.hook.off("readyComplete", A), i.hook.off("pointsChange", E), i.hook.off("notReadyComplete", w), i.hook.off("complete", k);
|
|
24378
24378
|
});
|
|
24379
|
-
const z = () => i.revoke(),
|
|
24379
|
+
const z = () => i.revoke(), V = () => {
|
|
24380
24380
|
h === "start" ? f() : h === "add" ? m() : (h === "end" || h === "complete") && v();
|
|
24381
24381
|
};
|
|
24382
24382
|
return n.$$set = (b) => {
|
|
@@ -24399,7 +24399,7 @@ function hC(n, t, e) {
|
|
|
24399
24399
|
v,
|
|
24400
24400
|
u,
|
|
24401
24401
|
z,
|
|
24402
|
-
|
|
24402
|
+
V
|
|
24403
24403
|
];
|
|
24404
24404
|
}
|
|
24405
24405
|
class uC extends Ee {
|
|
@@ -24795,7 +24795,7 @@ class PC extends us {
|
|
|
24795
24795
|
), this.allowMeasureType = Array.from(new Set((m = (f = i.editParams) == null ? void 0 : f.allowMeasureType) != null ? m : ["line"])), this.currentMeasureType = (p = this.allowMeasureType[0]) != null ? p : "line", this.group = new vn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
|
|
24796
24796
|
const s = (v = (g = i.editParams) == null ? void 0 : g.pointSelectorMode) != null ? v : Fm ? "fixed" : "cursor", o = (A = this.params.openParams) != null ? A : {};
|
|
24797
24797
|
if (this.params.useUIController !== !1) {
|
|
24798
|
-
const w =
|
|
24798
|
+
const w = B({
|
|
24799
24799
|
container: this.container,
|
|
24800
24800
|
openParams: o,
|
|
24801
24801
|
i18n: i.i18n,
|
|
@@ -24805,7 +24805,7 @@ class PC extends us {
|
|
|
24805
24805
|
this.useUIController = new dC(this, w);
|
|
24806
24806
|
}
|
|
24807
24807
|
if (this.params.useGuideController !== !1) {
|
|
24808
|
-
const w =
|
|
24808
|
+
const w = B({
|
|
24809
24809
|
container: this.container,
|
|
24810
24810
|
pointSelectorMode: s,
|
|
24811
24811
|
i18n: i.i18n
|
|
@@ -24832,7 +24832,7 @@ class PC extends us {
|
|
|
24832
24832
|
e.list && (i = {
|
|
24833
24833
|
polylines: e.list.map((o) => o.polyline).map((o) => {
|
|
24834
24834
|
var r;
|
|
24835
|
-
return ce(
|
|
24835
|
+
return ce(B({}, o), {
|
|
24836
24836
|
visibleFiveMode: (r = o.visibleFiveMode) != null ? r : ["Panorama"]
|
|
24837
24837
|
});
|
|
24838
24838
|
})
|
|
@@ -24943,7 +24943,7 @@ class PC extends us {
|
|
|
24943
24943
|
pointSelectorConfig: this.params.pointSelectorConfig,
|
|
24944
24944
|
magnifierParams: this.params.magnifierParams,
|
|
24945
24945
|
getMeasureType: () => this.currentMeasureType,
|
|
24946
|
-
mouseGroup: m1(
|
|
24946
|
+
mouseGroup: m1(B({}, e.crossHairParameter)),
|
|
24947
24947
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
24948
24948
|
};
|
|
24949
24949
|
}
|
|
@@ -24988,11 +24988,11 @@ class Cn extends fi {
|
|
|
24988
24988
|
size: (f = e == null ? void 0 : e.size) != null ? f : 8,
|
|
24989
24989
|
map: Zf || (Zf = new P.TextureLoader().load(CC)),
|
|
24990
24990
|
sizeAttenuation: !1
|
|
24991
|
-
}, a = new P.PointsMaterial(ce(
|
|
24991
|
+
}, a = new P.PointsMaterial(ce(B({}, r), {
|
|
24992
24992
|
color: (m = e == null ? void 0 : e.color) != null ? m : 16777215,
|
|
24993
24993
|
depthTest: !0,
|
|
24994
24994
|
opacity: (p = e == null ? void 0 : e.opacity) != null ? p : 1
|
|
24995
|
-
})), l = new P.PointsMaterial(ce(
|
|
24995
|
+
})), l = new P.PointsMaterial(ce(B({}, r), {
|
|
24996
24996
|
size: a.size,
|
|
24997
24997
|
color: a.color,
|
|
24998
24998
|
depthWrite: !1,
|
|
@@ -25056,10 +25056,10 @@ class _r extends wi {
|
|
|
25056
25056
|
d(this, "pointGroup", new fi());
|
|
25057
25057
|
d(this, "_paramsStyle");
|
|
25058
25058
|
d(this, "setStyle", (e) => {
|
|
25059
|
-
super.setStyle(e), this._paramsStyle =
|
|
25059
|
+
super.setStyle(e), this._paramsStyle = B(B({}, this._paramsStyle), e), this.pointMeshes.forEach(
|
|
25060
25060
|
(i) => {
|
|
25061
25061
|
var s, o, r;
|
|
25062
|
-
return i.setStyle(ce(
|
|
25062
|
+
return i.setStyle(ce(B({}, this._paramsStyle), { color: (r = (s = this._paramsStyle) == null ? void 0 : s.pointColor) != null ? r : (o = this._paramsStyle) == null ? void 0 : o.lineColor, tip: void 0 }));
|
|
25063
25063
|
}
|
|
25064
25064
|
), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
25065
25065
|
});
|
|
@@ -25092,7 +25092,7 @@ class _r extends wi {
|
|
|
25092
25092
|
const i = e.map(Ue).filter(Fe);
|
|
25093
25093
|
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
|
|
25094
25094
|
var r, a, l;
|
|
25095
|
-
const o = new Cn(ce(
|
|
25095
|
+
const o = new Cn(ce(B({}, this.style), {
|
|
25096
25096
|
color: (l = (r = this._paramsStyle) == null ? void 0 : r.pointColor) != null ? l : (a = this._paramsStyle) == null ? void 0 : a.lineColor,
|
|
25097
25097
|
tip: void 0
|
|
25098
25098
|
}));
|
|
@@ -25158,7 +25158,7 @@ class zl extends fi {
|
|
|
25158
25158
|
return this._geometry;
|
|
25159
25159
|
}
|
|
25160
25160
|
setStyle(e) {
|
|
25161
|
-
this.paramsStyle =
|
|
25161
|
+
this.paramsStyle = B(B({}, this.paramsStyle), e), Fe(e.color) && (this.meshFont.material.color.set(new P.Color(e.color).convertSRGBToLinear()), this.needsRender = !0), Fe(e.opacity) && (this.meshFont.material.opacity = e.opacity, this.meshBackground.material.opacity = 0.3 / 0.5 * this.meshFont.material.opacity, this.needsRender = !0), this.setOcclusionVisibility(e);
|
|
25162
25162
|
}
|
|
25163
25163
|
highlight(e) {
|
|
25164
25164
|
var i, s;
|
|
@@ -25211,7 +25211,7 @@ class Uo extends zl {
|
|
|
25211
25211
|
return this.points.length >= 3 ? new P.Vector3().crossVectors(this.points[1].clone().sub(this.points[0]), this.points[2].clone().sub(this.points[0])).normalize() : new P.Vector3(0, 0, 1);
|
|
25212
25212
|
}
|
|
25213
25213
|
get style() {
|
|
25214
|
-
return ce(
|
|
25214
|
+
return ce(B({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
|
|
25215
25215
|
}
|
|
25216
25216
|
get isBlank() {
|
|
25217
25217
|
return !!this.geometry.isBlank;
|
|
@@ -25235,7 +25235,7 @@ class Uo extends zl {
|
|
|
25235
25235
|
}
|
|
25236
25236
|
setStyle(e) {
|
|
25237
25237
|
var s;
|
|
25238
|
-
this._paramsStyle =
|
|
25238
|
+
this._paramsStyle = B(B({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
|
|
25239
25239
|
const i = (s = this._paramsStyle.occlusionVisibility) != null ? s : !0;
|
|
25240
25240
|
this.areaDom && (this.areaDom.intersectCheck = !i), this.updateAreaItems();
|
|
25241
25241
|
}
|
|
@@ -25824,12 +25824,12 @@ class HC extends Ct {
|
|
|
25824
25824
|
polygonStyle: this.polygonStyle
|
|
25825
25825
|
});
|
|
25826
25826
|
this.currentMeasureMesh = e, e.line.setStyle({ cssStyle: "pointer-events: none;" }), this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
|
|
25827
|
-
const i = new Cn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new _r(ce(
|
|
25827
|
+
const i = new Cn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new _r(ce(B({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), o = new Uo(this.polygonStyle), r = new wi(ce(B({}, this.lineStyle), {
|
|
25828
25828
|
lineOpacity: 0.5,
|
|
25829
25829
|
lineColor: 3407837,
|
|
25830
25830
|
dashed: !0,
|
|
25831
25831
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25832
|
-
})), a = new wi(ce(
|
|
25832
|
+
})), a = new wi(ce(B({}, this.lineStyle), {
|
|
25833
25833
|
lineOpacity: 0.5,
|
|
25834
25834
|
lineColor: 3407837,
|
|
25835
25835
|
dashed: !0,
|
|
@@ -25850,22 +25850,42 @@ class HC extends Ct {
|
|
|
25850
25850
|
return;
|
|
25851
25851
|
}
|
|
25852
25852
|
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(i), i.position.copy(E.point), c = null, h = !1), e.points.length >= 1)
|
|
25853
|
-
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setPoints([e.points.at(-1), E.point]), E.isAdsorbed)
|
|
25853
|
+
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setStyle(ce(B({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), s.setPoints([e.points.at(-1), E.point]), E.isAdsorbed)
|
|
25854
25854
|
r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), c = null, h = !1;
|
|
25855
25855
|
else {
|
|
25856
25856
|
const k = e.points.at(-1);
|
|
25857
25857
|
if (Math.abs(E.point.y - k.y) > 0.2) {
|
|
25858
25858
|
const D = new P.Vector3(E.point.x, k.y, E.point.z);
|
|
25859
|
-
r.
|
|
25859
|
+
r.setStyle(ce(B({}, this.lineStyle), {
|
|
25860
|
+
lineOpacity: 0.5,
|
|
25861
|
+
lineColor: 3407837,
|
|
25862
|
+
dashed: !0,
|
|
25863
|
+
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25864
|
+
})), a.setStyle(ce(B({}, this.lineStyle), {
|
|
25865
|
+
lineOpacity: 0.5,
|
|
25866
|
+
lineColor: 3407837,
|
|
25867
|
+
dashed: !0,
|
|
25868
|
+
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25869
|
+
})), r.setPoints([k, D]), a.setPoints([D, E.point]), l.position.copy(D), c = D.clone(), h = !0;
|
|
25860
25870
|
} else {
|
|
25861
25871
|
let D = new P.Vector3();
|
|
25862
|
-
Math.abs(E.point.x - k.x) < Math.abs(E.point.z - k.z) ? D = new P.Vector3(E.point.x, k.y, k.z) : D = new P.Vector3(k.x, k.y, E.point.z), r.
|
|
25872
|
+
Math.abs(E.point.x - k.x) < Math.abs(E.point.z - k.z) ? D = new P.Vector3(E.point.x, k.y, k.z) : D = new P.Vector3(k.x, k.y, E.point.z), r.setStyle(ce(B({}, this.lineStyle), {
|
|
25873
|
+
lineOpacity: 0.5,
|
|
25874
|
+
lineColor: 3407837,
|
|
25875
|
+
dashed: !0,
|
|
25876
|
+
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25877
|
+
})), a.setStyle(ce(B({}, this.lineStyle), {
|
|
25878
|
+
lineOpacity: 0.5,
|
|
25879
|
+
lineColor: 3407837,
|
|
25880
|
+
dashed: !0,
|
|
25881
|
+
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25882
|
+
})), r.setPoints([k, D]), a.setPoints([D, E.point]), l.position.copy(D), c = D.clone(), h = !0;
|
|
25863
25883
|
}
|
|
25864
25884
|
this.group.addIfNotExists(r, a, l);
|
|
25865
25885
|
}
|
|
25866
25886
|
if (e.points.length >= 2) {
|
|
25867
25887
|
const k = [...e.points, E.point];
|
|
25868
|
-
C1(k) ? (o.setPoints(k), this.group.addIfNotExists(o)) : o.removeFromParent();
|
|
25888
|
+
C1(k) ? (o.setStyle(B({}, this.polygonStyle)), o.setPoints(k), this.group.addIfNotExists(o)) : o.removeFromParent();
|
|
25869
25889
|
}
|
|
25870
25890
|
}, v = (E) => {
|
|
25871
25891
|
if (!E)
|
|
@@ -25919,12 +25939,12 @@ class HC extends Ct {
|
|
|
25919
25939
|
d(this, "setLengthEnable", (e) => {
|
|
25920
25940
|
this.lineStyle.lengthEnable = e, this.polygonStyle.lengthEnable = e, this.group.children.forEach((i) => {
|
|
25921
25941
|
i.changeConfig({
|
|
25922
|
-
lineStyle:
|
|
25923
|
-
polygonStyle:
|
|
25942
|
+
lineStyle: B({}, this.lineStyle),
|
|
25943
|
+
polygonStyle: B({}, this.polygonStyle)
|
|
25924
25944
|
}), this.addMeshEventListeners(i);
|
|
25925
25945
|
}), this.currentMeasureMesh && this.currentMeasureMesh.changeConfig({
|
|
25926
|
-
lineStyle:
|
|
25927
|
-
polygonStyle:
|
|
25946
|
+
lineStyle: B({}, this.lineStyle),
|
|
25947
|
+
polygonStyle: B({}, this.polygonStyle)
|
|
25928
25948
|
}), this.five.needsRender = !0;
|
|
25929
25949
|
});
|
|
25930
25950
|
/**
|
|
@@ -25935,16 +25955,16 @@ class HC extends Ct {
|
|
|
25935
25955
|
if (this._config && (this._config.unit = e), this.lineStyle.lengthUnit = e, this.polygonStyle.lengthUnit = e, this.group.children.forEach((i) => {
|
|
25936
25956
|
try {
|
|
25937
25957
|
i.changeConfig({
|
|
25938
|
-
lineStyle:
|
|
25939
|
-
polygonStyle:
|
|
25958
|
+
lineStyle: B({}, this.lineStyle),
|
|
25959
|
+
polygonStyle: B({}, this.polygonStyle)
|
|
25940
25960
|
}), this.addMeshEventListeners(i);
|
|
25941
25961
|
} catch (s) {
|
|
25942
25962
|
}
|
|
25943
25963
|
}), this.currentMeasureMesh)
|
|
25944
25964
|
try {
|
|
25945
25965
|
this.currentMeasureMesh.changeConfig({
|
|
25946
|
-
lineStyle:
|
|
25947
|
-
polygonStyle:
|
|
25966
|
+
lineStyle: B({}, this.lineStyle),
|
|
25967
|
+
polygonStyle: B({}, this.polygonStyle)
|
|
25948
25968
|
});
|
|
25949
25969
|
} catch (i) {
|
|
25950
25970
|
}
|
|
@@ -25958,16 +25978,16 @@ class HC extends Ct {
|
|
|
25958
25978
|
if (this._config && (this._config.precision = e), this.lineStyle.precision = e, this.group.children.forEach((i) => {
|
|
25959
25979
|
try {
|
|
25960
25980
|
i.changeConfig({
|
|
25961
|
-
lineStyle:
|
|
25962
|
-
polygonStyle:
|
|
25981
|
+
lineStyle: B({}, this.lineStyle),
|
|
25982
|
+
polygonStyle: B({}, this.polygonStyle)
|
|
25963
25983
|
}), this.addMeshEventListeners(i);
|
|
25964
25984
|
} catch (s) {
|
|
25965
25985
|
}
|
|
25966
25986
|
}), this.currentMeasureMesh)
|
|
25967
25987
|
try {
|
|
25968
25988
|
this.currentMeasureMesh.changeConfig({
|
|
25969
|
-
lineStyle:
|
|
25970
|
-
polygonStyle:
|
|
25989
|
+
lineStyle: B({}, this.lineStyle),
|
|
25990
|
+
polygonStyle: B({}, this.polygonStyle)
|
|
25971
25991
|
});
|
|
25972
25992
|
} catch (i) {
|
|
25973
25993
|
}
|
|
@@ -26504,7 +26524,7 @@ class HC extends Ct {
|
|
|
26504
26524
|
});
|
|
26505
26525
|
this.five = e;
|
|
26506
26526
|
const s = { unit: "m", lengthEnable: !0, precision: 2 };
|
|
26507
|
-
this.config = i ?
|
|
26527
|
+
this.config = i ? B(B({}, s), i) : s, this.group = new fi(), this.group.name = "MeasureGroup", this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), ct("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
26508
26528
|
}
|
|
26509
26529
|
get pointSelector() {
|
|
26510
26530
|
return this._pointSelector ? this._pointSelector : (this._pointSelector = new pl(this.five, { mode: "cursor", helper: { pointHelper: "highlight" }, skipPanorama: !0 }), this._pointSelector);
|
|
@@ -26750,20 +26770,20 @@ function XC(n, t, e) {
|
|
|
26750
26770
|
);
|
|
26751
26771
|
const k = (j) => {
|
|
26752
26772
|
const z = Object.keys(f);
|
|
26753
|
-
let
|
|
26754
|
-
for (;
|
|
26755
|
-
const b =
|
|
26773
|
+
let V = j.target;
|
|
26774
|
+
for (; V; ) {
|
|
26775
|
+
const b = V.getAttribute("class");
|
|
26756
26776
|
if (!b) {
|
|
26757
|
-
|
|
26777
|
+
V = V.parentNode;
|
|
26758
26778
|
continue;
|
|
26759
26779
|
}
|
|
26760
26780
|
if (b.includes("PanoSpatialTagPlugin__tag-content")) {
|
|
26761
|
-
|
|
26781
|
+
V = null;
|
|
26762
26782
|
break;
|
|
26763
26783
|
}
|
|
26764
26784
|
z.forEach((C) => {
|
|
26765
26785
|
b.includes(C) && f[C](i);
|
|
26766
|
-
}),
|
|
26786
|
+
}), V = V.parentNode;
|
|
26767
26787
|
}
|
|
26768
26788
|
};
|
|
26769
26789
|
Lt(() => {
|
|
@@ -26772,7 +26792,7 @@ function XC(n, t, e) {
|
|
|
26772
26792
|
const L = D1.subscribe((j) => {
|
|
26773
26793
|
if (j === null)
|
|
26774
26794
|
return;
|
|
26775
|
-
const [z,
|
|
26795
|
+
const [z, V] = j.split("-PanoSpatialTagPlugin-");
|
|
26776
26796
|
i === z && (m.emit("clickOrigin", { id: i, show: w }), E || (e(11, w = h), e(13, h = !h), E = setTimeout(
|
|
26777
26797
|
() => {
|
|
26778
26798
|
E = void 0;
|
|
@@ -27159,7 +27179,7 @@ const hc = 1e-3, rp = 0.01, ap = _h, QS = (n, t) => {
|
|
|
27159
27179
|
weight: ($ = he.weight) != null ? $ : -1
|
|
27160
27180
|
};
|
|
27161
27181
|
}), fe.render && (g.render = fe.render), fe.template && (g.template = fe.template), fe.events && (g.events = fe.events), fe.enabled === !1 && (g.enabled = fe.enabled), fe.folded === !0 && (g.folded = fe.folded);
|
|
27162
|
-
},
|
|
27182
|
+
}, V = (fe) => {
|
|
27163
27183
|
g.intersectObjects = fe, D();
|
|
27164
27184
|
}, b = () => {
|
|
27165
27185
|
g.enabled = !0, D();
|
|
@@ -27194,7 +27214,7 @@ const hc = 1e-3, rp = 0.01, ap = _h, QS = (n, t) => {
|
|
|
27194
27214
|
};
|
|
27195
27215
|
return window.addEventListener("resize", N, !1), (Te = n == null ? void 0 : n.model) != null && Te.loaded ? _() : n.once("modelLoaded", _), n.on("dispose", q), {
|
|
27196
27216
|
load: z,
|
|
27197
|
-
setIntersectObjects:
|
|
27217
|
+
setIntersectObjects: V,
|
|
27198
27218
|
unfoldAll: I,
|
|
27199
27219
|
foldAll: M,
|
|
27200
27220
|
unfold: S,
|
|
@@ -27493,10 +27513,10 @@ function l4(n, t, e) {
|
|
|
27493
27513
|
const T = S.map((_) => {
|
|
27494
27514
|
const q = A(M, _), ee = _.name.length * a4, K = k(_.modelPosition[1], c), te = (r ? v(M, _) : !0) && !E([q[0], q[1] + K], ee);
|
|
27495
27515
|
if (!te)
|
|
27496
|
-
return ce(
|
|
27516
|
+
return ce(B({}, _), { visible: te });
|
|
27497
27517
|
p.push(q);
|
|
27498
27518
|
const le = w(q);
|
|
27499
|
-
return ce(
|
|
27519
|
+
return ce(B({}, _), {
|
|
27500
27520
|
visible: te,
|
|
27501
27521
|
transform: le,
|
|
27502
27522
|
strokeLength: K
|
|
@@ -27507,7 +27527,7 @@ function l4(n, t, e) {
|
|
|
27507
27527
|
})).sort((_, q) => _.distance - q.distance);
|
|
27508
27528
|
return T.map((_) => {
|
|
27509
27529
|
const q = N.findIndex((ee) => ee.itemLabelItem.id === _.id);
|
|
27510
|
-
return q !== void 0 ? ce(
|
|
27530
|
+
return q !== void 0 ? ce(B({}, _), { zIndex: q * 10 }) : _;
|
|
27511
27531
|
});
|
|
27512
27532
|
}, D = () => {
|
|
27513
27533
|
p = [], e(1, u = L(o, u));
|
|
@@ -27519,14 +27539,14 @@ function l4(n, t, e) {
|
|
|
27519
27539
|
e(4, g = !1), z();
|
|
27520
27540
|
};
|
|
27521
27541
|
Lt(() => {
|
|
27522
|
-
e(1, u = a), h = a, D(),
|
|
27542
|
+
e(1, u = a), h = a, D(), V(), o.on("cameraUpdate", j);
|
|
27523
27543
|
});
|
|
27524
27544
|
const z = T1(
|
|
27525
27545
|
() => {
|
|
27526
27546
|
e(4, g = !0), D();
|
|
27527
27547
|
},
|
|
27528
27548
|
300
|
|
27529
|
-
),
|
|
27549
|
+
), V = () => {
|
|
27530
27550
|
window.addEventListener("resize", C, !1);
|
|
27531
27551
|
}, b = () => {
|
|
27532
27552
|
h !== a && (e(1, u = a), h = a, D());
|
|
@@ -27574,7 +27594,7 @@ let c4 = class extends Ee {
|
|
|
27574
27594
|
}
|
|
27575
27595
|
};
|
|
27576
27596
|
function h4(n) {
|
|
27577
|
-
return n.model_item_labels.map((t) =>
|
|
27597
|
+
return n.model_item_labels.map((t) => B({
|
|
27578
27598
|
modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
|
|
27579
27599
|
}, t));
|
|
27580
27600
|
}
|
|
@@ -27740,8 +27760,8 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
27740
27760
|
const z = new P.MeshBasicMaterial({
|
|
27741
27761
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
27742
27762
|
side: P.DoubleSide
|
|
27743
|
-
}),
|
|
27744
|
-
|
|
27763
|
+
}), V = new P.Mesh(E, z);
|
|
27764
|
+
V.renderOrder = 1, V.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
|
|
27745
27765
|
const b = [A[1], A[2], A[3], A[0]], C = i.create3DDomContainer(b);
|
|
27746
27766
|
if (C != null && C.container) {
|
|
27747
27767
|
const I = document.createElement("div");
|
|
@@ -27749,9 +27769,9 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
27749
27769
|
const M = document.createElement("img");
|
|
27750
27770
|
M.src = pu, M.style.width = "200px", M.style.pointerEvents = "auto", M.onclick = () => {
|
|
27751
27771
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
27752
|
-
}, I.appendChild(M), s.set(
|
|
27772
|
+
}, I.appendChild(M), s.set(V, C);
|
|
27753
27773
|
}
|
|
27754
|
-
return
|
|
27774
|
+
return V;
|
|
27755
27775
|
}), h = (A) => {
|
|
27756
27776
|
const w = new P.TextureLoader().load(A);
|
|
27757
27777
|
return w.minFilter = P.LinearFilter, w.magFilter = P.LinearFilter, w.format = P.RGBFormat, w;
|
|
@@ -27772,7 +27792,7 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
27772
27792
|
});
|
|
27773
27793
|
}, f = (A, w) => ie(void 0, null, function* () {
|
|
27774
27794
|
const { video_src: E, video_poster_src: k, points: L } = A;
|
|
27775
|
-
e.videoSource = E, e.rectPoints = u4(L).map((D) => D.map(({ x: j, y: z, z:
|
|
27795
|
+
e.videoSource = E, e.rectPoints = u4(L).map((D) => D.map(({ x: j, y: z, z: V }) => new P.Vector3(j, z, V))), e.imageTexture = h(k), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
27776
27796
|
}), m = (A) => {
|
|
27777
27797
|
if (!e.enabled)
|
|
27778
27798
|
return;
|
|
@@ -27786,14 +27806,14 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
27786
27806
|
return;
|
|
27787
27807
|
const A = n.camera.position;
|
|
27788
27808
|
if (s.forEach((w, E) => {
|
|
27789
|
-
const k = w.css3DObject.position.clone(), L = k.clone().sub(A).normalize(), D = new P.Raycaster(A, L), j = n.model.intersectRaycaster(D)[0], z = k.distanceTo(A),
|
|
27790
|
-
j && j.distance +
|
|
27809
|
+
const k = w.css3DObject.position.clone(), L = k.clone().sub(A).normalize(), D = new P.Raycaster(A, L), j = n.model.intersectRaycaster(D)[0], z = k.distanceTo(A), V = 0.01;
|
|
27810
|
+
j && j.distance + V < z ? w.hide() : w.show();
|
|
27791
27811
|
}), !r()) {
|
|
27792
27812
|
const w = e.rectPoints.find((E) => {
|
|
27793
27813
|
const k = E[0].clone().add(E[1]).add(E[2]).add(E[3]).divideScalar(4);
|
|
27794
27814
|
return E.map((L) => L.clone().add(k).divideScalar(2)).filter((L) => {
|
|
27795
|
-
const D = L.distanceTo(A), j = new P.Raycaster(A, L.clone().sub(A).normalize()), z = n.model.intersectRaycaster(j)[0],
|
|
27796
|
-
return !(z && z.distance +
|
|
27815
|
+
const D = L.distanceTo(A), j = new P.Raycaster(A, L.clone().sub(A).normalize()), z = n.model.intersectRaycaster(j)[0], V = 0.01;
|
|
27816
|
+
return !(z && z.distance + V < D);
|
|
27797
27817
|
}).length >= 2;
|
|
27798
27818
|
});
|
|
27799
27819
|
(!w || w.length === 0) && o(!0);
|
|
@@ -28036,7 +28056,7 @@ const { Raycaster: y4, Vector3: KS } = P, dp = (n, t, e, i) => {
|
|
|
28036
28056
|
}
|
|
28037
28057
|
}, P4 = (n) => `translate(${n[0]}px, ${n[1]}px)`;
|
|
28038
28058
|
function fp(n) {
|
|
28039
|
-
return n.map((t) =>
|
|
28059
|
+
return n.map((t) => B({
|
|
28040
28060
|
observerIndex: void 0,
|
|
28041
28061
|
visible: !1,
|
|
28042
28062
|
isFold: !1
|
|
@@ -28215,15 +28235,15 @@ function M4(n, t, e) {
|
|
|
28215
28235
|
}, k = (S, T) => {
|
|
28216
28236
|
const N = T.map((q) => {
|
|
28217
28237
|
if (S.state.panoIndex !== q.panoIndex)
|
|
28218
|
-
return ce(
|
|
28238
|
+
return ce(B({}, q), { visible: !1 });
|
|
28219
28239
|
const ee = E(S, q);
|
|
28220
28240
|
q.name.length * E4;
|
|
28221
28241
|
const K = w4(q.modelPosition[1], l), se = S.currentMode === Vt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, te = o ? A(S, q) : !1, le = se && !te;
|
|
28222
28242
|
if (!le)
|
|
28223
|
-
return ce(
|
|
28243
|
+
return ce(B({}, q), { visible: le });
|
|
28224
28244
|
g.push(ee);
|
|
28225
28245
|
const Se = P4(ee);
|
|
28226
|
-
return ce(
|
|
28246
|
+
return ce(B({}, q), {
|
|
28227
28247
|
visible: le,
|
|
28228
28248
|
transform: Se,
|
|
28229
28249
|
strokeLength: K
|
|
@@ -28234,7 +28254,7 @@ function M4(n, t, e) {
|
|
|
28234
28254
|
})).sort((q, ee) => q.distance - ee.distance);
|
|
28235
28255
|
return N.map((q) => {
|
|
28236
28256
|
const ee = _.findIndex((K) => K.itemLabelItem.id === q.id);
|
|
28237
|
-
return ee !== void 0 ? ce(
|
|
28257
|
+
return ee !== void 0 ? ce(B({}, q), { zIndex: ee * 10 }) : q;
|
|
28238
28258
|
});
|
|
28239
28259
|
}, L = () => {
|
|
28240
28260
|
g = [], e(1, u = k(s, u));
|
|
@@ -28247,7 +28267,7 @@ function M4(n, t, e) {
|
|
|
28247
28267
|
300
|
|
28248
28268
|
), z = () => {
|
|
28249
28269
|
s.once("renderFrame", L);
|
|
28250
|
-
},
|
|
28270
|
+
}, V = () => {
|
|
28251
28271
|
window.addEventListener("resize", z, !1);
|
|
28252
28272
|
}, b = () => {
|
|
28253
28273
|
h !== r && (e(1, u = fp(r)), h = r, L());
|
|
@@ -28276,14 +28296,14 @@ function M4(n, t, e) {
|
|
|
28276
28296
|
longitude: Math.PI + Math.atan2(ee.x, ee.z),
|
|
28277
28297
|
latitude: Math.acos(ee.y / ee.length()) - Math.PI / 2
|
|
28278
28298
|
};
|
|
28279
|
-
s.setState(ce(
|
|
28299
|
+
s.setState(ce(B({}, K), {
|
|
28280
28300
|
mode: Vt.Mode.Panorama,
|
|
28281
28301
|
panoIndex: S.observerIndex
|
|
28282
28302
|
})), s.once("initAnimationEnded", () => {
|
|
28283
|
-
e(1, u = u.map((se) => ce(
|
|
28303
|
+
e(1, u = u.map((se) => ce(B({}, se), {
|
|
28284
28304
|
isFold: se.id !== S.id
|
|
28285
28305
|
}))), s.once("cameraUpdate", () => {
|
|
28286
|
-
e(1, u = u.map((se) => ce(
|
|
28306
|
+
e(1, u = u.map((se) => ce(B({}, se), { isFold: !1 })));
|
|
28287
28307
|
});
|
|
28288
28308
|
});
|
|
28289
28309
|
}
|
|
@@ -28291,7 +28311,7 @@ function M4(n, t, e) {
|
|
|
28291
28311
|
D0(() => {
|
|
28292
28312
|
b();
|
|
28293
28313
|
}), Lt(() => {
|
|
28294
|
-
e(1, u = fp(r)), h = r, L(),
|
|
28314
|
+
e(1, u = fp(r)), h = r, L(), V(), s.on("cameraUpdate", D);
|
|
28295
28315
|
}), ri(() => {
|
|
28296
28316
|
s.off("cameraUpdate", D), window.removeEventListener("resize", z, !1);
|
|
28297
28317
|
});
|
|
@@ -28338,7 +28358,7 @@ class k4 extends Ee {
|
|
|
28338
28358
|
}
|
|
28339
28359
|
}
|
|
28340
28360
|
function x4(n) {
|
|
28341
|
-
return n.item_labels.map((t) => ce(
|
|
28361
|
+
return n.item_labels.map((t) => ce(B({}, t), {
|
|
28342
28362
|
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
28343
28363
|
observerIndex: void 0
|
|
28344
28364
|
}));
|
|
@@ -28605,18 +28625,18 @@ class V4 extends us {
|
|
|
28605
28625
|
L.left = N, L.top = _, L.inSight = q && S < Math.PI / 2, L.cameraToward = j4(this.five), q ? l.push({ disFromCameraToLabel: C, left: N, top: _, index: D }) : L.transform = "translate(-50%, -50%)";
|
|
28606
28626
|
} else
|
|
28607
28627
|
L.inSight = !1;
|
|
28608
|
-
const
|
|
28628
|
+
const V = L, { svelteApp: j } = V, z = Nn(V, ["svelteApp"]);
|
|
28609
28629
|
(b = L.svelteApp) == null || b.$set({ props: z });
|
|
28610
28630
|
}), l.length > 1) {
|
|
28611
28631
|
let L = 0;
|
|
28612
28632
|
l.sort((D, j) => j.disFromCameraToLabel - D.disFromCameraToLabel);
|
|
28613
28633
|
for (let D = 1; D < l.length; D++) {
|
|
28614
|
-
const { index: j, left: z, top:
|
|
28634
|
+
const { index: j, left: z, top: V } = l[D - 1], { index: b, left: C, top: I } = l[D], M = this.container.children[j], S = this.container.children[b];
|
|
28615
28635
|
if (!M || !S)
|
|
28616
28636
|
return;
|
|
28617
28637
|
const T = {
|
|
28618
28638
|
left: o * z / 100,
|
|
28619
|
-
top: r *
|
|
28639
|
+
top: r * V / 100,
|
|
28620
28640
|
width: (u = (h = (c = M.children) == null ? void 0 : c[0]) == null ? void 0 : h.clientWidth) != null ? u : 0,
|
|
28621
28641
|
height: (p = (m = (f = M.children) == null ? void 0 : f[0]) == null ? void 0 : m.clientHeight) != null ? p : 0
|
|
28622
28642
|
}, N = {
|
|
@@ -28678,7 +28698,7 @@ class V4 extends us {
|
|
|
28678
28698
|
position: u,
|
|
28679
28699
|
toward: _4(r.rad)
|
|
28680
28700
|
});
|
|
28681
|
-
}), this.labelItems = this.doorLabels.map((r) => ce(
|
|
28701
|
+
}), this.labelItems = this.doorLabels.map((r) => ce(B({}, r), {
|
|
28682
28702
|
left: 0,
|
|
28683
28703
|
top: 0,
|
|
28684
28704
|
visible: !1,
|
|
@@ -28693,7 +28713,7 @@ class V4 extends us {
|
|
|
28693
28713
|
}
|
|
28694
28714
|
setState(e, i) {
|
|
28695
28715
|
const s = this.state;
|
|
28696
|
-
this.state =
|
|
28716
|
+
this.state = B(B({}, s), e);
|
|
28697
28717
|
const o = s.enabled && s.visible, r = this.state.enabled && this.state.visible;
|
|
28698
28718
|
o !== r && this.applyState();
|
|
28699
28719
|
}
|
|
@@ -28825,8 +28845,8 @@ function o8(n) {
|
|
|
28825
28845
|
if (s.length === 0)
|
|
28826
28846
|
return { geometry: new P.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
|
|
28827
28847
|
const o = new P.CurvePath();
|
|
28828
|
-
s.forEach((
|
|
28829
|
-
const b = r8(
|
|
28848
|
+
s.forEach((V) => {
|
|
28849
|
+
const b = r8(V);
|
|
28830
28850
|
b && o.add(b);
|
|
28831
28851
|
});
|
|
28832
28852
|
const r = Math.ceil(o.getLength() * 100);
|
|
@@ -28834,30 +28854,30 @@ function o8(n) {
|
|
|
28834
28854
|
const a = o.getPoints(r), l = a.length;
|
|
28835
28855
|
if (l <= 2)
|
|
28836
28856
|
return { geometry: new P.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
|
|
28837
|
-
const c = $4(a.map((
|
|
28857
|
+
const c = $4(a.map((V) => [V.x, V.z])), u = (l - 1) * t8 * i8, f = 2 * l, m = f * n8, p = f * s8, g = new Uint32Array(u), v = new Float32Array(m), A = new Float32Array(p);
|
|
28838
28858
|
let w = 0, E = 0;
|
|
28839
|
-
for (let
|
|
28840
|
-
const [b, C] = c[
|
|
28841
|
-
v[
|
|
28859
|
+
for (let V = 0; V < l; V++) {
|
|
28860
|
+
const [b, C] = c[V][0], I = a[V], { x: M, y: S, z: T } = I, N = new Ae(M + b * i, S + 0.05, T + C * i);
|
|
28861
|
+
v[V * 6 + 0] = N.x, v[V * 6 + 1] = N.y, v[V * 6 + 2] = N.z;
|
|
28842
28862
|
const _ = new Ae(M - b * i, S + 0.05, T - C * i);
|
|
28843
|
-
v[
|
|
28863
|
+
v[V * 6 + 3] = _.x, v[V * 6 + 4] = _.y, v[V * 6 + 5] = _.z, w += V > 0 ? a[V - 1].clone().sub(a[V]).length() : 0;
|
|
28844
28864
|
const q = w / e;
|
|
28845
|
-
E = q, A[
|
|
28865
|
+
E = q, A[V * 4 + 0] = 0, A[V * 4 + 1] = q, A[V * 4 + 2] = 1, A[V * 4 + 3] = q;
|
|
28846
28866
|
const ee = new P.Vector3().lerpVectors(N, _, 0.5);
|
|
28847
|
-
n.skipPositions && n.skipPositions.some((se) => se.distanceTo(ee) < 0.26) ||
|
|
28867
|
+
n.skipPositions && n.skipPositions.some((se) => se.distanceTo(ee) < 0.26) || V !== l - 1 && (g[V * 6 + 0] = V * 2 + 0, g[V * 6 + 1] = V * 2 + 2, g[V * 6 + 2] = V * 2 + 1, g[V * 6 + 3] = V * 2 + 2, g[V * 6 + 4] = V * 2 + 3, g[V * 6 + 5] = V * 2 + 1);
|
|
28848
28868
|
}
|
|
28849
28869
|
const k = [];
|
|
28850
28870
|
let L;
|
|
28851
28871
|
const D = [];
|
|
28852
|
-
for (let
|
|
28853
|
-
if (L !== void 0 &&
|
|
28872
|
+
for (let V = 0; V < l - 1; V++) {
|
|
28873
|
+
if (L !== void 0 && V <= L)
|
|
28854
28874
|
continue;
|
|
28855
|
-
const b =
|
|
28856
|
-
x: v[
|
|
28857
|
-
y: v[
|
|
28875
|
+
const b = V + 1, C = {
|
|
28876
|
+
x: v[V * 6 + 0],
|
|
28877
|
+
y: v[V * 6 + 2]
|
|
28858
28878
|
}, I = {
|
|
28859
|
-
x: v[
|
|
28860
|
-
y: v[
|
|
28879
|
+
x: v[V * 6 + 3],
|
|
28880
|
+
y: v[V * 6 + 5]
|
|
28861
28881
|
}, M = {
|
|
28862
28882
|
x: v[b * 6 + 0],
|
|
28863
28883
|
y: v[b * 6 + 2]
|
|
@@ -28865,8 +28885,8 @@ function o8(n) {
|
|
|
28865
28885
|
x: v[b * 6 + 3],
|
|
28866
28886
|
y: v[b * 6 + 5]
|
|
28867
28887
|
}, T = O1([C, I], [M, S]);
|
|
28868
|
-
if (T && k.push(
|
|
28869
|
-
k.push(
|
|
28888
|
+
if (T && k.push(V), !T && k.length) {
|
|
28889
|
+
k.push(V);
|
|
28870
28890
|
const N = new P.Vector2(C.x, C.y).distanceTo(new P.Vector2(M.x, M.y)), _ = new P.Vector2(I.x, I.y).distanceTo(new P.Vector2(S.x, S.y)), q = 300, ee = [], K = [], se = Math.max(0, k[0] - e * q), te = k[0];
|
|
28871
28891
|
for (let Te = se; Te < te; Te++)
|
|
28872
28892
|
N < _ ? ee.push({ x: v[Te * 6 + 0], y: v[Te * 6 + 2] }) : ee.push({ x: v[Te * 6 + 3], y: v[Te * 6 + 5] });
|
|
@@ -28904,9 +28924,9 @@ function o8(n) {
|
|
|
28904
28924
|
}
|
|
28905
28925
|
}
|
|
28906
28926
|
const j = new Float32Array(f);
|
|
28907
|
-
D.forEach((
|
|
28927
|
+
D.forEach((V) => {
|
|
28908
28928
|
for (let b = 0; b < l - 1; b++)
|
|
28909
|
-
b >=
|
|
28929
|
+
b >= V.start && b <= V.end ? (j[b * 2 + 0] = 1, j[b * 2 + 1] = 1) : j[b] !== 1 && (j[b * 2 + 0] = 0, j[b * 2 + 1] = 0);
|
|
28910
28930
|
});
|
|
28911
28931
|
const z = new P.BufferGeometry();
|
|
28912
28932
|
return z.setAttribute("position", new P.BufferAttribute(v, 3)), z.setAttribute("uv", new P.BufferAttribute(A, 2)), z.setIndex(new P.BufferAttribute(g, 1)), { geometry: z, maxV: E, animationWillError: D, curvePath: o, curvePoints: a };
|
|
@@ -29657,7 +29677,7 @@ class Hr {
|
|
|
29657
29677
|
this.cache_visible.clear(), this.cache_raycasterDistance.clear();
|
|
29658
29678
|
}
|
|
29659
29679
|
static generateCameraTagKey(t, e, i = 3) {
|
|
29660
|
-
const s =
|
|
29680
|
+
const s = B(B({}, e.five.getCurrentState()), t), o = s.mode === "Panorama" ? e.workUtil.getObserverPosition(s.panoIndex) : e.five.camera.position;
|
|
29661
29681
|
return o ? [
|
|
29662
29682
|
//
|
|
29663
29683
|
o.x.toFixed(i),
|
|
@@ -29858,18 +29878,18 @@ class D8 extends us {
|
|
|
29858
29878
|
const o = {}, r = {}, a = {};
|
|
29859
29879
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([E, k]) => {
|
|
29860
29880
|
var C, I;
|
|
29861
|
-
const L = E, D = L.split("-"), j = E.startsWith("["), z = j ? D[0].slice(1, -1) : void 0,
|
|
29881
|
+
const L = E, D = L.split("-"), j = E.startsWith("["), z = j ? D[0].slice(1, -1) : void 0, V = j ? D.slice(1) : D, b = z ? ["PanoramaLike", "ModelLike"].includes(z) ? (C = r[z]) != null ? C : r[z] = {} : (I = a[z]) != null ? I : a[z] = {} : o;
|
|
29862
29882
|
if (!b[L]) {
|
|
29863
|
-
if (
|
|
29864
|
-
const [M] =
|
|
29883
|
+
if (V.length === 0 && (b[L] = k), V.length === 1) {
|
|
29884
|
+
const [M] = V;
|
|
29865
29885
|
(e.contentType === M || M === "Any") && (b[L] = k);
|
|
29866
29886
|
}
|
|
29867
|
-
if (
|
|
29868
|
-
const [M = "Any", S = "Any"] =
|
|
29887
|
+
if (V.length === 2) {
|
|
29888
|
+
const [M = "Any", S = "Any"] = V;
|
|
29869
29889
|
M === "Mixin" && e.contentType === S && (b[L] = k), (e.stickType === M || M === "Any") && (e.contentType === S || S === "Any") && (b[L] = k);
|
|
29870
29890
|
}
|
|
29871
|
-
if (
|
|
29872
|
-
const [M = "Any", S, T] =
|
|
29891
|
+
if (V.length === 3) {
|
|
29892
|
+
const [M = "Any", S, T] = V;
|
|
29873
29893
|
if (S === "Audio" && e.contentType === "Audio") {
|
|
29874
29894
|
const N = e;
|
|
29875
29895
|
(N.stickType === M || M === "Any") && N.data.appearance === T && (b[L] = k);
|
|
@@ -29886,7 +29906,7 @@ class D8 extends us {
|
|
|
29886
29906
|
const L = u[E];
|
|
29887
29907
|
u[E] = et({}, c, L, ...Object.values(k), l, { _isMerged: !0 });
|
|
29888
29908
|
});
|
|
29889
|
-
const m = ce(
|
|
29909
|
+
const m = ce(B({}, h), { configWithFiveMode: u });
|
|
29890
29910
|
return al(m), Object.values(u).forEach((E) => al(E)), m._isMerged = !0, m;
|
|
29891
29911
|
}
|
|
29892
29912
|
}
|
|
@@ -30006,21 +30026,21 @@ function fc(n, t, e) {
|
|
|
30006
30026
|
const s = {}, o = {}, r = {};
|
|
30007
30027
|
t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([w, E]) => {
|
|
30008
30028
|
var b, C;
|
|
30009
|
-
const k = w, L = k.split("-"), D = w.startsWith("["), j = D ? L[0].slice(1, -1) : void 0, z = D ? L.slice(1) : L,
|
|
30010
|
-
if (!
|
|
30011
|
-
if (z.length === 0 && (
|
|
30029
|
+
const k = w, L = k.split("-"), D = w.startsWith("["), j = D ? L[0].slice(1, -1) : void 0, z = D ? L.slice(1) : L, V = j ? ["PanoramaLike", "ModelLike"].includes(j) ? (b = o[j]) != null ? b : o[j] = {} : (C = r[j]) != null ? C : r[j] = {} : s;
|
|
30030
|
+
if (!V[k]) {
|
|
30031
|
+
if (z.length === 0 && (V[k] = E), z.length === 1) {
|
|
30012
30032
|
const [I] = z;
|
|
30013
|
-
(n.contentType === I || I === "Any") && (
|
|
30033
|
+
(n.contentType === I || I === "Any") && (V[k] = E);
|
|
30014
30034
|
}
|
|
30015
30035
|
if (z.length === 2) {
|
|
30016
30036
|
const [I = "Any", M = "Any"] = z;
|
|
30017
|
-
I === "Mixin" && n.contentType === M && (
|
|
30037
|
+
I === "Mixin" && n.contentType === M && (V[k] = E), (n.stickType === I || I === "Any") && (n.contentType === M || M === "Any") && (V[k] = E);
|
|
30018
30038
|
}
|
|
30019
30039
|
if (z.length === 3) {
|
|
30020
30040
|
const [I = "Any", M, S] = z;
|
|
30021
30041
|
if (M === "Audio" && n.contentType === "Audio") {
|
|
30022
30042
|
const T = n;
|
|
30023
|
-
(T.stickType === I || I === "Any") && T.data.appearance === S && (
|
|
30043
|
+
(T.stickType === I || I === "Any") && T.data.appearance === S && (V[k] = E);
|
|
30024
30044
|
}
|
|
30025
30045
|
}
|
|
30026
30046
|
}
|
|
@@ -30034,7 +30054,7 @@ function fc(n, t, e) {
|
|
|
30034
30054
|
const k = h[w];
|
|
30035
30055
|
h[w] = et({}, l, k, ...Object.values(E), a, { _isMerged: !0 });
|
|
30036
30056
|
});
|
|
30037
|
-
const f = ce(
|
|
30057
|
+
const f = ce(B({}, c), { configWithFiveMode: h });
|
|
30038
30058
|
return al(f), Object.values(h).forEach((w) => al(w)), f._isMerged = !0, f;
|
|
30039
30059
|
}
|
|
30040
30060
|
function wp(n) {
|
|
@@ -30127,7 +30147,7 @@ class vu {
|
|
|
30127
30147
|
const r = fc(e, t.config), a = this.getConfig(e);
|
|
30128
30148
|
e.config = a, this.id = (h = e.id) != null ? h : Dt(), this.enabled = (u = e.enabled) != null ? u : !0, this.contentType = e.contentType, this.hoverEnabled = (m = (f = a.popoverConfig) == null ? void 0 : f.enabled) != null ? m : !0, this.data = (p = a.initialData) != null && p.important ? et(e.data, s, a.initialData) : et(e.data, a.initialData, s);
|
|
30129
30149
|
let l;
|
|
30130
|
-
typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? l = !0 : a.unfoldedConfig.keep === "folded" ? l = !1 : l = !this.can("fold") : l = !this.can("fold"), this.state =
|
|
30150
|
+
typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? l = !0 : a.unfoldedConfig.keep === "folded" ? l = !1 : l = !this.can("fold") : l = !this.can("fold"), this.state = B({
|
|
30131
30151
|
visible: void 0,
|
|
30132
30152
|
unfolded: l
|
|
30133
30153
|
}, a.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
@@ -30192,7 +30212,7 @@ class vu {
|
|
|
30192
30212
|
if (di(o))
|
|
30193
30213
|
return this;
|
|
30194
30214
|
const r = this.workUtil.getObserverPosition(o), a = this.centerPosition.clone().sub(r).normalize();
|
|
30195
|
-
this.five.setState(
|
|
30215
|
+
this.five.setState(B({
|
|
30196
30216
|
mode: "Panorama",
|
|
30197
30217
|
workCode: this.workUtil.workCode,
|
|
30198
30218
|
panoIndex: o
|
|
@@ -30236,7 +30256,7 @@ class vu {
|
|
|
30236
30256
|
console.warn("tagDom is empty");
|
|
30237
30257
|
return;
|
|
30238
30258
|
}
|
|
30239
|
-
yield (s ? bl : m0)(o,
|
|
30259
|
+
yield (s ? bl : m0)(o, B({
|
|
30240
30260
|
begin: () => {
|
|
30241
30261
|
s === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
30242
30262
|
},
|
|
@@ -30290,7 +30310,7 @@ class vu {
|
|
|
30290
30310
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
30291
30311
|
*/
|
|
30292
30312
|
setData(t, e = !0) {
|
|
30293
|
-
e ? this.data = et(this.data, t) : this.data =
|
|
30313
|
+
e ? this.data = et(this.data, t) : this.data = B(B({}, this.data), t), this.hooks.emit("dataChanged", this.data);
|
|
30294
30314
|
}
|
|
30295
30315
|
/**
|
|
30296
30316
|
* @description 修改标签位置
|
|
@@ -30329,7 +30349,7 @@ class vu {
|
|
|
30329
30349
|
return (l = o != null ? o : i) != null ? l : {};
|
|
30330
30350
|
}
|
|
30331
30351
|
getDistance(t, e = 3) {
|
|
30332
|
-
const i =
|
|
30352
|
+
const i = B(B({}, this.five.getCurrentState()), t), { panoIndex: s, mode: o } = i, r = o === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, a = this.centerPosition;
|
|
30333
30353
|
return !r || !a ? -1 : r.distanceTo(a);
|
|
30334
30354
|
}
|
|
30335
30355
|
/**
|
|
@@ -30343,7 +30363,7 @@ class vu {
|
|
|
30343
30363
|
getVisible(t) {
|
|
30344
30364
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
30345
30365
|
return !1;
|
|
30346
|
-
const e =
|
|
30366
|
+
const e = B(B({}, this.five.getCurrentState()), t);
|
|
30347
30367
|
let i = this.cache.getVisible(this, e);
|
|
30348
30368
|
return di(i) && (i = this.computeVisible(e).value, this.cache.setVisible(this, e, i)), i;
|
|
30349
30369
|
}
|
|
@@ -30402,7 +30422,7 @@ class vu {
|
|
|
30402
30422
|
return t != null ? t : "Dom";
|
|
30403
30423
|
}
|
|
30404
30424
|
computeVisible(t) {
|
|
30405
|
-
const e =
|
|
30425
|
+
const e = B(B({}, this.five.getCurrentState()), t), { panoIndex: i, mode: s } = e, o = [];
|
|
30406
30426
|
return (() => {
|
|
30407
30427
|
var c, u, f, m;
|
|
30408
30428
|
const l = (c = this.getConfig().visibleConfig) != null ? c : {};
|
|
@@ -30423,7 +30443,7 @@ class vu {
|
|
|
30423
30443
|
if (l.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
|
|
30424
30444
|
const h = this.computeVisibleByFloorIndex(), { value: g } = h, v = Nn(h, ["value"]);
|
|
30425
30445
|
if (g === !1)
|
|
30426
|
-
return
|
|
30446
|
+
return B({ value: !1, checkedList: o, reason: "followModelVisibility check failed" }, v);
|
|
30427
30447
|
}
|
|
30428
30448
|
if (Jn(s) && l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && i !== void 0) {
|
|
30429
30449
|
if (o.push("visiblePanoIndex"), Array.isArray(l.visiblePanoIndex) && !l.visiblePanoIndex.includes(i))
|
|
@@ -30612,7 +30632,7 @@ class vu {
|
|
|
30612
30632
|
}).map((a) => ({ tag: a, id: a.id, tagConfig: a.getConfig().unfoldedConfig })).filter(({ tagConfig: a }) => {
|
|
30613
30633
|
var l, c;
|
|
30614
30634
|
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((l = a.autoUnfold) == null ? void 0 : l.enable) === !1 || ((c = a.autoUnfold) == null ? void 0 : c.strategy) !== "MinimumDistance");
|
|
30615
|
-
}).map((a) => ce(
|
|
30635
|
+
}).map((a) => ce(B({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
30616
30636
|
const c = l.autoUnfold.distance;
|
|
30617
30637
|
return !(c && Ea(a, c) === !1);
|
|
30618
30638
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
@@ -30652,7 +30672,7 @@ class vu {
|
|
|
30652
30672
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
30653
30673
|
if (!this.enabled)
|
|
30654
30674
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
30655
|
-
const t = ce(
|
|
30675
|
+
const t = ce(B({}, this.computeVisible()), {
|
|
30656
30676
|
tagInstance: this
|
|
30657
30677
|
});
|
|
30658
30678
|
return t.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: t } : this.state.visible ? { reason: "应该是能看见才对", info: t } : t.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: t } : { reason: (e = t.reason.type) != null ? e : t.reason, info: t };
|
|
@@ -30784,7 +30804,7 @@ class j8 extends vu {
|
|
|
30784
30804
|
const G1 = 1, Pp = `CSS3DObject@${G1}`, R8 = 216e-5, _8 = 3e-3;
|
|
30785
30805
|
class W1 extends yn {
|
|
30786
30806
|
constructor(e) {
|
|
30787
|
-
var L, D, j, z,
|
|
30807
|
+
var L, D, j, z, V;
|
|
30788
30808
|
if (di(e.cornerPoints) && di(e.width))
|
|
30789
30809
|
throw new Error("cornerPoints and width cannot be both empty");
|
|
30790
30810
|
const i = (L = e.container) != null ? L : document.createElement("div"), s = (D = e.cornerPoints) != null ? D : (() => {
|
|
@@ -30795,7 +30815,7 @@ class W1 extends yn {
|
|
|
30795
30815
|
new Ae(b, -b, 0),
|
|
30796
30816
|
new Ae(b, b, 0)
|
|
30797
30817
|
];
|
|
30798
|
-
})(), o = (j = e.ratio) != null ? j : _8, r = (z = e.dpr) != null ? z : 1, a = (
|
|
30818
|
+
})(), o = (j = e.ratio) != null ? j : _8, r = (z = e.dpr) != null ? z : 1, a = (V = e.pointerEvents) != null ? V : "auto", l = Math.max(R8, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]);
|
|
30799
30819
|
let u = Mo(c / o * r), f = Mo(h / o * r);
|
|
30800
30820
|
const m = si(...s);
|
|
30801
30821
|
let p;
|
|
@@ -31467,10 +31487,10 @@ function K8(n, t, e) {
|
|
|
31467
31487
|
let m, p, g = [];
|
|
31468
31488
|
function v(D) {
|
|
31469
31489
|
const j = [], z = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
31470
|
-
return D.slice().replace(z, (
|
|
31490
|
+
return D.slice().replace(z, (V) => `${c}${h}${V}${c}`).split(c).forEach((V) => V.startsWith(h) ? j.push({
|
|
31471
31491
|
id: Dt(),
|
|
31472
|
-
content:
|
|
31473
|
-
}) : j.push(...
|
|
31492
|
+
content: V.slice(h.length)
|
|
31493
|
+
}) : j.push(...V.split("").map((b) => b === " " ? u : b === `
|
|
31474
31494
|
` ? f : b).map((b) => ({ id: Dt(), content: b })))), j;
|
|
31475
31495
|
}
|
|
31476
31496
|
function A() {
|
|
@@ -31488,7 +31508,7 @@ function K8(n, t, e) {
|
|
|
31488
31508
|
}
|
|
31489
31509
|
function E(D) {
|
|
31490
31510
|
const j = function() {
|
|
31491
|
-
const z = g8((
|
|
31511
|
+
const z = g8((V) => D[V].getBoundingClientRect().x, [Math.min(D.length - 1, 10), Math.min(D.length - 1, 30)]);
|
|
31492
31512
|
if (z > 0)
|
|
31493
31513
|
return z;
|
|
31494
31514
|
}();
|
|
@@ -33352,7 +33372,7 @@ function yE({
|
|
|
33352
33372
|
head: 0,
|
|
33353
33373
|
tail: 0
|
|
33354
33374
|
};
|
|
33355
|
-
return ce(
|
|
33375
|
+
return ce(B({}, i), {
|
|
33356
33376
|
total: i.head + i.tail
|
|
33357
33377
|
});
|
|
33358
33378
|
}
|
|
@@ -33605,8 +33625,8 @@ var ka = m9, ll = {}, v9 = {
|
|
|
33605
33625
|
}
|
|
33606
33626
|
};
|
|
33607
33627
|
(function(n, t) {
|
|
33608
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", p = "[object Object]", g = "[object Promise]", v = "[object RegExp]", A = "[object Set]", w = "[object String]", E = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", D = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]",
|
|
33609
|
-
K[o] = K[r] = K[L] = K[D] = K[a] = K[l] = K[j] = K[z] = K[
|
|
33628
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", p = "[object Object]", g = "[object Promise]", v = "[object RegExp]", A = "[object Set]", w = "[object String]", E = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", D = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]", V = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", I = "[object Uint8Array]", M = "[object Uint8ClampedArray]", S = "[object Uint16Array]", T = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, _ = /\w*$/, q = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
|
|
33629
|
+
K[o] = K[r] = K[L] = K[D] = K[a] = K[l] = K[j] = K[z] = K[V] = K[b] = K[C] = K[f] = K[m] = K[p] = K[v] = K[A] = K[w] = K[E] = K[I] = K[M] = K[S] = K[T] = !0, K[c] = K[h] = K[k] = !1;
|
|
33610
33630
|
var se = typeof ki == "object" && ki && ki.Object === Object && ki, te = typeof self == "object" && self && self.Object === Object && self, le = se || te || Function("return this")(), Se = t && !t.nodeType && t, ue = Se && !0 && n && !n.nodeType && n, Te = ue && ue.exports === Se;
|
|
33611
33631
|
function fe(x, H) {
|
|
33612
33632
|
return x.set(H[0], H[1]), x;
|
|
@@ -33958,7 +33978,7 @@ var ka = m9, ll = {}, v9 = {
|
|
|
33958
33978
|
return Oi(x, re);
|
|
33959
33979
|
case j:
|
|
33960
33980
|
case z:
|
|
33961
|
-
case
|
|
33981
|
+
case V:
|
|
33962
33982
|
case b:
|
|
33963
33983
|
case C:
|
|
33964
33984
|
case I:
|
|
@@ -34058,7 +34078,7 @@ var cl = {}, b9 = {
|
|
|
34058
34078
|
}
|
|
34059
34079
|
};
|
|
34060
34080
|
(function(n, t) {
|
|
34061
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", E = "[object Promise]", k = "[object Proxy]", L = "[object RegExp]", D = "[object Set]", j = "[object String]", z = "[object Symbol]",
|
|
34081
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", E = "[object Promise]", k = "[object Proxy]", L = "[object RegExp]", D = "[object Set]", j = "[object String]", z = "[object Symbol]", V = "[object Undefined]", b = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", M = "[object Float32Array]", S = "[object Float64Array]", T = "[object Int8Array]", N = "[object Int16Array]", _ = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", se = "[object Uint32Array]", te = /[\\^$.*+?()[\]{}|]/g, le = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, ue = {};
|
|
34062
34082
|
ue[M] = ue[S] = ue[T] = ue[N] = ue[_] = ue[q] = ue[ee] = ue[K] = ue[se] = !0, ue[a] = ue[l] = ue[C] = ue[h] = ue[I] = ue[u] = ue[f] = ue[m] = ue[g] = ue[v] = ue[w] = ue[L] = ue[D] = ue[j] = ue[b] = !1;
|
|
34063
34083
|
var Te = typeof ki == "object" && ki && ki.Object === Object && ki, fe = typeof self == "object" && self && self.Object === Object && self, he = Te || fe || Function("return this")(), Le = t && !t.nodeType && t, $ = Le && !0 && n && !n.nodeType && n, Me = $ && $.exports === Le, Re = Me && Te.process, ve = function() {
|
|
34064
34084
|
try {
|
|
@@ -34273,7 +34293,7 @@ var cl = {}, b9 = {
|
|
|
34273
34293
|
return eo(x) ? re : ye(re, J(x));
|
|
34274
34294
|
}
|
|
34275
34295
|
function Oi(x) {
|
|
34276
|
-
return x == null ? x === void 0 ?
|
|
34296
|
+
return x == null ? x === void 0 ? V : A : gi && gi in Object(x) ? ne(x) : ei(x);
|
|
34277
34297
|
}
|
|
34278
34298
|
function Bn(x) {
|
|
34279
34299
|
return Xi(x) && Oi(x) == a;
|
|
@@ -35486,7 +35506,7 @@ function N9(n, t, e) {
|
|
|
35486
35506
|
loaded: () => e(6, o = ye)
|
|
35487
35507
|
})(de);
|
|
35488
35508
|
}), g = cs();
|
|
35489
|
-
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: k = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = as } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible:
|
|
35509
|
+
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: k = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = as } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: b = !0 } = t, { swiping: C = !0 } = t, { particlesToShow: I = 1 } = t, { particlesToScroll: M = 1 } = t;
|
|
35490
35510
|
function S(de, ye) {
|
|
35491
35511
|
return ie(this, null, function* () {
|
|
35492
35512
|
const ze = Ir(ye, "animated", !0);
|
|
@@ -35582,7 +35602,7 @@ function N9(n, t, e) {
|
|
|
35582
35602
|
}
|
|
35583
35603
|
const Be = (de) => te(de.detail);
|
|
35584
35604
|
return n.$$set = (de) => {
|
|
35585
|
-
"timingFunction" in de && e(0, v = de.timingFunction), "arrows" in de && e(1, A = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, E = de.initialPageIndex), "duration" in de && e(25, k = de.duration), "autoplay" in de && e(26, L = de.autoplay), "autoplayDuration" in de && e(27, D = de.autoplayDuration), "autoplayDirection" in de && e(28, j = de.autoplayDirection), "pauseOnFocus" in de && e(29, z = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3,
|
|
35605
|
+
"timingFunction" in de && e(0, v = de.timingFunction), "arrows" in de && e(1, A = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, E = de.initialPageIndex), "duration" in de && e(25, k = de.duration), "autoplay" in de && e(26, L = de.autoplay), "autoplayDuration" in de && e(27, D = de.autoplayDuration), "autoplayDirection" in de && e(28, j = de.autoplayDirection), "pauseOnFocus" in de && e(29, z = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3, V = de.autoplayProgressVisible), "dots" in de && e(4, b = de.dots), "swiping" in de && e(30, C = de.swiping), "particlesToShow" in de && e(31, I = de.particlesToShow), "particlesToScroll" in de && e(32, M = de.particlesToScroll), "$$scope" in de && e(36, s = de.$$scope);
|
|
35586
35606
|
}, n.$$.update = () => {
|
|
35587
35607
|
n.$$.dirty[0] & /*currentPageIndex*/
|
|
35588
35608
|
32 && g("pageChange", r), n.$$.dirty[0] & /*infinite*/
|
|
@@ -35598,7 +35618,7 @@ function N9(n, t, e) {
|
|
|
35598
35618
|
v,
|
|
35599
35619
|
A,
|
|
35600
35620
|
w,
|
|
35601
|
-
|
|
35621
|
+
V,
|
|
35602
35622
|
b,
|
|
35603
35623
|
r,
|
|
35604
35624
|
o,
|
|
@@ -36019,7 +36039,7 @@ function q9(n, t, e) {
|
|
|
36019
36039
|
}, z = (I) => {
|
|
36020
36040
|
i && i.pause();
|
|
36021
36041
|
};
|
|
36022
|
-
function
|
|
36042
|
+
function V(I) {
|
|
36023
36043
|
qe[I ? "unshift" : "push"](() => {
|
|
36024
36044
|
o.videoInstance = I, e(0, o);
|
|
36025
36045
|
});
|
|
@@ -36060,7 +36080,7 @@ function q9(n, t, e) {
|
|
|
36060
36080
|
D,
|
|
36061
36081
|
j,
|
|
36062
36082
|
z,
|
|
36063
|
-
|
|
36083
|
+
V,
|
|
36064
36084
|
b,
|
|
36065
36085
|
C
|
|
36066
36086
|
];
|
|
@@ -36462,7 +36482,7 @@ function iM(n, t, e) {
|
|
|
36462
36482
|
let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: u = 0 } = t, { unfolded: f = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: v = {} } = t;
|
|
36463
36483
|
const { autoplayVideo: A = !1, autoplayCarousel: w = !0, autoplayVideoInCarousel: E = !1 } = v;
|
|
36464
36484
|
let k = [], L = 0, D, j = null;
|
|
36465
|
-
const z = en("hooks"),
|
|
36485
|
+
const z = en("hooks"), V = en("mediaStore");
|
|
36466
36486
|
function b() {
|
|
36467
36487
|
const T = k[L], N = T == null ? void 0 : T.videoInstance;
|
|
36468
36488
|
N && (N.paused ? (N.muted = !1, N.play()) : N.pause());
|
|
@@ -36503,7 +36523,7 @@ function iM(n, t, e) {
|
|
|
36503
36523
|
});
|
|
36504
36524
|
}
|
|
36505
36525
|
const M = (T) => {
|
|
36506
|
-
i ||
|
|
36526
|
+
i || V.set({ currentMediaElement: null }), e(11, L = T.detail);
|
|
36507
36527
|
};
|
|
36508
36528
|
function S(T) {
|
|
36509
36529
|
n.$$.not_equal(k[0], T) && (k[0] = T, e(8, k));
|
|
@@ -36532,7 +36552,7 @@ function iM(n, t, e) {
|
|
|
36532
36552
|
D,
|
|
36533
36553
|
s,
|
|
36534
36554
|
A,
|
|
36535
|
-
|
|
36555
|
+
V,
|
|
36536
36556
|
g,
|
|
36537
36557
|
v,
|
|
36538
36558
|
C,
|
|
@@ -37169,12 +37189,12 @@ function cM(n, t, e) {
|
|
|
37169
37189
|
return n.$$set = (D) => {
|
|
37170
37190
|
"tag" in D && e(0, g = D.tag);
|
|
37171
37191
|
}, n.$$.update = () => {
|
|
37172
|
-
var D, j, z,
|
|
37192
|
+
var D, j, z, V;
|
|
37173
37193
|
n.$$.dirty & /*tag*/
|
|
37174
37194
|
1 && e(5, i = (j = (D = g.state) == null ? void 0 : D.unfolded) != null ? j : !1), n.$$.dirty & /*unfolded*/
|
|
37175
37195
|
32 && e(11, s = !i), n.$$.dirty & /*tag*/
|
|
37176
37196
|
1 && e(1, o = g.data), n.$$.dirty & /*data*/
|
|
37177
|
-
2 && e(2, r = Fe((z = o.price) == null ? void 0 : z.value) && ((
|
|
37197
|
+
2 && e(2, r = Fe((z = o.price) == null ? void 0 : z.value) && ((V = o.price) == null ? void 0 : V.value) !== ""), n.$$.dirty & /*tag*/
|
|
37178
37198
|
1 && e(10, a = g.data.theme || "light"), n.$$.dirty & /*tagsCalculated, tagsOffsetHeight, maxTagsLength*/
|
|
37179
37199
|
114688 && (!E || A && A > 0) && (e(15, w = Math.max(1, Math.floor(((A || 172) - 20) / Eu))), v !== void 0 && v > 40 && e(15, w = Math.max(1, w - 1)), e(16, E = !0)), n.$$.dirty & /*data, maxTagsLength*/
|
|
37180
37200
|
32770 && e(4, l = (o.brandTags || []).filter(Boolean).slice(0, w)), n.$$.dirty & /*maxTagsLength, primaryTags*/
|
|
@@ -37572,7 +37592,7 @@ function pM(n, t, e) {
|
|
|
37572
37592
|
e(
|
|
37573
37593
|
5,
|
|
37574
37594
|
f.onplay = (v) => {
|
|
37575
|
-
h.emit("playStateChange",
|
|
37595
|
+
h.emit("playStateChange", B({
|
|
37576
37596
|
event: v,
|
|
37577
37597
|
state: "playing",
|
|
37578
37598
|
mediaInstance: f
|
|
@@ -37582,7 +37602,7 @@ function pM(n, t, e) {
|
|
|
37582
37602
|
), e(
|
|
37583
37603
|
5,
|
|
37584
37604
|
f.onpause = (v) => {
|
|
37585
|
-
h.emit("playStateChange",
|
|
37605
|
+
h.emit("playStateChange", B({
|
|
37586
37606
|
event: v,
|
|
37587
37607
|
state: "paused",
|
|
37588
37608
|
mediaInstance: f
|
|
@@ -37592,7 +37612,7 @@ function pM(n, t, e) {
|
|
|
37592
37612
|
), e(
|
|
37593
37613
|
5,
|
|
37594
37614
|
f.onended = (v) => {
|
|
37595
|
-
h.emit("playStateChange",
|
|
37615
|
+
h.emit("playStateChange", B({
|
|
37596
37616
|
event: v,
|
|
37597
37617
|
state: "paused",
|
|
37598
37618
|
mediaInstance: f
|
|
@@ -37623,11 +37643,11 @@ function pM(n, t, e) {
|
|
|
37623
37643
|
v !== f && (m || f == null || f.pause());
|
|
37624
37644
|
});
|
|
37625
37645
|
function g(v) {
|
|
37626
|
-
f && (h.emit("click",
|
|
37646
|
+
f && (h.emit("click", B({
|
|
37627
37647
|
event: v,
|
|
37628
37648
|
target: "AudioTagPlayIcon",
|
|
37629
37649
|
audioInstance: f
|
|
37630
|
-
}, l)), u.set({ currentMediaElement: f }), h.emit("playStateChange",
|
|
37650
|
+
}, l)), u.set({ currentMediaElement: f }), h.emit("playStateChange", B({
|
|
37631
37651
|
event: v,
|
|
37632
37652
|
state: f.paused ? "playing" : "paused",
|
|
37633
37653
|
mediaInstance: f
|
|
@@ -38658,7 +38678,7 @@ function BM(n) {
|
|
|
38658
38678
|
const r = rv(t);
|
|
38659
38679
|
return vc.set(t, r), r;
|
|
38660
38680
|
})(), { width: s, height: o } = yield i;
|
|
38661
|
-
return ce(
|
|
38681
|
+
return ce(B({}, n), {
|
|
38662
38682
|
width: s / e,
|
|
38663
38683
|
height: o / e
|
|
38664
38684
|
});
|
|
@@ -38670,7 +38690,7 @@ function VM(n) {
|
|
|
38670
38690
|
if (!t)
|
|
38671
38691
|
throw new Error("KeyframeIcon requires steps");
|
|
38672
38692
|
const { width: o, height: r } = yield rv(e), a = o / i, l = r / i, c = a / t, h = l, u = 1 / s * t + "s";
|
|
38673
|
-
return ce(
|
|
38693
|
+
return ce(B({}, n), {
|
|
38674
38694
|
width: c,
|
|
38675
38695
|
height: h,
|
|
38676
38696
|
duration: u
|
|
@@ -39116,7 +39136,7 @@ function ZM(n) {
|
|
|
39116
39136
|
}
|
|
39117
39137
|
function go(n) {
|
|
39118
39138
|
const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
|
|
39119
|
-
return ce(
|
|
39139
|
+
return ce(B({}, n), { width: o, height: r });
|
|
39120
39140
|
}
|
|
39121
39141
|
function qM(n, t, e) {
|
|
39122
39142
|
let i, s, o, r, a, l, c, h, u, f, m, { width: p = null } = t, { icon: g = null } = t, { shadow: v = !1 } = t;
|
|
@@ -39130,7 +39150,7 @@ function qM(n, t, e) {
|
|
|
39130
39150
|
function E(L) {
|
|
39131
39151
|
return ie(this, null, function* () {
|
|
39132
39152
|
if (typeof m == "number")
|
|
39133
|
-
return ce(
|
|
39153
|
+
return ce(B({}, L), { width: m });
|
|
39134
39154
|
const D = yield BM(L);
|
|
39135
39155
|
return A("iconLoaded", D), D;
|
|
39136
39156
|
});
|
|
@@ -39462,7 +39482,7 @@ function n7(n) {
|
|
|
39462
39482
|
}
|
|
39463
39483
|
function s7(n) {
|
|
39464
39484
|
const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
|
|
39465
|
-
return ce(
|
|
39485
|
+
return ce(B({}, n), { width: o, height: r });
|
|
39466
39486
|
}
|
|
39467
39487
|
function o7(n, t, e) {
|
|
39468
39488
|
let i, s, o, r, a, { width: l = null } = t, { icon: c = null } = t, { shadow: h = !1 } = t;
|
|
@@ -40199,9 +40219,9 @@ function x7(n, t, e) {
|
|
|
40199
40219
|
function w(z) {
|
|
40200
40220
|
z ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
|
|
40201
40221
|
}
|
|
40202
|
-
function E(z,
|
|
40222
|
+
function E(z, V, b) {
|
|
40203
40223
|
var C, I;
|
|
40204
|
-
return !(!z.enabled || !
|
|
40224
|
+
return !(!z.enabled || !V.visible || !V.enabled || !b.visible || !((C = z.state) != null && C.visible) || ((I = z.temporaryState) == null ? void 0 : I.visible) === !1 || z instanceof lv && z.loading);
|
|
40205
40225
|
}
|
|
40206
40226
|
function k(z) {
|
|
40207
40227
|
qe[z ? "unshift" : "push"](() => {
|
|
@@ -40220,10 +40240,10 @@ function x7(n, t, e) {
|
|
|
40220
40240
|
return n.$$set = (z) => {
|
|
40221
40241
|
"tag" in z && e(0, c = z.tag), "hooks" in z && e(1, h = z.hooks), "rendererMap" in z && e(2, u = z.rendererMap), "contentTypeMap" in z && e(3, f = z.contentTypeMap), "state" in z && e(6, m = z.state), "mediaStore" in z && e(7, p = z.mediaStore), "temporaryState" in z && e(8, g = z.temporaryState);
|
|
40222
40242
|
}, n.$$.update = () => {
|
|
40223
|
-
var z,
|
|
40243
|
+
var z, V, b, C, I, M, S, T, N, _, q;
|
|
40224
40244
|
n.$$.dirty & /*tag*/
|
|
40225
40245
|
1 && e(12, i = (z = c.state) == null ? void 0 : z.unfolded), n.$$.dirty & /*tag*/
|
|
40226
|
-
1 && e(11, s = (
|
|
40246
|
+
1 && e(11, s = (V = c.state) == null ? void 0 : V.visible), n.$$.dirty & /*state, temporaryState, tag*/
|
|
40227
40247
|
321 && e(13, o = m.visible && g.visible && ((b = c.state) == null ? void 0 : b.visible)), n.$$.dirty & /*tag*/
|
|
40228
40248
|
1 && (r = c.id), n.$$.dirty & /*tag, state, temporaryState*/
|
|
40229
40249
|
321 && e(5, a = !E(c, m, g)), n.$$.dirty & /*isVisible*/
|
|
@@ -40313,7 +40333,7 @@ class lv extends vu {
|
|
|
40313
40333
|
c.classList.add("tag-media-container");
|
|
40314
40334
|
const h = "black";
|
|
40315
40335
|
c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
|
|
40316
|
-
const u =
|
|
40336
|
+
const u = B({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", m = new W1(ce(B({}, u), { mode: f })), p = this.computeNormal();
|
|
40317
40337
|
m.position.add(p.clone().setLength(qr.Z_FIGHTING_OFFSET)), s.add(m);
|
|
40318
40338
|
let g;
|
|
40319
40339
|
m.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, m, (A) => {
|
|
@@ -40394,7 +40414,7 @@ class T7 extends vu {
|
|
|
40394
40414
|
(a = (r = this.tag3DContentSvelte) == null ? void 0 : r.dispose) == null || a.call(r);
|
|
40395
40415
|
const c = document.createElement("div");
|
|
40396
40416
|
c.classList.add("tag-media-container");
|
|
40397
|
-
const h =
|
|
40417
|
+
const h = B({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new W1(ce(B({}, h), { mode: u })), m = this.computeNormal();
|
|
40398
40418
|
f.position.add(m.clone().setLength(qr.Z_FIGHTING_OFFSET)), this.plugin.group.add(f);
|
|
40399
40419
|
let p;
|
|
40400
40420
|
f.mode === "behind" && this.config.clickable !== !1 && (p = this.addObjectClickHandler(this, f, (v) => {
|
|
@@ -40982,7 +41002,7 @@ function G7(n, t, e) {
|
|
|
40982
41002
|
duration: (_) => c("audioDuration", _.detail)
|
|
40983
41003
|
}, z = (_) => {
|
|
40984
41004
|
E(_), p(_);
|
|
40985
|
-
},
|
|
41005
|
+
}, V = (_) => {
|
|
40986
41006
|
L(h) && A(_);
|
|
40987
41007
|
};
|
|
40988
41008
|
function b(_) {
|
|
@@ -41046,7 +41066,7 @@ function G7(n, t, e) {
|
|
|
41046
41066
|
j,
|
|
41047
41067
|
D,
|
|
41048
41068
|
z,
|
|
41049
|
-
|
|
41069
|
+
V,
|
|
41050
41070
|
b,
|
|
41051
41071
|
C,
|
|
41052
41072
|
I,
|
|
@@ -42038,11 +42058,11 @@ function Pk(n) {
|
|
|
42038
42058
|
/*$$scope*/
|
|
42039
42059
|
n[37],
|
|
42040
42060
|
Rg
|
|
42041
|
-
),
|
|
42061
|
+
), V = (
|
|
42042
42062
|
/*#slots*/
|
|
42043
42063
|
n[38].arrow
|
|
42044
42064
|
), b = ts(
|
|
42045
|
-
|
|
42065
|
+
V,
|
|
42046
42066
|
n,
|
|
42047
42067
|
/*$$scope*/
|
|
42048
42068
|
n[37],
|
|
@@ -42093,12 +42113,12 @@ function Pk(n) {
|
|
|
42093
42113
|
), b && b.p && (!p || I[1] & /*$$scope*/
|
|
42094
42114
|
64) && ns(
|
|
42095
42115
|
b,
|
|
42096
|
-
|
|
42116
|
+
V,
|
|
42097
42117
|
C,
|
|
42098
42118
|
/*$$scope*/
|
|
42099
42119
|
C[37],
|
|
42100
42120
|
p ? is(
|
|
42101
|
-
|
|
42121
|
+
V,
|
|
42102
42122
|
/*$$scope*/
|
|
42103
42123
|
C[37],
|
|
42104
42124
|
I,
|
|
@@ -42130,7 +42150,7 @@ function Ck(n) {
|
|
|
42130
42150
|
return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
|
|
42131
42151
|
}
|
|
42132
42152
|
function Ik(n, t, e) {
|
|
42133
|
-
let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, E, k, L, D, j, z,
|
|
42153
|
+
let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, E, k, L, D, j, z, V, b, C, I, { $$slots: M = {}, $$scope: S } = t, { tag: T } = t, { config: N = {} } = t, { theme: _ = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ee = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration: te = 0 } = t, le = 0, Se = "00:00", ue = null, Te = 0, fe = 0;
|
|
42134
42154
|
function he() {
|
|
42135
42155
|
return te > 0 ? se / te * 100 : 0;
|
|
42136
42156
|
}
|
|
@@ -42217,8 +42237,8 @@ function Ik(n, t, e) {
|
|
|
42217
42237
|
12 && e(30, D = i ? T.data.brandTags || [] : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
42218
42238
|
12 && e(29, j = i ? T.data.tags || [] : []), n.$$.dirty[0] & /*marketingBrandTags*/
|
|
42219
42239
|
1073741824 && e(4, z = D.filter(Boolean).slice(0, 2)), n.$$.dirty[0] & /*primaryTags*/
|
|
42220
|
-
16 && e(28,
|
|
42221
|
-
805306368 && e(13, b =
|
|
42240
|
+
16 && e(28, V = Math.max(0, 2 - z.length)), n.$$.dirty[0] & /*remainingCount, marketingTags*/
|
|
42241
|
+
805306368 && e(13, b = V > 0 ? j.filter(Boolean).slice(0, V) : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
42222
42242
|
12 && e(12, C = i && ((ze = T.data.price) == null ? void 0 : ze.value) || ""), n.$$.dirty[0] & /*isMarketingTag, tag*/
|
|
42223
42243
|
12 && e(11, I = i && ((Xe = T.data.price) == null ? void 0 : Xe.unit) || "");
|
|
42224
42244
|
}, e(14, L = 1), [
|
|
@@ -42250,7 +42270,7 @@ function Ik(n, t, e) {
|
|
|
42250
42270
|
ee,
|
|
42251
42271
|
se,
|
|
42252
42272
|
te,
|
|
42253
|
-
|
|
42273
|
+
V,
|
|
42254
42274
|
j,
|
|
42255
42275
|
D,
|
|
42256
42276
|
v,
|
|
@@ -43245,7 +43265,7 @@ function Fk(n) {
|
|
|
43245
43265
|
function Nk(n, t, e) {
|
|
43246
43266
|
let i, s, o, r, a, l, c, h, u, f;
|
|
43247
43267
|
const m = en("hooks");
|
|
43248
|
-
let { tag: p } = t, { config: g = {} } = t, { triggerElement: v } = t, { wrapperElement: A = document.body } = t, { popoverContainer: w = null } = t, { theme: E = void 0 } = t, { visible: k = !0 } = t, { closePopover: L = void 0 } = t, { audioInstance: D = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: z = 0 } = t, { audioDuration:
|
|
43268
|
+
let { tag: p } = t, { config: g = {} } = t, { triggerElement: v } = t, { wrapperElement: A = document.body } = t, { popoverContainer: w = null } = t, { theme: E = void 0 } = t, { visible: k = !0 } = t, { closePopover: L = void 0 } = t, { audioInstance: D = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: z = 0 } = t, { audioDuration: V = 0 } = t;
|
|
43249
43269
|
const b = cs();
|
|
43250
43270
|
let C, I = { width: 0, height: 0 }, M = null, S = s;
|
|
43251
43271
|
function T($, { duration: Me = 400, easing: Re = Lr, x: ve = 0, y: Be = 0 }) {
|
|
@@ -43353,7 +43373,7 @@ function Nk(n, t, e) {
|
|
|
43353
43373
|
});
|
|
43354
43374
|
}
|
|
43355
43375
|
return n.$$set = ($) => {
|
|
43356
|
-
"tag" in $ && e(0, p = $.tag), "config" in $ && e(1, g = $.config), "triggerElement" in $ && e(26, v = $.triggerElement), "wrapperElement" in $ && e(25, A = $.wrapperElement), "popoverContainer" in $ && e(27, w = $.popoverContainer), "theme" in $ && e(2, E = $.theme), "visible" in $ && e(3, k = $.visible), "closePopover" in $ && e(28, L = $.closePopover), "audioInstance" in $ && e(4, D = $.audioInstance), "audioPlaying" in $ && e(5, j = $.audioPlaying), "audioCurrentTime" in $ && e(6, z = $.audioCurrentTime), "audioDuration" in $ && e(7,
|
|
43376
|
+
"tag" in $ && e(0, p = $.tag), "config" in $ && e(1, g = $.config), "triggerElement" in $ && e(26, v = $.triggerElement), "wrapperElement" in $ && e(25, A = $.wrapperElement), "popoverContainer" in $ && e(27, w = $.popoverContainer), "theme" in $ && e(2, E = $.theme), "visible" in $ && e(3, k = $.visible), "closePopover" in $ && e(28, L = $.closePopover), "audioInstance" in $ && e(4, D = $.audioInstance), "audioPlaying" in $ && e(5, j = $.audioPlaying), "audioCurrentTime" in $ && e(6, z = $.audioCurrentTime), "audioDuration" in $ && e(7, V = $.audioDuration);
|
|
43357
43377
|
}, n.$$.update = () => {
|
|
43358
43378
|
if (n.$$.dirty[0] & /*theme, tag*/
|
|
43359
43379
|
5 && e(18, i = (() => Fe(E) ? E : Fe(p.data.theme) && ["light", "dark"].includes(p.data.theme) ? p.data.theme : p.contentType === "Marketing" ? "light" : "dark")()), n.$$.dirty[0] & /*config*/
|
|
@@ -43401,7 +43421,7 @@ function Nk(n, t, e) {
|
|
|
43401
43421
|
D,
|
|
43402
43422
|
j,
|
|
43403
43423
|
z,
|
|
43404
|
-
|
|
43424
|
+
V,
|
|
43405
43425
|
S,
|
|
43406
43426
|
C,
|
|
43407
43427
|
te,
|
|
@@ -43925,7 +43945,7 @@ function Zk(n) {
|
|
|
43925
43945
|
function qk(n, t, e) {
|
|
43926
43946
|
let i, s, o, r, a, l, c, h, u, f, m, { tag: p } = t, { mediaStore: g } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: A = /* @__PURE__ */ new Map() } = t, { state: w } = t, { temporaryState: E } = t, { wrapperElement: k = null } = t, { popoverContainer: L = null } = t;
|
|
43927
43947
|
const D = en("hooks");
|
|
43928
|
-
let j = !1, z,
|
|
43948
|
+
let j = !1, z, V, b = null, C = !1, I = !1, M = null, S = null, T = !1, N = 0, _ = 0;
|
|
43929
43949
|
const q = {
|
|
43930
43950
|
audioInstanceReady: ($) => {
|
|
43931
43951
|
e(14, S = $.detail), e(15, T = !S.paused);
|
|
@@ -43945,11 +43965,11 @@ function qk(n, t, e) {
|
|
|
43945
43965
|
};
|
|
43946
43966
|
let ee = !1;
|
|
43947
43967
|
const K = ($) => {
|
|
43948
|
-
if (
|
|
43968
|
+
if (V && clearTimeout(V), $ === !0 && !ee) {
|
|
43949
43969
|
ee = !0, e(11, j = !0);
|
|
43950
43970
|
return;
|
|
43951
43971
|
}
|
|
43952
|
-
|
|
43972
|
+
V = setTimeout(
|
|
43953
43973
|
() => {
|
|
43954
43974
|
var Me;
|
|
43955
43975
|
!C && !I && !((Me = p.config.popoverConfig) != null && Me.debug) && (ee = !1, e(11, j = !1));
|
|
@@ -43957,13 +43977,13 @@ function qk(n, t, e) {
|
|
|
43957
43977
|
300
|
|
43958
43978
|
);
|
|
43959
43979
|
}, se = () => {
|
|
43960
|
-
C = !0,
|
|
43980
|
+
C = !0, V && clearTimeout(V);
|
|
43961
43981
|
}, te = () => {
|
|
43962
43982
|
C = !1, K(!1);
|
|
43963
43983
|
}, le = ($) => {
|
|
43964
43984
|
var Me, Re, ve, Be, de, ye;
|
|
43965
43985
|
if (I = !0, p.isPopoverConfigEnabled() && p.isHoverEnabled() && ((Re = (Me = p.currentConfig) == null ? void 0 : Me.popoverConfig) == null ? void 0 : Re.trigger) === "hover") {
|
|
43966
|
-
if (
|
|
43986
|
+
if (V && clearTimeout(V), z !== void 0)
|
|
43967
43987
|
return;
|
|
43968
43988
|
((Be = (ve = p.currentConfig) == null ? void 0 : ve.popoverConfig) == null ? void 0 : Be.triggerDelay) > 0 ? z = setTimeout(
|
|
43969
43989
|
() => {
|
|
@@ -43984,7 +44004,7 @@ function qk(n, t, e) {
|
|
|
43984
44004
|
ee = !1, e(11, j = !1);
|
|
43985
44005
|
}
|
|
43986
44006
|
Lt(() => () => {
|
|
43987
|
-
z && clearTimeout(z),
|
|
44007
|
+
z && clearTimeout(z), V && clearTimeout(V);
|
|
43988
44008
|
});
|
|
43989
44009
|
function fe($) {
|
|
43990
44010
|
b = $, e(12, b);
|
|
@@ -44450,7 +44470,7 @@ class ah extends T8 {
|
|
|
44450
44470
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
44451
44471
|
this.TagContainerSvelte = new i6({
|
|
44452
44472
|
target: this.container,
|
|
44453
|
-
props: ce(
|
|
44473
|
+
props: ce(B({}, a), { state: ce(B({}, this.state), { enabled: !1 }) })
|
|
44454
44474
|
}), Xr(() => {
|
|
44455
44475
|
var l;
|
|
44456
44476
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
@@ -44459,7 +44479,7 @@ class ah extends T8 {
|
|
|
44459
44479
|
}
|
|
44460
44480
|
}), this.renderQueue.clear();
|
|
44461
44481
|
});
|
|
44462
|
-
this.params = et({}, { debug: !1, config: this.config },
|
|
44482
|
+
this.params = et({}, { debug: !1, config: this.config }, B({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), b8(1, { namespace: mu.PlayAudio });
|
|
44463
44483
|
try {
|
|
44464
44484
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = hv + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
44465
44485
|
get: function() {
|
|
@@ -44589,7 +44609,7 @@ class ah extends T8 {
|
|
|
44589
44609
|
setState(e, i) {
|
|
44590
44610
|
if (this.checkDisposed())
|
|
44591
44611
|
return;
|
|
44592
|
-
const { userAction: s = !0 } = i != null ? i : {}, o =
|
|
44612
|
+
const { userAction: s = !0 } = i != null ? i : {}, o = B({}, this.state);
|
|
44593
44613
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: s });
|
|
44594
44614
|
}
|
|
44595
44615
|
/**
|
|
@@ -45128,7 +45148,7 @@ function l6(n, t, e) {
|
|
|
45128
45148
|
}), i.push(l);
|
|
45129
45149
|
});
|
|
45130
45150
|
const s = t.transform, o = i.map((r) => Eo(new P.Vector3().fromArray(r), s).toArray());
|
|
45131
|
-
return [ce(
|
|
45151
|
+
return [ce(B({}, e), { type: "CatmullRomCurve3", points: o })];
|
|
45132
45152
|
}
|
|
45133
45153
|
const c6 = (
|
|
45134
45154
|
/* glsl */
|
|
@@ -45436,7 +45456,7 @@ class lh {
|
|
|
45436
45456
|
unitLength: o * i,
|
|
45437
45457
|
skipPositions: this.skippedPositions
|
|
45438
45458
|
});
|
|
45439
|
-
this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(r), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle =
|
|
45459
|
+
this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(r), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle = B(B({}, this.geometryStyle), e);
|
|
45440
45460
|
}
|
|
45441
45461
|
/** 设置线条材质 */
|
|
45442
45462
|
setMartial(t) {
|
|
@@ -45444,7 +45464,7 @@ class lh {
|
|
|
45444
45464
|
if (this.disposed)
|
|
45445
45465
|
return this.logError("disposed");
|
|
45446
45466
|
this.setDefaultVisible((i = t == null ? void 0 : t.visible) != null ? i : !1), this.setColor((s = t == null ? void 0 : t.color) != null ? s : "#ffffff"), this.setOpacity((o = t == null ? void 0 : t.opacity) != null ? o : 0.5), this.setTextureUrl((a = (r = t == null ? void 0 : t.texture) == null ? void 0 : r.url) != null ? a : Pl), (t == null ? void 0 : t.background_color) !== void 0 && this.setBackgroundColor(t.background_color), (t == null ? void 0 : t.background_opacity) !== void 0 && this.setBackgroundOpacity(t.background_opacity), (t == null ? void 0 : t.border_color) !== void 0 && this.setBorderColor(t.border_color), (t == null ? void 0 : t.border_opacity) !== void 0 && this.setBorderOpacity(t.border_opacity), (t == null ? void 0 : t.border_width) !== void 0 && this.setBorderWidth(t.border_width), (t == null ? void 0 : t.background_clip) !== void 0 && this.setBackgroundClip(t.background_clip);
|
|
45447
|
-
const e =
|
|
45467
|
+
const e = B(B({}, this.materialStyle), t);
|
|
45448
45468
|
this.materialStyle = e;
|
|
45449
45469
|
}
|
|
45450
45470
|
/** 设置模型状态 */
|
|
@@ -45453,7 +45473,7 @@ class lh {
|
|
|
45453
45473
|
const s = new P.Vector3(), o = new P.Vector3().fromArray(t.translate);
|
|
45454
45474
|
o.y += this.heightOffset, s.add(o), this.group.position.copy(s), i(this.startTagContainer, o), i(this.endTagContainer, o);
|
|
45455
45475
|
}
|
|
45456
|
-
const e =
|
|
45476
|
+
const e = B(B({}, this.meshStyle), t);
|
|
45457
45477
|
this.meshStyle = e;
|
|
45458
45478
|
function i(s, o) {
|
|
45459
45479
|
if (!(s != null && s.tag))
|
|
@@ -45594,7 +45614,7 @@ class lh {
|
|
|
45594
45614
|
s.tag = r, u6(r) && (s.tag.element = (h) => {
|
|
45595
45615
|
var m, p;
|
|
45596
45616
|
(m = s.app) == null || m.$destroy();
|
|
45597
|
-
const u = t === "start" ? ce(
|
|
45617
|
+
const u = t === "start" ? ce(B({}, r.data), { name: this.name, distance: Math.round((p = i == null ? void 0 : i.getLength()) != null ? p : 0), i18n: this.plugin.config.i18n }) : r.data, f = new r6({ target: h, intro: !0, props: B({ fontSize: this.currentFontSize }, u) });
|
|
45598
45618
|
return s.app = f, () => f.$destroy();
|
|
45599
45619
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
45600
45620
|
const a = this.meshStyle.translate;
|
|
@@ -45706,7 +45726,7 @@ class dv extends us {
|
|
|
45706
45726
|
return this.disposedErrorLog();
|
|
45707
45727
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
45708
45728
|
return this.disableErrorLog();
|
|
45709
|
-
const s =
|
|
45729
|
+
const s = B({}, this.state);
|
|
45710
45730
|
this.state = et({}, this.state, e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== s.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== s.speed && this.changeSpeed(e.speed), qt(s, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 });
|
|
45711
45731
|
}
|
|
45712
45732
|
/**
|
|
@@ -45813,7 +45833,7 @@ let fv = class extends dv {
|
|
|
45813
45833
|
this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
|
|
45814
45834
|
});
|
|
45815
45835
|
d(this, "moveToStart", () => {
|
|
45816
|
-
this.five.setState(ce(
|
|
45836
|
+
this.five.setState(ce(B({}, bc(this.curve, 0, this.curveOffset)), { mode: "Model" }));
|
|
45817
45837
|
});
|
|
45818
45838
|
d(this, "playFromStart", () => {
|
|
45819
45839
|
this.clearPauseData(), this.setState({ playing: !0 });
|
|
@@ -45841,7 +45861,7 @@ let fv = class extends dv {
|
|
|
45841
45861
|
}
|
|
45842
45862
|
load(e, i) {
|
|
45843
45863
|
var a, l, c, h, u, f, m, p, g;
|
|
45844
|
-
this.handlePause(), this.clear(), this.data =
|
|
45864
|
+
this.handlePause(), this.clear(), this.data = B({ id: Dt() }, e);
|
|
45845
45865
|
const s = (() => {
|
|
45846
45866
|
if (this.data.path instanceof P.Curve)
|
|
45847
45867
|
return this.data.path.curves[0];
|
|
@@ -45883,7 +45903,7 @@ let fv = class extends dv {
|
|
|
45883
45903
|
let o = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
|
|
45884
45904
|
(o < 0 || o >= 1) && (o = 0);
|
|
45885
45905
|
const r = bc(this.curve, o, this.curveOffset);
|
|
45886
|
-
if (this.hooks.emit("progressChange", o), this.five.setState(ce(
|
|
45906
|
+
if (this.hooks.emit("progressChange", o), this.five.setState(ce(B({}, r), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
45887
45907
|
const c = this.addInterruptListener(() => {
|
|
45888
45908
|
this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
|
|
45889
45909
|
});
|
|
@@ -45984,7 +46004,7 @@ class xu extends dv {
|
|
|
45984
46004
|
var h, u;
|
|
45985
46005
|
this.clear();
|
|
45986
46006
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
45987
|
-
this.data =
|
|
46007
|
+
this.data = B({ id: r.keyframesId }, r), this.hooks.emit("dataChange", r, o);
|
|
45988
46008
|
let a = [], l;
|
|
45989
46009
|
const c = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
|
|
45990
46010
|
c.filter((f, m) => {
|
|
@@ -46018,7 +46038,7 @@ class xu extends dv {
|
|
|
46018
46038
|
* @description Play from first keyframe
|
|
46019
46039
|
*/
|
|
46020
46040
|
playFromStart(e) {
|
|
46021
|
-
return this.playFrom(ce(
|
|
46041
|
+
return this.playFrom(ce(B({}, e), { index: 0 }));
|
|
46022
46042
|
}
|
|
46023
46043
|
/**
|
|
46024
46044
|
* @description Format data
|
|
@@ -46036,7 +46056,7 @@ class xu extends dv {
|
|
|
46036
46056
|
keyframes: i.keyframes.map((s, o) => {
|
|
46037
46057
|
var l;
|
|
46038
46058
|
const r = i.keyframes[o + 1], a = (() => !r || r.start === void 0 || s.end === void 0 ? 0 : r.start - s.end)();
|
|
46039
|
-
return ce(
|
|
46059
|
+
return ce(B({ id: (l = s.uuid) != null ? l : Dt(), moveIndex: o, stay: a, index: o }, s), { guildPluginOptions: i.guildPluginOptions });
|
|
46040
46060
|
})
|
|
46041
46061
|
};
|
|
46042
46062
|
if (i.panoIndexList) {
|
|
@@ -46057,11 +46077,11 @@ class xu extends dv {
|
|
|
46057
46077
|
i.moveType === void 0 || i.moveType === "justMove" ? s.push({
|
|
46058
46078
|
moveIndex: c,
|
|
46059
46079
|
stay: i.stay,
|
|
46060
|
-
data:
|
|
46061
|
-
}) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: o } }), h && s.push({ moveIndex: c, stay: i.stay, data:
|
|
46080
|
+
data: B({ effect: "Move", panoIndex: l, moveEffect: o }, h != null ? h : {})
|
|
46081
|
+
}) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: o } }), h && s.push({ moveIndex: c, stay: i.stay, data: B({ effect: "Rotate", panoIndex: l }, h) }));
|
|
46062
46082
|
}), {
|
|
46063
46083
|
keyframesId: Dt(),
|
|
46064
|
-
keyframes: s.map((l, c) =>
|
|
46084
|
+
keyframes: s.map((l, c) => B({ id: Dt(), index: c }, l)),
|
|
46065
46085
|
guildPluginOptions: i.guildPluginOptions,
|
|
46066
46086
|
useGuildLine: i.useGuildLine
|
|
46067
46087
|
};
|
|
@@ -46364,9 +46384,9 @@ class gv {
|
|
|
46364
46384
|
const i = t === "panorama" ? this.panoramaItem : this.modelItem, s = t === "panorama" ? e.panorama_style : e.model_style, o = e.path, r = s, a = s, l = s;
|
|
46365
46385
|
if (e.pano_group) {
|
|
46366
46386
|
const h = t === "panorama" && e.panorama_style.skip_group === !0;
|
|
46367
|
-
i.setGeometryByPanoGroup(e.pano_group,
|
|
46387
|
+
i.setGeometryByPanoGroup(e.pano_group, B(ce(B({}, e), { skipPanoGroup: h }), r));
|
|
46368
46388
|
} else
|
|
46369
|
-
e.path && i.setGeometryByPath(o,
|
|
46389
|
+
e.path && i.setGeometryByPath(o, B({}, r));
|
|
46370
46390
|
i.name = e.name, i.setMeshStyle(l), i.setMartial(a), i.setVisibleFloorIndexes((c = e.visible_floor_indexes) != null ? c : null), i.setStartTag(s == null ? void 0 : s.start_tag), i.setEndTag(s == null ? void 0 : s.end_tag);
|
|
46371
46391
|
}
|
|
46372
46392
|
show() {
|
|
@@ -46381,7 +46401,7 @@ class gv {
|
|
|
46381
46401
|
walk(t) {
|
|
46382
46402
|
return ie(this, null, function* () {
|
|
46383
46403
|
if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
|
|
46384
|
-
const e =
|
|
46404
|
+
const e = B({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield js(m6(this.five, e));
|
|
46385
46405
|
if (i)
|
|
46386
46406
|
return this.logError(i.message);
|
|
46387
46407
|
} else {
|
|
@@ -46470,7 +46490,7 @@ let v6 = class extends kn {
|
|
|
46470
46490
|
var p, g, v, A, w, E, k;
|
|
46471
46491
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
46472
46492
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
46473
|
-
const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : Kn(this.staticPrefix, Rh), h = ce(
|
|
46493
|
+
const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : Kn(this.staticPrefix, Rh), h = ce(B({}, a), {
|
|
46474
46494
|
model_style: {
|
|
46475
46495
|
texture: { url: c }
|
|
46476
46496
|
},
|
|
@@ -46522,8 +46542,8 @@ let v6 = class extends kn {
|
|
|
46522
46542
|
var o;
|
|
46523
46543
|
if (this.disposed)
|
|
46524
46544
|
return this.disposedErrorLog();
|
|
46525
|
-
const s =
|
|
46526
|
-
this.state =
|
|
46545
|
+
const s = B({}, this.state);
|
|
46546
|
+
this.state = B(B({}, this.state), e), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), qt(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 }), this.five.needsRender = !0);
|
|
46527
46547
|
}
|
|
46528
46548
|
/** 添加一个 GuideLineItem */
|
|
46529
46549
|
addGuideLineItem(e) {
|
|
@@ -46534,19 +46554,19 @@ let v6 = class extends kn {
|
|
|
46534
46554
|
}
|
|
46535
46555
|
processItemUrls(e) {
|
|
46536
46556
|
var o, r, a, l;
|
|
46537
|
-
const i =
|
|
46557
|
+
const i = B({}, e), s = Pl;
|
|
46538
46558
|
if (i.panorama_style) {
|
|
46539
46559
|
const c = (r = (o = i.panorama_style.texture) == null ? void 0 : o.url) != null ? r : s;
|
|
46540
|
-
i.panorama_style = ce(
|
|
46541
|
-
texture: ce(
|
|
46560
|
+
i.panorama_style = ce(B({}, i.panorama_style), {
|
|
46561
|
+
texture: ce(B({}, i.panorama_style.texture), {
|
|
46542
46562
|
url: Kn(this.staticPrefix, c)
|
|
46543
46563
|
})
|
|
46544
46564
|
});
|
|
46545
46565
|
}
|
|
46546
46566
|
if (i.model_style) {
|
|
46547
46567
|
const c = (l = (a = i.model_style.texture) == null ? void 0 : a.url) != null ? l : s;
|
|
46548
|
-
i.model_style = ce(
|
|
46549
|
-
texture: ce(
|
|
46568
|
+
i.model_style = ce(B({}, i.model_style), {
|
|
46569
|
+
texture: ce(B({}, i.model_style.texture), {
|
|
46550
46570
|
url: Kn(this.staticPrefix, c)
|
|
46551
46571
|
})
|
|
46552
46572
|
});
|
|
@@ -46833,7 +46853,7 @@ function D6(n, t) {
|
|
|
46833
46853
|
return n;
|
|
46834
46854
|
}
|
|
46835
46855
|
function T6(n) {
|
|
46836
|
-
const t = Ls(
|
|
46856
|
+
const t = Ls(B({
|
|
46837
46857
|
position: "absolute",
|
|
46838
46858
|
display: "block",
|
|
46839
46859
|
borderRadius: "4px",
|
|
@@ -47019,7 +47039,7 @@ function R6() {
|
|
|
47019
47039
|
] };
|
|
47020
47040
|
}
|
|
47021
47041
|
function Wn(n) {
|
|
47022
|
-
const t = Ls(
|
|
47042
|
+
const t = Ls(B({
|
|
47023
47043
|
background: "#FFFFFF",
|
|
47024
47044
|
width: "9px",
|
|
47025
47045
|
height: "9px",
|
|
@@ -47685,11 +47705,11 @@ class Q6 {
|
|
|
47685
47705
|
return G6();
|
|
47686
47706
|
if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
|
|
47687
47707
|
return U6();
|
|
47688
|
-
const i =
|
|
47689
|
-
this.state =
|
|
47708
|
+
const i = B({}, this.state);
|
|
47709
|
+
this.state = B(B({}, this.state), t), t.disposed !== void 0 && t.disposed !== i.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: i });
|
|
47690
47710
|
}
|
|
47691
47711
|
addControllers(t) {
|
|
47692
|
-
this.controllers =
|
|
47712
|
+
this.controllers = B(B({}, this.controllers), t), this.setState(this.state);
|
|
47693
47713
|
}
|
|
47694
47714
|
/**
|
|
47695
47715
|
* @description 初始化 helpers 的位置
|
|
@@ -47925,7 +47945,7 @@ class Y6 extends Kr {
|
|
|
47925
47945
|
this.scale(i);
|
|
47926
47946
|
}
|
|
47927
47947
|
scale(e) {
|
|
47928
|
-
var
|
|
47948
|
+
var V, b;
|
|
47929
47949
|
if (!this.startInfo)
|
|
47930
47950
|
return;
|
|
47931
47951
|
const i = this.originObject3D, { startPoint: s, plane: o } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
@@ -47978,7 +47998,7 @@ class Y6 extends Kr {
|
|
|
47978
47998
|
const w = new Ae().subVectors(r[1], r[0]).length() / u.length(), E = new Ae().subVectors(r[3], r[0]).length() / f.length(), k = new Ae(w, E, 1), L = new P.Matrix4().scale(k);
|
|
47979
47999
|
i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(L) : i.scale.applyMatrix4(L), s.position.copy(a);
|
|
47980
48000
|
const D = new Ae().addVectors(r[0], r[2]).divideScalar(2), j = new Ae().subVectors(D, l), z = new P.Matrix4().setPosition(j);
|
|
47981
|
-
i.applyMatrix4(z), (
|
|
48001
|
+
i.applyMatrix4(z), (V = this.helperObject3D.css3DInstance) == null || V.css3DObject.applyMatrix4(z), (b = this.helperObject3D.plane) == null || b.applyMatrix4(z), this.internalHooks.emit("applyObjectScale", { matrix: L }), this.internalHooks.emit("applyObjectPosition", { matrix: z }), this.render();
|
|
47982
48002
|
}
|
|
47983
48003
|
dragEnd() {
|
|
47984
48004
|
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
|
|
@@ -48356,8 +48376,8 @@ class vv extends us {
|
|
|
48356
48376
|
return ex();
|
|
48357
48377
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
48358
48378
|
return ix();
|
|
48359
|
-
const s =
|
|
48360
|
-
this.state =
|
|
48379
|
+
const s = B({}, this.state);
|
|
48380
|
+
this.state = B(B({}, this.state), e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: s });
|
|
48361
48381
|
}
|
|
48362
48382
|
getObject3DHelper(e) {
|
|
48363
48383
|
return this.objectHelperMap.get(e);
|
|
@@ -48379,7 +48399,7 @@ class vv extends us {
|
|
|
48379
48399
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
48380
48400
|
return;
|
|
48381
48401
|
}
|
|
48382
|
-
const s = new Q6(), o = [], r = (w = this.five.getElement()) == null ? void 0 : w.parentElement, a = this.five.camera, c =
|
|
48402
|
+
const s = new Q6(), o = [], r = (w = this.five.getElement()) == null ? void 0 : w.parentElement, a = this.five.camera, c = B(B({}, {
|
|
48383
48403
|
moveHelper: !0,
|
|
48384
48404
|
rotateHelper: !0,
|
|
48385
48405
|
scaleHelper: !0,
|
|
@@ -48390,7 +48410,7 @@ class vv extends us {
|
|
|
48390
48410
|
return typeof E == "boolean" ? E : E.enable;
|
|
48391
48411
|
};
|
|
48392
48412
|
if (A(h)) {
|
|
48393
|
-
const E =
|
|
48413
|
+
const E = B(B({}, this.getConfig(c.moveHelper)), c), k = new S6(e, B({}, E)), L = new ur(
|
|
48394
48414
|
this.five,
|
|
48395
48415
|
v,
|
|
48396
48416
|
H6,
|
|
@@ -48403,7 +48423,7 @@ class vv extends us {
|
|
|
48403
48423
|
s.addControllers({ moveController: L.helperController }), o.push(() => L.dispose());
|
|
48404
48424
|
}
|
|
48405
48425
|
if (A(u)) {
|
|
48406
|
-
const E =
|
|
48426
|
+
const E = B(B({}, this.getConfig(c.rotateHelper)), c), k = new L6(e, B({ container: r }, E)), L = new ur(
|
|
48407
48427
|
this.five,
|
|
48408
48428
|
v,
|
|
48409
48429
|
X6,
|
|
@@ -48452,7 +48472,7 @@ class vv extends us {
|
|
|
48452
48472
|
e.isCSS3DObject && (this.css3DObjectModeMap.set(e, e.mode), e.mode = "behind");
|
|
48453
48473
|
});
|
|
48454
48474
|
} else {
|
|
48455
|
-
const E =
|
|
48475
|
+
const E = B(B({}, this.getConfig(c.scaleHelper)), c), k = new J6(e, E), L = new ur(
|
|
48456
48476
|
this.five,
|
|
48457
48477
|
v,
|
|
48458
48478
|
$6,
|
|
@@ -48845,7 +48865,7 @@ class rx extends us {
|
|
|
48845
48865
|
o.video_list.forEach((l) => {
|
|
48846
48866
|
this.controllerMap.set(
|
|
48847
48867
|
l.render_id,
|
|
48848
|
-
new dm(this.five, ce(
|
|
48868
|
+
new dm(this.five, ce(B({}, l), {
|
|
48849
48869
|
fiveUtil: this.fiveUtil,
|
|
48850
48870
|
panoIndex: r,
|
|
48851
48871
|
renderID: a,
|
|
@@ -48924,7 +48944,7 @@ class rx extends us {
|
|
|
48924
48944
|
const o = s.render_id;
|
|
48925
48945
|
this.controllerMap.set(
|
|
48926
48946
|
s.render_id,
|
|
48927
|
-
new dm(this.five, ce(
|
|
48947
|
+
new dm(this.five, ce(B({}, s), {
|
|
48928
48948
|
fiveUtil: this.fiveUtil,
|
|
48929
48949
|
panoIndex: e,
|
|
48930
48950
|
renderID: o,
|
|
@@ -49122,7 +49142,7 @@ class mo extends P.Mesh {
|
|
|
49122
49142
|
d(this, "opacityAnime");
|
|
49123
49143
|
/** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
|
|
49124
49144
|
d(this, "uPreMeter", 1);
|
|
49125
|
-
e.geometryConfig && (this.geometryConfig =
|
|
49145
|
+
e.geometryConfig && (this.geometryConfig = B(B({}, this.geometryConfig), e.geometryConfig)), this.customID = e.id || this.uuid, this.pathPoints = e.path, this.path = mo.calculatePath(e.path.map((l) => new P.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = mo.formatTexture(e.texture);
|
|
49126
49146
|
const { radius: s, tubularSegments: o, radialSegments: r } = this.geometryConfig, a = mo.formatTexture(e.texture);
|
|
49127
49147
|
this.geometry = mo.formatGeometryUV(
|
|
49128
49148
|
new P.TubeBufferGeometry(this.path, o, s, r),
|
|
@@ -49408,7 +49428,7 @@ let Px = class extends kn {
|
|
|
49408
49428
|
return ie(this, arguments, function* (e = {}) {
|
|
49409
49429
|
if (this.state.visible)
|
|
49410
49430
|
return;
|
|
49411
|
-
const i =
|
|
49431
|
+
const i = B({
|
|
49412
49432
|
userAction: !0,
|
|
49413
49433
|
anime: { duration: 500 }
|
|
49414
49434
|
}, e);
|
|
@@ -49425,7 +49445,7 @@ let Px = class extends kn {
|
|
|
49425
49445
|
return ie(this, arguments, function* (e = {}) {
|
|
49426
49446
|
if (this.state.visible === !1)
|
|
49427
49447
|
return;
|
|
49428
|
-
const i =
|
|
49448
|
+
const i = B({
|
|
49429
49449
|
userAction: !0,
|
|
49430
49450
|
anime: { duration: 500 }
|
|
49431
49451
|
}, e);
|
|
@@ -49531,7 +49551,7 @@ let Px = class extends kn {
|
|
|
49531
49551
|
}
|
|
49532
49552
|
updateState(e, i) {
|
|
49533
49553
|
const s = this.state;
|
|
49534
|
-
this.state =
|
|
49554
|
+
this.state = B(B({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
49535
49555
|
}
|
|
49536
49556
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
49537
49557
|
loadPipeTexture(e) {
|
|
@@ -49697,7 +49717,7 @@ function Ex(n) {
|
|
|
49697
49717
|
}
|
|
49698
49718
|
function Mx(n, t, e) {
|
|
49699
49719
|
let i, s, o, r, a, l, c, h, u, { content: f } = t, { five: m = void 0 } = t, { visible: p = !0 } = t, { opacity: g = 1 } = t, { zIndex: v = 0 } = t, { transform: A = void 0 } = t, { onClick: w = () => {
|
|
49700
|
-
} } = t, { rendererIfNeed: E = void 0 } = t, { rendererData: k = void 0 } = t, { fontSize: L } = t, D, j, z,
|
|
49720
|
+
} } = t, { rendererIfNeed: E = void 0 } = t, { rendererData: k = void 0 } = t, { fontSize: L } = t, D, j, z, V;
|
|
49701
49721
|
const b = (S) => {
|
|
49702
49722
|
if (m.state.mode !== "Panorama") {
|
|
49703
49723
|
const _ = -(10 + 54 * (1 - xl(S.latitude) / 90)), q = _ + h, ee = q >= 0 ? 0 : -q / -u;
|
|
@@ -49705,9 +49725,9 @@ function Mx(n, t, e) {
|
|
|
49705
49725
|
}
|
|
49706
49726
|
};
|
|
49707
49727
|
Lt(() => {
|
|
49708
|
-
D && typeof E == "function" && (
|
|
49728
|
+
D && typeof E == "function" && (V = E(D, k)), m && (b(m.camera.pose), m.on("cameraUpdate", b));
|
|
49709
49729
|
}), ri(() => {
|
|
49710
|
-
|
|
49730
|
+
V == null || V(), m == null || m.off("cameraUpdate", b);
|
|
49711
49731
|
});
|
|
49712
49732
|
function C(S) {
|
|
49713
49733
|
qe[S ? "unshift" : "push"](() => {
|
|
@@ -50154,14 +50174,14 @@ let Dx = class extends kn {
|
|
|
50154
50174
|
visible: !0
|
|
50155
50175
|
};
|
|
50156
50176
|
this.state = Object.assign(s, i == null ? void 0 : i.initialState);
|
|
50157
|
-
const o =
|
|
50177
|
+
const o = B({
|
|
50158
50178
|
modelDepthTest: !0
|
|
50159
50179
|
}, i == null ? void 0 : i.config);
|
|
50160
50180
|
this._config = o, this.modelGroup = new P.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
|
|
50161
50181
|
}
|
|
50162
50182
|
/** 插件配置项 */
|
|
50163
50183
|
get config() {
|
|
50164
|
-
return
|
|
50184
|
+
return B({}, this._config);
|
|
50165
50185
|
}
|
|
50166
50186
|
/** 是否已经被销毁 */
|
|
50167
50187
|
get disposed() {
|
|
@@ -50213,7 +50233,7 @@ let Dx = class extends kn {
|
|
|
50213
50233
|
return Promise.resolve();
|
|
50214
50234
|
if (this.disposed)
|
|
50215
50235
|
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
50216
|
-
const i =
|
|
50236
|
+
const i = B({ userAction: !0 }, e);
|
|
50217
50237
|
this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
|
|
50218
50238
|
});
|
|
50219
50239
|
}
|
|
@@ -50225,7 +50245,7 @@ let Dx = class extends kn {
|
|
|
50225
50245
|
return ie(this, null, function* () {
|
|
50226
50246
|
if (this.state.visible === !1)
|
|
50227
50247
|
return;
|
|
50228
|
-
const i =
|
|
50248
|
+
const i = B({ userAction: !0 }, e);
|
|
50229
50249
|
this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
|
|
50230
50250
|
});
|
|
50231
50251
|
}
|
|
@@ -50284,7 +50304,7 @@ let Dx = class extends kn {
|
|
|
50284
50304
|
*/
|
|
50285
50305
|
updateConfig(e, i = {}) {
|
|
50286
50306
|
var r;
|
|
50287
|
-
const s = this.config, o =
|
|
50307
|
+
const s = this.config, o = B(B({}, s), e);
|
|
50288
50308
|
this._config = o, this.hooks.emit("configChange", { prevConfig: s, config: o, userAction: (r = i.userAction) != null ? r : !0 });
|
|
50289
50309
|
}
|
|
50290
50310
|
/** 根据 ID 获取标注 */
|
|
@@ -50298,9 +50318,9 @@ let Dx = class extends kn {
|
|
|
50298
50318
|
return i(e) ? {
|
|
50299
50319
|
list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
|
|
50300
50320
|
const o = new P.Shape(), r = s.object_data.points[0];
|
|
50301
|
-
return o.moveTo(r[0], r[2]), s.object_data.points.slice(1).forEach((l) => o.lineTo(l[0], l[2])), o.lineTo(r[0], r[2]), ce(
|
|
50321
|
+
return o.moveTo(r[0], r[2]), s.object_data.points.slice(1).forEach((l) => o.lineTo(l[0], l[2])), o.lineTo(r[0], r[2]), ce(B({}, s), {
|
|
50302
50322
|
floor_index: s.object_data.floorIndex,
|
|
50303
|
-
object_data: ce(
|
|
50323
|
+
object_data: ce(B({}, s.object_data), {
|
|
50304
50324
|
bottom_y: r[1] + s.object_data.fixedY,
|
|
50305
50325
|
shape: o.toJSON(),
|
|
50306
50326
|
height: s.object_data.height + s.object_data.fixedHeight
|
|
@@ -50324,7 +50344,7 @@ let Dx = class extends kn {
|
|
|
50324
50344
|
}
|
|
50325
50345
|
updateState(e, i) {
|
|
50326
50346
|
const s = this.state;
|
|
50327
|
-
this.state =
|
|
50347
|
+
this.state = B(B({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
50328
50348
|
}
|
|
50329
50349
|
_enable(e) {
|
|
50330
50350
|
this.hooks.emit("enable", { userAction: e.userAction }), this.five.scene.add(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
|
|
@@ -50418,7 +50438,7 @@ class Tx extends us {
|
|
|
50418
50438
|
visible: !0
|
|
50419
50439
|
};
|
|
50420
50440
|
this.state = Object.assign(s, i == null ? void 0 : i.initialState);
|
|
50421
|
-
const o =
|
|
50441
|
+
const o = B({
|
|
50422
50442
|
width: 1.4,
|
|
50423
50443
|
yOffset: 0.01,
|
|
50424
50444
|
yRotate: 0,
|
|
@@ -50431,7 +50451,7 @@ class Tx extends us {
|
|
|
50431
50451
|
}
|
|
50432
50452
|
/** 插件配置项 */
|
|
50433
50453
|
get config() {
|
|
50434
|
-
return
|
|
50454
|
+
return B({}, this._config);
|
|
50435
50455
|
}
|
|
50436
50456
|
/** 是否已经被销毁 */
|
|
50437
50457
|
get disposed() {
|
|
@@ -50469,7 +50489,7 @@ class Tx extends us {
|
|
|
50469
50489
|
return Promise.resolve();
|
|
50470
50490
|
if (this.disposed)
|
|
50471
50491
|
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
50472
|
-
const i =
|
|
50492
|
+
const i = B({ userAction: !0 }, e);
|
|
50473
50493
|
this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
|
|
50474
50494
|
});
|
|
50475
50495
|
}
|
|
@@ -50481,7 +50501,7 @@ class Tx extends us {
|
|
|
50481
50501
|
return ie(this, null, function* () {
|
|
50482
50502
|
if (this.state.visible === !1)
|
|
50483
50503
|
return;
|
|
50484
|
-
const i =
|
|
50504
|
+
const i = B({ userAction: !0 }, e);
|
|
50485
50505
|
this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
|
|
50486
50506
|
});
|
|
50487
50507
|
}
|
|
@@ -50506,7 +50526,7 @@ class Tx extends us {
|
|
|
50506
50526
|
*/
|
|
50507
50527
|
updateConfig(e, i = {}) {
|
|
50508
50528
|
var r;
|
|
50509
|
-
const s = this.config, o =
|
|
50529
|
+
const s = this.config, o = B(B({}, s), e);
|
|
50510
50530
|
this._config = o, s.imageURL !== o.imageURL && this.reloadTexture(o.imageURL), s.yOffset !== o.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), s.yRotate !== o.yRotate && this.updateMeshQuaternion(o.yRotate), s.width !== o.width && (this.mesh.geometry = new P.PlaneBufferGeometry(o.width, o.width)), this.hooks.emit("configChange", { prevConfig: s, config: o, userAction: (r = i.userAction) != null ? r : !0 });
|
|
50511
50531
|
}
|
|
50512
50532
|
/** 问什么看不到模型 */
|
|
@@ -50522,7 +50542,7 @@ class Tx extends us {
|
|
|
50522
50542
|
}
|
|
50523
50543
|
updateState(e, i) {
|
|
50524
50544
|
const s = this.state;
|
|
50525
|
-
this.state =
|
|
50545
|
+
this.state = B(B({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
50526
50546
|
}
|
|
50527
50547
|
/** 根据各种条件更新 Mesh 的可见性 */
|
|
50528
50548
|
updateMeshVisible() {
|
|
@@ -50601,7 +50621,7 @@ class Lx {
|
|
|
50601
50621
|
return this._pointSelector;
|
|
50602
50622
|
const t = (i = this.config) == null ? void 0 : i.magnifier;
|
|
50603
50623
|
let e = t === null || t === !1 ? { magnifier: null } : { magnifierParams: t };
|
|
50604
|
-
return (s = this.config) != null && s.hideCursorCircle && (e = ce(
|
|
50624
|
+
return (s = this.config) != null && s.hideCursorCircle && (e = ce(B({}, e), { pointHelper: null })), this._pointSelector = new pl(this.five, {
|
|
50605
50625
|
mode: "cursor",
|
|
50606
50626
|
helper: e
|
|
50607
50627
|
}), this._pointSelector;
|
|
@@ -50687,7 +50707,7 @@ class Pv extends fi {
|
|
|
50687
50707
|
if (r !== 0 && a === void 0)
|
|
50688
50708
|
return;
|
|
50689
50709
|
const l = (c = this.lines[r]) != null ? c : (() => {
|
|
50690
|
-
const h = new _r(ce(
|
|
50710
|
+
const h = new _r(ce(B({}, this.style), {
|
|
50691
50711
|
pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
|
|
50692
50712
|
}));
|
|
50693
50713
|
return this.lines[r] = h, this.add(h), h;
|
|
@@ -50696,7 +50716,7 @@ class Pv extends fi {
|
|
|
50696
50716
|
}), s.length === 0 ? (this.lines.forEach((o) => o.removeFromParent()), this.lines = []) : s.length === 1 || this.lines.length > s.length - 1 && this.lines.splice(s.length - 1).forEach((o) => o.removeFromParent());
|
|
50697
50717
|
}
|
|
50698
50718
|
setStyle(e) {
|
|
50699
|
-
this.paramsStyle =
|
|
50719
|
+
this.paramsStyle = B(B({}, this.paramsStyle), e), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
|
|
50700
50720
|
}
|
|
50701
50721
|
highlight() {
|
|
50702
50722
|
this.lines.forEach((e) => e.highlight());
|
|
@@ -50707,13 +50727,13 @@ class Pv extends fi {
|
|
|
50707
50727
|
}
|
|
50708
50728
|
class Fs extends Pv {
|
|
50709
50729
|
constructor(...e) {
|
|
50710
|
-
super(ce(
|
|
50730
|
+
super(ce(B({}, e[0]), { withDots: !1 }));
|
|
50711
50731
|
d(this, "name", "PolylineMesh");
|
|
50712
50732
|
}
|
|
50713
50733
|
}
|
|
50714
50734
|
class $n extends Pv {
|
|
50715
50735
|
constructor(...e) {
|
|
50716
|
-
super(ce(
|
|
50736
|
+
super(ce(B({}, e[0]), { withDots: !0 }));
|
|
50717
50737
|
d(this, "name", "PolylineWithDotsMesh");
|
|
50718
50738
|
}
|
|
50719
50739
|
}
|
|
@@ -50743,7 +50763,7 @@ class Fi extends fi {
|
|
|
50743
50763
|
const s = i != null ? i : this;
|
|
50744
50764
|
return s.updateMatrixWorld(), ob(s, e);
|
|
50745
50765
|
});
|
|
50746
|
-
e != null && e.id && (this.uuid = e.id), this.config =
|
|
50766
|
+
e != null && e.id && (this.uuid = e.id), this.config = B({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, i), e && (Fe((s = this.config) == null ? void 0 : s.occlusionMode) && (e.style = ce(B({}, e.style), { occlusionMode: this.config.occlusionMode })), Fe((o = this.config) == null ? void 0 : o.occlusionVisibility) && (e.style = ce(B({}, e.style), { occlusionVisibility: this.config.occlusionVisibility }))), ct("esc", () => {
|
|
50747
50767
|
this.stopCreating();
|
|
50748
50768
|
}), this.config.defaultAction && (ct("backspace, delete", () => {
|
|
50749
50769
|
this.selected && this.delete();
|
|
@@ -50882,7 +50902,7 @@ class $r extends Vl {
|
|
|
50882
50902
|
enable() {
|
|
50883
50903
|
super.enable();
|
|
50884
50904
|
const e = typeof this.objectHelperConfig == "function" ? this.objectHelperConfig() : this.objectHelperConfig;
|
|
50885
|
-
lt.modules.object3DHelper.addObject3DHelper(this.originObject,
|
|
50905
|
+
lt.modules.object3DHelper.addObject3DHelper(this.originObject, B({ positionFrom: "boundingBox" }, e));
|
|
50886
50906
|
const i = lt.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
|
|
50887
50907
|
i.hooks.on("move", this.onObjectUpdate), i.hooks.on("rotate", this.onObjectUpdate), i.hooks.on("scale", this.onObjectUpdate);
|
|
50888
50908
|
}
|
|
@@ -50958,13 +50978,13 @@ class mm extends Fi {
|
|
|
50958
50978
|
d(this, "polyLineMesh");
|
|
50959
50979
|
d(this, "_editor");
|
|
50960
50980
|
d(this, "creatingObject");
|
|
50961
|
-
e && (this.polyLineMesh = new $n(
|
|
50981
|
+
e && (this.polyLineMesh = new $n(B(B({}, e.style), e)), this.add(this.polyLineMesh));
|
|
50962
50982
|
}
|
|
50963
50983
|
get editor() {
|
|
50964
50984
|
return this._editor || (this._editor = new jx(this)), this._editor;
|
|
50965
50985
|
}
|
|
50966
50986
|
get data() {
|
|
50967
|
-
return ce(
|
|
50987
|
+
return ce(B({}, this.baseData), {
|
|
50968
50988
|
points: oi(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
50969
50989
|
style: {
|
|
50970
50990
|
lineColor: new P.Color(this.polyLineMesh.lineColor).getHex(),
|
|
@@ -51015,7 +51035,7 @@ function Rx(n, t, e) {
|
|
|
51015
51035
|
return;
|
|
51016
51036
|
const { promise: s, resolve: o, reject: r } = Gs(), a = (L = e == null ? void 0 : e.limit) != null ? L : "none", l = new Fs(n.style);
|
|
51017
51037
|
i.add(l);
|
|
51018
|
-
const c = new Fs(ce(
|
|
51038
|
+
const c = new Fs(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
51019
51039
|
i.add(c), t.enable();
|
|
51020
51040
|
const h = [];
|
|
51021
51041
|
let u, f, m;
|
|
@@ -51070,13 +51090,13 @@ class vm extends Fi {
|
|
|
51070
51090
|
d(this, "type", "Point");
|
|
51071
51091
|
d(this, "pointMesh");
|
|
51072
51092
|
d(this, "_editor");
|
|
51073
|
-
e && (this.pointMesh = new Cn(
|
|
51093
|
+
e && (this.pointMesh = new Cn(B(B({}, e.style), e)), this.add(this.pointMesh));
|
|
51074
51094
|
}
|
|
51075
51095
|
get editor() {
|
|
51076
51096
|
return this._editor || (this._editor = new _x(this)), this._editor;
|
|
51077
51097
|
}
|
|
51078
51098
|
get data() {
|
|
51079
|
-
return ce(
|
|
51099
|
+
return ce(B({}, this.baseData), {
|
|
51080
51100
|
point: oi(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
51081
51101
|
style: {
|
|
51082
51102
|
color: this.pointMesh.color.getHex(),
|
|
@@ -51136,7 +51156,7 @@ class dh extends Uo {
|
|
|
51136
51156
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
51137
51157
|
}
|
|
51138
51158
|
get style() {
|
|
51139
|
-
return ce(
|
|
51159
|
+
return ce(B({}, super.style), {
|
|
51140
51160
|
lineWidth: this.lineWidth,
|
|
51141
51161
|
lineColor: this.lineColor
|
|
51142
51162
|
});
|
|
@@ -51153,10 +51173,10 @@ class dh extends Uo {
|
|
|
51153
51173
|
}), !1;
|
|
51154
51174
|
}
|
|
51155
51175
|
setPoints(e, i) {
|
|
51156
|
-
super.setPoints(e,
|
|
51176
|
+
super.setPoints(e, B({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, B({ closed: !0 }, i)), this.addIfNotExists(this.line));
|
|
51157
51177
|
}
|
|
51158
51178
|
setStyle(e) {
|
|
51159
|
-
super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(ce(
|
|
51179
|
+
super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(ce(B({}, e), {
|
|
51160
51180
|
// 强制设置line的lineOpacity
|
|
51161
51181
|
lineOpacity: e.lineOpacity
|
|
51162
51182
|
})) : this.line.setStyle(e), this.needsRender = !0;
|
|
@@ -51195,13 +51215,13 @@ class Am extends Fi {
|
|
|
51195
51215
|
d(this, "areaMesh");
|
|
51196
51216
|
d(this, "_editor");
|
|
51197
51217
|
d(this, "creatingObject");
|
|
51198
|
-
e && (this.areaMesh = new fh(
|
|
51218
|
+
e && (this.areaMesh = new fh(B(B({}, e.style), e)), this.add(this.areaMesh));
|
|
51199
51219
|
}
|
|
51200
51220
|
get editor() {
|
|
51201
51221
|
return this._editor || (this._editor = new Bx(this)), this._editor;
|
|
51202
51222
|
}
|
|
51203
51223
|
get data() {
|
|
51204
|
-
return this.updateMatrixWorld(), ce(
|
|
51224
|
+
return this.updateMatrixWorld(), ce(B({}, this.baseData), {
|
|
51205
51225
|
points: oi(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
51206
51226
|
style: {
|
|
51207
51227
|
color: this.areaMesh.color.getHex(),
|
|
@@ -51261,7 +51281,7 @@ function Ou(n, t, e) {
|
|
|
51261
51281
|
l && c && c.model && c.model.bounding && typeof ((se = c.model.bounding.max) == null ? void 0 : se.y) == "number" && (h = c.model.bounding.max.y + 1);
|
|
51262
51282
|
const u = new Fs(n.style);
|
|
51263
51283
|
r == null || r.add(u);
|
|
51264
|
-
const f = new Fs(ce(
|
|
51284
|
+
const f = new Fs(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
51265
51285
|
r == null || r.add(f);
|
|
51266
51286
|
let m = [];
|
|
51267
51287
|
function p() {
|
|
@@ -51273,7 +51293,7 @@ function Ou(n, t, e) {
|
|
|
51273
51293
|
const te = (Se = (le = n.line) == null ? void 0 : le.style) != null ? Se : n.style;
|
|
51274
51294
|
m = v.map((ue, Te) => {
|
|
51275
51295
|
var he;
|
|
51276
|
-
const fe = new Cn(ce(
|
|
51296
|
+
const fe = new Cn(ce(B({}, te), {
|
|
51277
51297
|
color: (he = te.pointColor) != null ? he : te.lineColor,
|
|
51278
51298
|
tip: void 0,
|
|
51279
51299
|
point: ue
|
|
@@ -51293,7 +51313,7 @@ function Ou(n, t, e) {
|
|
|
51293
51313
|
const L = [], D = () => v.length > 0, j = () => L.length > 0, z = () => {
|
|
51294
51314
|
var te;
|
|
51295
51315
|
D() && (L.push(v.pop()), C(k), p(), (te = e == null ? void 0 : e.onUndo) == null || te.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
51296
|
-
},
|
|
51316
|
+
}, V = () => {
|
|
51297
51317
|
var te;
|
|
51298
51318
|
j() && (v.push(L.pop()), C(k), p(), (te = e == null ? void 0 : e.onRedo) == null || te.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
51299
51319
|
}, b = (te) => {
|
|
@@ -51342,7 +51362,7 @@ function Ou(n, t, e) {
|
|
|
51342
51362
|
canUndo: D,
|
|
51343
51363
|
canRedo: j,
|
|
51344
51364
|
undo: z,
|
|
51345
|
-
redo:
|
|
51365
|
+
redo: V
|
|
51346
51366
|
};
|
|
51347
51367
|
}
|
|
51348
51368
|
function Vx(n) {
|
|
@@ -51485,7 +51505,7 @@ class zs extends fi {
|
|
|
51485
51505
|
return this.edgeMesh.color;
|
|
51486
51506
|
}
|
|
51487
51507
|
setStyle(e = {}) {
|
|
51488
|
-
this.paramStyle =
|
|
51508
|
+
this.paramStyle = B(B({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
|
|
51489
51509
|
}
|
|
51490
51510
|
/**
|
|
51491
51511
|
* Check if the prism is a box (has 4 bottom positions)
|
|
@@ -51628,8 +51648,8 @@ class zs extends fi {
|
|
|
51628
51648
|
j > 1 && (j = 1);
|
|
51629
51649
|
let z = Math.abs((j - 0.5) * 2);
|
|
51630
51650
|
z = z * 2 - 0.5;
|
|
51631
|
-
for (const
|
|
51632
|
-
|
|
51651
|
+
for (const V of m.material)
|
|
51652
|
+
V.uniforms.progress.value = z;
|
|
51633
51653
|
j === 1 && (k(), m.visible = !1, this.playEaseInAnimation(e, () => {
|
|
51634
51654
|
this.activeAnimations.delete(e), i();
|
|
51635
51655
|
})), this.five.needsRender = !0;
|
|
@@ -51716,13 +51736,13 @@ class bm extends Fi {
|
|
|
51716
51736
|
d(this, "type", "Prism");
|
|
51717
51737
|
d(this, "prismMesh");
|
|
51718
51738
|
d(this, "_editor");
|
|
51719
|
-
e && (this.prismMesh = new zs(
|
|
51739
|
+
e && (this.prismMesh = new zs(B(B({}, e.style), e)), this.add(this.prismMesh));
|
|
51720
51740
|
}
|
|
51721
51741
|
get editor() {
|
|
51722
51742
|
return this._editor || (this._editor = new Iv(this.prismMesh)), this._editor;
|
|
51723
51743
|
}
|
|
51724
51744
|
get data() {
|
|
51725
|
-
return ce(
|
|
51745
|
+
return ce(B({}, this.baseData), {
|
|
51726
51746
|
points: oi(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
51727
51747
|
heightPoint: oi(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
51728
51748
|
style: {
|
|
@@ -51891,7 +51911,7 @@ class hl extends ju {
|
|
|
51891
51911
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
51892
51912
|
}
|
|
51893
51913
|
get style() {
|
|
51894
|
-
return
|
|
51914
|
+
return B(B({}, super.style), this.line.style);
|
|
51895
51915
|
}
|
|
51896
51916
|
get lineWidth() {
|
|
51897
51917
|
return this.line.lineWidth;
|
|
@@ -51922,13 +51942,13 @@ class ym extends Fi {
|
|
|
51922
51942
|
d(this, "type", "Rectangle");
|
|
51923
51943
|
d(this, "rectangleMesh");
|
|
51924
51944
|
d(this, "_editor");
|
|
51925
|
-
e && (this.rectangleMesh = new hl(
|
|
51945
|
+
e && (this.rectangleMesh = new hl(B(B({}, e.style), e)), this.add(this.rectangleMesh));
|
|
51926
51946
|
}
|
|
51927
51947
|
get editor() {
|
|
51928
51948
|
return this._editor || (this._editor = new Mv(this.rectangleMesh)), this._editor;
|
|
51929
51949
|
}
|
|
51930
51950
|
get data() {
|
|
51931
|
-
return ce(
|
|
51951
|
+
return ce(B({}, this.baseData), {
|
|
51932
51952
|
points: oi(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
51933
51953
|
style: {
|
|
51934
51954
|
color: this.rectangleMesh.color.getHex(),
|
|
@@ -51979,7 +51999,7 @@ function Wx(n, t, e) {
|
|
|
51979
51999
|
const { promise: i, reject: s, resolve: o } = Gs(), r = n.parent;
|
|
51980
52000
|
if (!r)
|
|
51981
52001
|
return s(new Error("No container"));
|
|
51982
|
-
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(ce(
|
|
52002
|
+
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(ce(B({}, n.style), { dashed: !0 })), c = new $n(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new $n(ce(B({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
51983
52003
|
r.add(l, h, c), t.enable();
|
|
51984
52004
|
const u = [];
|
|
51985
52005
|
let f = new P.Vector3(), m = new P.Vector3();
|
|
@@ -51995,13 +52015,13 @@ function Wx(n, t, e) {
|
|
|
51995
52015
|
return;
|
|
51996
52016
|
}
|
|
51997
52017
|
if (u.length === 1 && a === "y") {
|
|
51998
|
-
const
|
|
51999
|
-
n.setPoints([u[0],
|
|
52018
|
+
const V = new P.Line3(new P.Vector3(0, 1, 0).add(u[0]), new P.Vector3(0, -1, 0).add(u[0])).closestPointToPoint(k.point, !1, new P.Vector3());
|
|
52019
|
+
n.setPoints([u[0], V, k.point]);
|
|
52000
52020
|
return;
|
|
52001
52021
|
}
|
|
52002
52022
|
if (u.length === 1 && a === "xoz") {
|
|
52003
|
-
const z = new P.Line3(new P.Vector3(1, 0, 0).add(u[0]), new P.Vector3(-1, 0, 0).add(u[0])),
|
|
52004
|
-
n.setPoints([u[0], b,
|
|
52023
|
+
const z = new P.Line3(new P.Vector3(1, 0, 0).add(u[0]), new P.Vector3(-1, 0, 0).add(u[0])), V = k.raycaster.ray.intersectPlane(p, new P.Vector3()), b = z.closestPointToPoint(V, !1, new P.Vector3());
|
|
52024
|
+
n.setPoints([u[0], b, V]);
|
|
52005
52025
|
return;
|
|
52006
52026
|
}
|
|
52007
52027
|
if (u.length === 1 && a === "none") {
|
|
@@ -52010,8 +52030,8 @@ function Wx(n, t, e) {
|
|
|
52010
52030
|
}
|
|
52011
52031
|
if (u.length === 2 && a === "none") {
|
|
52012
52032
|
r.remove(l);
|
|
52013
|
-
const z = k.raycaster.ray.intersectPlane(p, new P.Vector3()),
|
|
52014
|
-
f = new P.Vector3().addVectors(b, C.multiplyScalar(
|
|
52033
|
+
const z = k.raycaster.ray.intersectPlane(p, new P.Vector3()), V = u[0].distanceTo(u[1]) / 2, b = new P.Vector3().lerpVectors(u[0], u[1], 0.5), C = new P.Vector3().subVectors(z, b).normalize();
|
|
52034
|
+
f = new P.Vector3().addVectors(b, C.multiplyScalar(V));
|
|
52015
52035
|
const I = [u[0], f, u[1]], M = kv(I, lt.modules.five.camera.position);
|
|
52016
52036
|
n.setPoints(M);
|
|
52017
52037
|
return;
|
|
@@ -52028,7 +52048,7 @@ function Ux(n, t, e) {
|
|
|
52028
52048
|
const { promise: i, reject: s, resolve: o } = Gs(), r = n.parent;
|
|
52029
52049
|
if (!r)
|
|
52030
52050
|
return s(new Error("No container"));
|
|
52031
|
-
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(ce(
|
|
52051
|
+
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(ce(B({}, n.style), { dashed: !0 })), c = new $n(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new $n(ce(B({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
52032
52052
|
r.add(l, h, c), t.enable(), t.setAdherePoints(Gx(t.five, { excludes: [n] }));
|
|
52033
52053
|
const u = [];
|
|
52034
52054
|
let f = new P.Vector3(), m = new P.Vector3();
|
|
@@ -52042,7 +52062,7 @@ function Ux(n, t, e) {
|
|
|
52042
52062
|
} else
|
|
52043
52063
|
u.length === 3 && (A(), o());
|
|
52044
52064
|
}, v = (k) => {
|
|
52045
|
-
var D, j, z,
|
|
52065
|
+
var D, j, z, V;
|
|
52046
52066
|
if (!k || !(k != null && k.raycaster))
|
|
52047
52067
|
return;
|
|
52048
52068
|
const L = (D = u.at(-1)) == null ? void 0 : D.clone();
|
|
@@ -52059,7 +52079,7 @@ function Ux(n, t, e) {
|
|
|
52059
52079
|
const S = fs([u[0], u[1], k.point]);
|
|
52060
52080
|
p.setFromNormalAndCoplanarPoint(S, u[0]);
|
|
52061
52081
|
}
|
|
52062
|
-
c.setPoints([(
|
|
52082
|
+
c.setPoints([(V = k.originalPoint) != null ? V : k.point, k.point]);
|
|
52063
52083
|
const b = new P.Vector3().crossVectors(u[0].clone().sub(u[1]), p.normal).normalize();
|
|
52064
52084
|
f = new P.Line3(u[1].clone().add(b), u[1].clone().sub(b)).closestPointToPoint(k.point, !1, new P.Vector3());
|
|
52065
52085
|
const I = [u[0], u[1], f], M = kv(I, lt.modules.five.camera.position);
|
|
@@ -52139,13 +52159,13 @@ class wm extends Fi {
|
|
|
52139
52159
|
d(this, "type", "Circle");
|
|
52140
52160
|
d(this, "circleMesh");
|
|
52141
52161
|
d(this, "_editor");
|
|
52142
|
-
e && (this.circleMesh = new Nr(
|
|
52162
|
+
e && (this.circleMesh = new Nr(B(B({}, e.style), e)), this.add(this.circleMesh));
|
|
52143
52163
|
}
|
|
52144
52164
|
get editor() {
|
|
52145
52165
|
return this._editor || (this._editor = new xv(this.circleMesh)), this._editor;
|
|
52146
52166
|
}
|
|
52147
52167
|
get data() {
|
|
52148
|
-
return ce(
|
|
52168
|
+
return ce(B({}, this.baseData), {
|
|
52149
52169
|
center: oi(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
52150
52170
|
normal: oi(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
52151
52171
|
radius: this.circleMesh.radius,
|
|
@@ -52259,7 +52279,7 @@ class ph extends fi {
|
|
|
52259
52279
|
this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: e, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
|
|
52260
52280
|
}
|
|
52261
52281
|
setStyle(e) {
|
|
52262
|
-
this.params =
|
|
52282
|
+
this.params = B(B({}, this.params), e), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
|
|
52263
52283
|
}
|
|
52264
52284
|
highlight() {
|
|
52265
52285
|
this.highlighted || (this.highlighted = !0, this.edgeMesh.highlight(), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
|
|
@@ -52324,13 +52344,13 @@ class Pm extends Fi {
|
|
|
52324
52344
|
d(this, "type", "Cylinder");
|
|
52325
52345
|
d(this, "cylinderMesh");
|
|
52326
52346
|
d(this, "_editor");
|
|
52327
|
-
e && (this.cylinderMesh = new ph(
|
|
52347
|
+
e && (this.cylinderMesh = new ph(B(B({}, e.style), e)), this.add(this.cylinderMesh));
|
|
52328
52348
|
}
|
|
52329
52349
|
get editor() {
|
|
52330
52350
|
return this._editor || (this._editor = new Tv(this.cylinderMesh)), this._editor;
|
|
52331
52351
|
}
|
|
52332
52352
|
get data() {
|
|
52333
|
-
return ce(
|
|
52353
|
+
return ce(B({}, this.baseData), {
|
|
52334
52354
|
bottomCenter: oi(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
52335
52355
|
topCenter: oi(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
52336
52356
|
radius: this.cylinderMesh.radius,
|
|
@@ -52504,13 +52524,13 @@ class Cm extends Fi {
|
|
|
52504
52524
|
d(this, "type", "Box");
|
|
52505
52525
|
d(this, "boxMesh");
|
|
52506
52526
|
d(this, "_editor");
|
|
52507
|
-
e && (this.boxMesh = new gh(
|
|
52527
|
+
e && (this.boxMesh = new gh(B(B({}, e.style), e)), this.add(this.boxMesh));
|
|
52508
52528
|
}
|
|
52509
52529
|
get editor() {
|
|
52510
52530
|
return this._editor || (this._editor = new zv(this.boxMesh)), this._editor;
|
|
52511
52531
|
}
|
|
52512
52532
|
get data() {
|
|
52513
|
-
return ce(
|
|
52533
|
+
return ce(B({}, this.baseData), {
|
|
52514
52534
|
points: oi(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
52515
52535
|
heightPoint: oi(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
52516
52536
|
style: {
|
|
@@ -52586,13 +52606,13 @@ class Im extends Fi {
|
|
|
52586
52606
|
d(this, "lineMesh");
|
|
52587
52607
|
d(this, "_editor");
|
|
52588
52608
|
d(this, "creatingObject");
|
|
52589
|
-
e && (this.lineMesh = new _r(
|
|
52609
|
+
e && (this.lineMesh = new _r(B(B({}, e.style), e)), this.add(this.lineMesh));
|
|
52590
52610
|
}
|
|
52591
52611
|
get editor() {
|
|
52592
52612
|
return this._editor || (this._editor = new Ox(this)), this._editor;
|
|
52593
52613
|
}
|
|
52594
52614
|
get data() {
|
|
52595
|
-
return ce(
|
|
52615
|
+
return ce(B({}, this.baseData), {
|
|
52596
52616
|
points: oi(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
52597
52617
|
style: {
|
|
52598
52618
|
lineColor: new P.Color(this.lineMesh.color).getHex(),
|
|
@@ -52643,7 +52663,7 @@ function jv(n, t, e) {
|
|
|
52643
52663
|
return;
|
|
52644
52664
|
const { promise: s, resolve: o, reject: r } = Gs(), a = (j = e == null ? void 0 : e.limit) != null ? j : "none", l = new wi(n.style);
|
|
52645
52665
|
i.add(l);
|
|
52646
|
-
const c = new wi(ce(
|
|
52666
|
+
const c = new wi(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
52647
52667
|
i.add(c), t.enable();
|
|
52648
52668
|
const h = [];
|
|
52649
52669
|
let u, f, m;
|
|
@@ -52655,14 +52675,14 @@ function jv(n, t, e) {
|
|
|
52655
52675
|
if (!z)
|
|
52656
52676
|
return;
|
|
52657
52677
|
p.length = 0;
|
|
52658
|
-
const
|
|
52659
|
-
h.push(
|
|
52678
|
+
const V = h.length === 0 ? z.point : u.clone();
|
|
52679
|
+
h.push(V), n.setPoints(h), h.length === 2 && (L(), o());
|
|
52660
52680
|
}, k = (z) => {
|
|
52661
|
-
const
|
|
52681
|
+
const V = () => {
|
|
52662
52682
|
l.setPoints([]), c.setPoints([]), t.pointSelectorHelper.magnifier.render();
|
|
52663
52683
|
};
|
|
52664
52684
|
if (!(h != null && h.length) || !z)
|
|
52665
|
-
return
|
|
52685
|
+
return V();
|
|
52666
52686
|
m = z;
|
|
52667
52687
|
const b = h.at(-1).clone();
|
|
52668
52688
|
a === "none" ? (u = z.point, l.setPoints([b, u])) : a === "xoz" ? (t.plane = f, f = f != null ? f : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), h[0]), u = f.projectPoint(z.point, new P.Vector3()), l.setPoints([b, u]), c.setPoints([u, z.point])) : a === "y" && (z.isVirtual ? (u = es({
|
|
@@ -52705,7 +52725,7 @@ const vo = class extends Ct {
|
|
|
52705
52725
|
var e;
|
|
52706
52726
|
console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
|
|
52707
52727
|
});
|
|
52708
|
-
this.five = e, this.theme = i, this.config =
|
|
52728
|
+
this.five = e, this.theme = i, this.config = B({
|
|
52709
52729
|
magnifier: { width: 190, height: 190, scale: 2, dragEnabled: !0 }
|
|
52710
52730
|
}, s), this.group = new fi(), this.group.name = "Sculpt", e.scene.add(this.group), vo.modules.init(e, this.config), ct("ctrl+z, command+z", this.undo), ct("ctrl+shift+z, command+shift+z", this.redo), vo.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o, origDomEvent: r }) => {
|
|
52711
52731
|
var l;
|
|
@@ -52735,8 +52755,8 @@ const vo = class extends Ct {
|
|
|
52735
52755
|
this.clear();
|
|
52736
52756
|
const s = (o = e == null ? void 0 : e.items) == null ? void 0 : o.map((r) => {
|
|
52737
52757
|
var l;
|
|
52738
|
-
const a = ce(
|
|
52739
|
-
style:
|
|
52758
|
+
const a = ce(B({}, r), {
|
|
52759
|
+
style: B(B({}, (l = this.theme) == null ? void 0 : l[r.type.toLowerCase()]), r.style)
|
|
52740
52760
|
});
|
|
52741
52761
|
return r.type === "Point" ? new vm(a, i) : r.type === "line" ? new Im(a, i) : r.type === "Polyline" ? new mm(a, i) : r.type === "Polygon" ? new Am(a, i) : r.type === "Prism" ? new bm(a, i) : r.type === "Rectangle" ? new ym(a, i) : r.type === "Circle" ? new wm(a, i) : r.type === "Cylinder" ? new Pm(a, i) : r.type === "Box" ? new Cm(a, i) : null;
|
|
52742
52762
|
});
|
|
@@ -53051,7 +53071,7 @@ const km = (n, t) => {
|
|
|
53051
53071
|
class Dc extends Bu {
|
|
53052
53072
|
constructor(...e) {
|
|
53053
53073
|
const i = e[0], s = Ns(i.model), o = new P.Vector3().lerpVectors(Yn(s, 0), Yn(s, 5), 0.5);
|
|
53054
|
-
super(ce(
|
|
53074
|
+
super(ce(B({}, i), { position: o }));
|
|
53055
53075
|
d(this, "onModelShownFloorChange", (e) => {
|
|
53056
53076
|
this.updateFiveCurrentFloorState(e), this.updateVisible();
|
|
53057
53077
|
});
|
|
@@ -53246,7 +53266,7 @@ class eS extends kn {
|
|
|
53246
53266
|
return this.items.find((i) => i.rawData.id === e);
|
|
53247
53267
|
}
|
|
53248
53268
|
registerTagRenderer(e) {
|
|
53249
|
-
this.tagRendererMap =
|
|
53269
|
+
this.tagRendererMap = B(B({}, this.tagRendererMap), e), this.updateTagRenderer();
|
|
53250
53270
|
}
|
|
53251
53271
|
hasCustomTagRenderer(e) {
|
|
53252
53272
|
return !!this.tagRendererMap[e];
|