@realsee/dnalogel 3.69.1-alpha.3 → 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 +5 -1
- package/dist/MeasurePlugin/Controller.d.ts +0 -1
- package/dist/index.cjs.js +25 -25
- package/dist/index.js +514 -554
- package/dist/index.umd.js +32 -32
- 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.d.ts +0 -1
- package/libs/MeasurePlugin/Controller.js +118 -158
- 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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Rv = Object.defineProperty, _v = Object.defineProperties;
|
|
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 ?
|
|
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)
|
|
9
9
|
for (var e of aa(t))
|
|
10
10
|
Fu.call(t, e) && Gl(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
12
|
+
}, ce = (n, t) => _v(n, Bv(t));
|
|
13
13
|
var Nn = (n, t) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var i in n)
|
|
@@ -36,14 +36,14 @@ var ie = (n, t, e) => new Promise((i, s) => {
|
|
|
36
36
|
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, r);
|
|
37
37
|
a((e = e.apply(n, t)).next());
|
|
38
38
|
});
|
|
39
|
-
import { InternalWebGLRenderer as
|
|
39
|
+
import { InternalWebGLRenderer as Vv, Camera as Hv, loadAt3d as Fv, Five as Vt, Subscribe as Vo, AnimationFrameLoop as Nv } from "@realsee/five";
|
|
40
40
|
import * as P from "three";
|
|
41
|
-
import { Vector3 as Ae, Vector2 as Ht, Object3D as Ao, Matrix4 as nt, LineSegments as
|
|
41
|
+
import { Vector3 as Ae, Vector2 as Ht, Object3D as Ao, Matrix4 as nt, LineSegments as Gv, Group as vn, Raycaster as Ho, MeshBasicMaterial as Er, Vector4 as Is, Curve as Sm, Loader as Nu, LoaderUtils as Wl, FileLoader as Wv, TextureLoader as mh, RepeatWrapping as Gu, ClampToEdgeWrapping as Wu, Texture as Uu, MeshPhongMaterial as Ul, MeshLambertMaterial as Uv, Color as Xt, sRGBEncoding as dr, EquirectangularReflectionMapping as Qv, Bone as Qu, PropertyBinding as la, OrthographicCamera as Xv, PerspectiveCamera as Yv, PointLight as Xu, MathUtils as Yi, SpotLight as Zv, DirectionalLight as qv, SkinnedMesh as Jv, Mesh as bo, LineBasicMaterial as Kv, Line as $v, Skeleton as eA, AmbientLight as tA, BufferGeometry as ca, Float32BufferAttribute as io, Uint16BufferAttribute as iA, Matrix3 as nA, BufferAttribute as sA, AnimationClip as oA, Quaternion as Es, Euler as Xn, VectorKeyframeTrack as rA, QuaternionKeyframeTrack as aA, NumberKeyframeTrack as lA, CanvasTexture as cA, AnimationMixer as hA, PlaneGeometry as uA, LinearFilter as Tc, CurvePath as dA, LineCurve3 as fA, TubeGeometry as pA, ShaderMaterial as Dm, SphereGeometry as gA, DoubleSide as Tm, RingGeometry as mA, VideoTexture as vA, SphereBufferGeometry as AA, Box3 as bA } from "three";
|
|
42
42
|
import { LineGeometry as yA, LineMaterial as wA, THREE_Line2 as PA, Line as CA } from "@realsee/five/line";
|
|
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",
|
|
@@ -1751,7 +1751,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1751
1751
|
var G = O.ownerDocument || O;
|
|
1752
1752
|
return G.defaultView || G.parentWindow || t;
|
|
1753
1753
|
}
|
|
1754
|
-
var q = /mobile|tablet|ip(ad|hone|od)|android/i, ee = "ontouchstart" in t, K = S(t, "PointerEvent") !== s, se = ee && q.test(navigator.userAgent), te = "touch",
|
|
1754
|
+
var q = /mobile|tablet|ip(ad|hone|od)|android/i, ee = "ontouchstart" in t, K = S(t, "PointerEvent") !== s, se = ee && q.test(navigator.userAgent), te = "touch", le = "pen", Se = "mouse", ue = "kinect", Te = 25, fe = 1, he = 2, Le = 4, $ = 8, Me = 1, Re = 2, ve = 4, Be = 8, de = 16, ye = Re | ve, ze = Be | de, Xe = ye | ze, Ye = ["x", "y"], at = ["clientX", "clientY"];
|
|
1755
1755
|
function Je(O, G) {
|
|
1756
1756
|
var Z = this;
|
|
1757
1757
|
this.manager = O, this.callback = G, this.element = O.element, this.target = O.options.inputTarget, this.domHandler = function(ne) {
|
|
@@ -1899,7 +1899,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1899
1899
|
pointerout: $
|
|
1900
1900
|
}, Dn = {
|
|
1901
1901
|
2: te,
|
|
1902
|
-
3:
|
|
1902
|
+
3: le,
|
|
1903
1903
|
4: Se,
|
|
1904
1904
|
5: ue
|
|
1905
1905
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
@@ -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(
|
|
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);
|
|
@@ -4117,7 +4117,7 @@ function pb() {
|
|
|
4117
4117
|
lineColor: 3407837,
|
|
4118
4118
|
lineOpacity: 0.7,
|
|
4119
4119
|
occlusionVisibility: !0
|
|
4120
|
-
}, i = new wi(
|
|
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,
|
|
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
|
|
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 =
|
|
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()
|
|
@@ -4588,7 +4588,7 @@ class pl extends Ct {
|
|
|
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,
|
|
4591
|
+
this.pointSelectorHelper = new Hm(this.five, ce(B({}, i == null ? void 0 : i.helper), {
|
|
4592
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();
|
|
@@ -4926,7 +4926,7 @@ class Zm extends P.Object3D {
|
|
|
4926
4926
|
return this.getRaycastIntersects(e)[0];
|
|
4927
4927
|
}
|
|
4928
4928
|
}
|
|
4929
|
-
class qm extends
|
|
4929
|
+
class qm extends Gv {
|
|
4930
4930
|
constructor(t, e) {
|
|
4931
4931
|
super(t, e);
|
|
4932
4932
|
}
|
|
@@ -5758,9 +5758,9 @@ function ut(n) {
|
|
|
5758
5758
|
_ = T[0];
|
|
5759
5759
|
else {
|
|
5760
5760
|
_ = M[0];
|
|
5761
|
-
for (var
|
|
5762
|
-
M[
|
|
5763
|
-
var Se = M[
|
|
5761
|
+
for (var le = 0; le < te; le++) {
|
|
5762
|
+
M[le];
|
|
5763
|
+
var Se = M[le + 1], ue = T[le];
|
|
5764
5764
|
isNaN(ue) || (Se ? _ += ue + Se : _ += ue + " ");
|
|
5765
5765
|
}
|
|
5766
5766
|
}
|
|
@@ -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
|
|
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(
|
|
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);
|
|
@@ -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,
|
|
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(),
|
|
6411
|
+
return o && c(), ce(B({}, r), { render: o ? void 0 : c });
|
|
6412
6412
|
});
|
|
6413
6413
|
this.five = e;
|
|
6414
6414
|
}
|
|
@@ -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(
|
|
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; )
|
|
@@ -7066,7 +7066,7 @@ class Gy {
|
|
|
7066
7066
|
var t;
|
|
7067
7067
|
this.stopAnimate(), this.renderer.dispose(), this.renderer.domElement.remove(), (t = this.canvasWrapper) == null || t.remove();
|
|
7068
7068
|
});
|
|
7069
|
-
this.five = t, this.params = e, this.renderer = new
|
|
7069
|
+
this.five = t, this.params = e, this.renderer = new Vv({
|
|
7070
7070
|
webgl2: !0,
|
|
7071
7071
|
pixelRatio: window.devicePixelRatio,
|
|
7072
7072
|
backgroundAlpha: 0,
|
|
@@ -7083,7 +7083,7 @@ const fS = (n, t) => {
|
|
|
7083
7083
|
lockedPanoIndex: null,
|
|
7084
7084
|
lockedLatitude: null,
|
|
7085
7085
|
lockedLongitude: null
|
|
7086
|
-
}), t == null ? void 0 : t.config), c = new P.Scene(), h = new
|
|
7086
|
+
}), t == null ? void 0 : t.config), c = new P.Scene(), h = new Hv(60);
|
|
7087
7087
|
h.near = 1, h.updateTime(Date.now());
|
|
7088
7088
|
let u = new P.Object3D(), f, m;
|
|
7089
7089
|
{
|
|
@@ -7103,7 +7103,7 @@ const fS = (n, t) => {
|
|
|
7103
7103
|
var _, q, ee, K;
|
|
7104
7104
|
if (s || !((q = (_ = n.work) == null ? void 0 : _.model) != null && q.file))
|
|
7105
7105
|
return;
|
|
7106
|
-
c.remove(u), u = yield
|
|
7106
|
+
c.remove(u), u = yield Fv(n.work.model.file, {
|
|
7107
7107
|
textureOptions: { size: 128, quality: 70 },
|
|
7108
7108
|
textureArray: (ee = n.work.model) == null ? void 0 : ee.textures,
|
|
7109
7109
|
textureBaseUri: (K = n.work.model) == null ? void 0 : K.textureBase
|
|
@@ -8610,7 +8610,7 @@ function Dw(n, t, e) {
|
|
|
8610
8610
|
}
|
|
8611
8611
|
return o.map((z) => {
|
|
8612
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
|
|
8613
|
+
return ce(B({}, z), { visible: V, transform: b, zIndex: M });
|
|
8614
8614
|
});
|
|
8615
8615
|
}
|
|
8616
8616
|
function p() {
|
|
@@ -9578,9 +9578,9 @@ function r2(n, t, e) {
|
|
|
9578
9578
|
};
|
|
9579
9579
|
}
|
|
9580
9580
|
const N = z.roomLabel, _ = N.positionInImage.x * 100 + "%", q = N.positionInImage.y * 100 + "%";
|
|
9581
|
-
let ee = 0, K = 0, se = 0, te = 0,
|
|
9581
|
+
let ee = 0, K = 0, se = 0, te = 0, le = !1;
|
|
9582
9582
|
V.subscribe(function(Le) {
|
|
9583
|
-
e(27,
|
|
9583
|
+
e(27, le = !!Le && Le.id === z.id);
|
|
9584
9584
|
});
|
|
9585
9585
|
const Se = (he) => {
|
|
9586
9586
|
e(8, se = he.detail);
|
|
@@ -9613,9 +9613,9 @@ function r2(n, t, e) {
|
|
|
9613
9613
|
2 && e(31, u = h ? T(z, h) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
|
|
9614
9614
|
35651584 | n.$$.dirty[1] & /*isAllLabelInRoom*/
|
|
9615
9615
|
1 && e(29, f = M ? !!(u != null && u(E)) : !0), n.$$.dirty[0] & /*wrapperLabelVisible, mainLabelVisible, isHovered*/
|
|
9616
|
-
1744830464 && e(15, m = f || c ||
|
|
9617
|
-
1207959552 && e(14, p = c ||
|
|
9618
|
-
671088640 && e(13, g = f ||
|
|
9616
|
+
1744830464 && e(15, m = f || c || le), n.$$.dirty[0] & /*mainLabelVisible, isHovered*/
|
|
9617
|
+
1207959552 && e(14, p = c || le), n.$$.dirty[0] & /*wrapperLabelVisible, isHovered*/
|
|
9618
|
+
671088640 && e(13, g = f || le), n.$$.dirty[0] & /*mainLabelVisible, wrapperLabelVisible*/
|
|
9619
9619
|
1610612736 && e(12, v = c && !f), n.$$.dirty[0] & /*fontConfig*/
|
|
9620
9620
|
268435456 && e(11, A = Yt((i == null ? void 0 : i.name) || 12)), n.$$.dirty[0] & /*fontConfig*/
|
|
9621
9621
|
268435456 && e(10, w = Yt((i == null ? void 0 : i.area) || 10));
|
|
@@ -9647,7 +9647,7 @@ function r2(n, t, e) {
|
|
|
9647
9647
|
C,
|
|
9648
9648
|
M,
|
|
9649
9649
|
S,
|
|
9650
|
-
|
|
9650
|
+
le,
|
|
9651
9651
|
i,
|
|
9652
9652
|
f,
|
|
9653
9653
|
c,
|
|
@@ -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) =>
|
|
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
|
}, [
|
|
@@ -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");
|
|
@@ -13111,7 +13111,7 @@ let L3 = class extends kn {
|
|
|
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 = B(B({}, s.missingFloorConfig), o.missingFloorConfig), a =
|
|
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 ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ?
|
|
13167
|
-
this.state =
|
|
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 =
|
|
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,
|
|
@@ -16117,7 +16117,7 @@ let R3 = class extends kn {
|
|
|
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 = B(B({}, s.missingFloorConfig), o.missingFloorConfig), a =
|
|
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 ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ?
|
|
16200
|
-
this.state =
|
|
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 =
|
|
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,
|
|
@@ -16368,7 +16368,7 @@ let _3 = class extends kn {
|
|
|
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 = B(B({}, s.missingFloorConfig), o.missingFloorConfig), a =
|
|
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 ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ?
|
|
16475
|
-
this.state =
|
|
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 =
|
|
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,
|
|
@@ -17408,7 +17408,7 @@ let n5 = class extends kn {
|
|
|
17408
17408
|
}
|
|
17409
17409
|
updateState(e, i) {
|
|
17410
17410
|
const s = this.state, o = e.config ? B(B({}, s.config), e.config) : s.config;
|
|
17411
|
-
this.state =
|
|
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 =
|
|
17422
|
+
const e = ce(B({}, this.state.config), {
|
|
17423
17423
|
five: this.five,
|
|
17424
17424
|
floorplanData: this.data,
|
|
17425
17425
|
visible: this.state.visible,
|
|
@@ -18057,7 +18057,7 @@ var K0 = function() {
|
|
|
18057
18057
|
i.prototype = Object.assign(Object.create(Nu.prototype), {
|
|
18058
18058
|
constructor: i,
|
|
18059
18059
|
load: function(b, C, I, M) {
|
|
18060
|
-
var S = this, T = S.path === "" ? Wl.extractUrlBase(b) : S.path, N = new
|
|
18060
|
+
var S = this, T = S.path === "" ? Wl.extractUrlBase(b) : S.path, N = new Wv(this.manager);
|
|
18061
18061
|
N.setPath(S.path), N.setResponseType("arraybuffer"), N.load(
|
|
18062
18062
|
b,
|
|
18063
18063
|
function(_) {
|
|
@@ -18234,7 +18234,7 @@ var K0 = function() {
|
|
|
18234
18234
|
N = new Ul();
|
|
18235
18235
|
break;
|
|
18236
18236
|
case "lambert":
|
|
18237
|
-
N = new
|
|
18237
|
+
N = new Uv();
|
|
18238
18238
|
break;
|
|
18239
18239
|
default:
|
|
18240
18240
|
console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.', S), N = new Ul();
|
|
@@ -18272,7 +18272,7 @@ var K0 = function() {
|
|
|
18272
18272
|
M.normalMap = S.getTexture(C, T.ID);
|
|
18273
18273
|
break;
|
|
18274
18274
|
case "ReflectionColor":
|
|
18275
|
-
M.envMap = S.getTexture(C, T.ID), M.envMap.mapping =
|
|
18275
|
+
M.envMap = S.getTexture(C, T.ID), M.envMap.mapping = Qv, M.envMap.encoding = dr;
|
|
18276
18276
|
break;
|
|
18277
18277
|
case "SpecularColor":
|
|
18278
18278
|
M.specularMap = S.getTexture(C, T.ID), M.specularMap.encoding = dr;
|
|
@@ -18452,10 +18452,10 @@ var K0 = function() {
|
|
|
18452
18452
|
var K = I.FocalLength ? I.FocalLength.value : null;
|
|
18453
18453
|
switch (M) {
|
|
18454
18454
|
case 0:
|
|
18455
|
-
C = new
|
|
18455
|
+
C = new Yv(ee, q, S, T), K !== null && C.setFocalLength(K);
|
|
18456
18456
|
break;
|
|
18457
18457
|
case 1:
|
|
18458
|
-
C = new
|
|
18458
|
+
C = new Xv(-N / 2, N / 2, _ / 2, -_ / 2, S, T);
|
|
18459
18459
|
break;
|
|
18460
18460
|
default:
|
|
18461
18461
|
console.warn("THREE.FBXLoader: Unknown camera type " + M + "."), C = new Ao();
|
|
@@ -18487,13 +18487,13 @@ var K0 = function() {
|
|
|
18487
18487
|
C = new Xu(S, T, N, _);
|
|
18488
18488
|
break;
|
|
18489
18489
|
case 1:
|
|
18490
|
-
C = new
|
|
18490
|
+
C = new qv(S, T);
|
|
18491
18491
|
break;
|
|
18492
18492
|
case 2:
|
|
18493
18493
|
var q = Math.PI / 3;
|
|
18494
18494
|
I.InnerAngle !== void 0 && (q = Yi.degToRad(I.InnerAngle.value));
|
|
18495
18495
|
var ee = 0;
|
|
18496
|
-
I.OuterAngle !== void 0 && (ee = Yi.degToRad(I.OuterAngle.value), ee = Math.max(ee, 1)), C = new
|
|
18496
|
+
I.OuterAngle !== void 0 && (ee = Yi.degToRad(I.OuterAngle.value), ee = Math.max(ee, 1)), C = new Zv(S, T, N, q, ee, _);
|
|
18497
18497
|
break;
|
|
18498
18498
|
default:
|
|
18499
18499
|
console.warn("THREE.FBXLoader: Unknown light type " + I.LightType.value + ", defaulting to a PointLight."), C = new Xu(S, T);
|
|
@@ -18511,13 +18511,13 @@ var K0 = function() {
|
|
|
18511
18511
|
_.vertexColors = !0;
|
|
18512
18512
|
}), S.FBX_Deformer ? (N.forEach(function(_) {
|
|
18513
18513
|
_.skinning = !0;
|
|
18514
|
-
}), M = new
|
|
18514
|
+
}), M = new Jv(S, T), M.normalizeSkinWeights()) : M = new bo(S, T), M;
|
|
18515
18515
|
},
|
|
18516
18516
|
createCurve: function(b, C) {
|
|
18517
18517
|
var I = b.children.reduce(function(S, T) {
|
|
18518
18518
|
return C.has(T.ID) && (S = C.get(T.ID)), S;
|
|
18519
|
-
}, null), M = new
|
|
18520
|
-
return new $
|
|
18519
|
+
}, null), M = new Kv({ color: 3342591, linewidth: 1 });
|
|
18520
|
+
return new $v(I, M);
|
|
18521
18521
|
},
|
|
18522
18522
|
// parse the model node for transform data
|
|
18523
18523
|
getTransformData: function(b, C) {
|
|
@@ -18660,8 +18660,8 @@ var K0 = function() {
|
|
|
18660
18660
|
if (N.materialIndex.forEach(function(Se, ue) {
|
|
18661
18661
|
Se !== K && (S.addGroup(se, ue - se, K), K = Se, se = ue);
|
|
18662
18662
|
}), S.groups.length > 0) {
|
|
18663
|
-
var te = S.groups[S.groups.length - 1],
|
|
18664
|
-
|
|
18663
|
+
var te = S.groups[S.groups.length - 1], le = te.start + te.count;
|
|
18664
|
+
le !== N.materialIndex.length && S.addGroup(le, N.materialIndex.length - le, K);
|
|
18665
18665
|
}
|
|
18666
18666
|
S.groups.length === 0 && S.addGroup(0, N.materialIndex.length, N.materialIndex[0]);
|
|
18667
18667
|
}
|
|
@@ -18693,12 +18693,12 @@ var K0 = function() {
|
|
|
18693
18693
|
vertexWeights: [],
|
|
18694
18694
|
weightsIndices: []
|
|
18695
18695
|
}, I = 0, M = 0, S = !1, T = [], N = [], _ = [], q = [], ee = [], K = [], se = this;
|
|
18696
|
-
return b.vertexIndices.forEach(function(te,
|
|
18696
|
+
return b.vertexIndices.forEach(function(te, le) {
|
|
18697
18697
|
var Se = !1;
|
|
18698
18698
|
te < 0 && (te = te ^ -1, Se = !0);
|
|
18699
18699
|
var ue = [], Te = [];
|
|
18700
18700
|
if (T.push(te * 3, te * 3 + 1, te * 3 + 2), b.color) {
|
|
18701
|
-
var fe = v(
|
|
18701
|
+
var fe = v(le, I, te, b.color);
|
|
18702
18702
|
_.push(fe[0], fe[1], fe[2]);
|
|
18703
18703
|
}
|
|
18704
18704
|
if (b.skeleton) {
|
|
@@ -18724,13 +18724,13 @@ var K0 = function() {
|
|
|
18724
18724
|
ee.push(Te[$]), K.push(ue[$]);
|
|
18725
18725
|
}
|
|
18726
18726
|
if (b.normal) {
|
|
18727
|
-
var fe = v(
|
|
18727
|
+
var fe = v(le, I, te, b.normal);
|
|
18728
18728
|
N.push(fe[0], fe[1], fe[2]);
|
|
18729
18729
|
}
|
|
18730
18730
|
if (b.material && b.material.mappingType !== "AllSame")
|
|
18731
|
-
var Me = v(
|
|
18731
|
+
var Me = v(le, I, te, b.material)[0];
|
|
18732
18732
|
b.uv && b.uv.forEach(function(Re, ve) {
|
|
18733
|
-
var Be = v(
|
|
18733
|
+
var Be = v(le, I, te, Re);
|
|
18734
18734
|
q[ve] === void 0 && (q[ve] = []), q[ve].push(Be[0]), q[ve].push(Be[1]);
|
|
18735
18735
|
}), M++, Se && (se.genFace(
|
|
18736
18736
|
C,
|
|
@@ -18777,7 +18777,7 @@ var K0 = function() {
|
|
|
18777
18777
|
var te = {
|
|
18778
18778
|
vertexIndices: T,
|
|
18779
18779
|
vertexPositions: ee
|
|
18780
|
-
},
|
|
18780
|
+
}, le = this.genBuffers(te), Se = new io(le.vertex, 3);
|
|
18781
18781
|
Se.name = S || I.attrName, Se.applyMatrix4(M), b.morphAttributes.position.push(Se);
|
|
18782
18782
|
},
|
|
18783
18783
|
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
|
|
@@ -18857,8 +18857,8 @@ var K0 = function() {
|
|
|
18857
18857
|
se.forEach(function(Se, ue) {
|
|
18858
18858
|
Se.toArray(te, ue * 3);
|
|
18859
18859
|
});
|
|
18860
|
-
var
|
|
18861
|
-
return
|
|
18860
|
+
var le = new ca();
|
|
18861
|
+
return le.setAttribute("position", new sA(te, 3)), le;
|
|
18862
18862
|
}
|
|
18863
18863
|
};
|
|
18864
18864
|
function r() {
|
|
@@ -18956,11 +18956,11 @@ var K0 = function() {
|
|
|
18956
18956
|
S[q] && (S[q][ee.attr] = ee);
|
|
18957
18957
|
} else if (ee.curves.morph !== void 0) {
|
|
18958
18958
|
if (S[q] === void 0) {
|
|
18959
|
-
var
|
|
18959
|
+
var le = t.get(_.ID).parents.filter(function(Le) {
|
|
18960
18960
|
return Le.relationship !== void 0;
|
|
18961
|
-
})[0].ID, Se = t.get(
|
|
18961
|
+
})[0].ID, Se = t.get(le).parents[0].ID, ue = t.get(Se).parents[0].ID, K = t.get(ue).parents[0].ID, se = n.Objects.Model[K], te = {
|
|
18962
18962
|
modelName: se.attrName ? la.sanitizeNodeName(se.attrName) : "",
|
|
18963
|
-
morphName: n.Objects.Deformer[
|
|
18963
|
+
morphName: n.Objects.Deformer[le].attrName
|
|
18964
18964
|
};
|
|
18965
18965
|
S[q] = te;
|
|
18966
18966
|
}
|
|
@@ -19077,9 +19077,9 @@ var K0 = function() {
|
|
|
19077
19077
|
for (var C = 1; C < b.values.length; C++) {
|
|
19078
19078
|
var I = b.values[C - 1], M = b.values[C] - I, S = Math.abs(M);
|
|
19079
19079
|
if (S >= 180) {
|
|
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 = [],
|
|
19081
|
-
te.push(se), se += K,
|
|
19082
|
-
b.times = V(b.times, C, te), b.values = V(b.values, C,
|
|
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
|
+
te.push(se), se += K, le.push(_), _ += N;
|
|
19082
|
+
b.times = V(b.times, C, te), b.values = V(b.values, C, le);
|
|
19083
19083
|
}
|
|
19084
19084
|
}
|
|
19085
19085
|
}
|
|
@@ -19462,16 +19462,16 @@ var K0 = function() {
|
|
|
19462
19462
|
function E(b) {
|
|
19463
19463
|
var C = new nt(), I = new nt(), M = new nt(), S = new nt(), T = new nt(), N = new nt(), _ = new nt(), q = new nt(), ee = new nt(), K = new nt(), se = new nt(), te = b.inheritType ? b.inheritType : 0;
|
|
19464
19464
|
if (b.translation && C.setPosition(w.fromArray(b.translation)), b.preRotation) {
|
|
19465
|
-
var
|
|
19466
|
-
|
|
19465
|
+
var le = b.preRotation.map(Yi.degToRad);
|
|
19466
|
+
le.push(b.eulerOrder), I.makeRotationFromEuler(A.fromArray(le));
|
|
19467
19467
|
}
|
|
19468
19468
|
if (b.rotation) {
|
|
19469
|
-
var
|
|
19470
|
-
|
|
19469
|
+
var le = b.rotation.map(Yi.degToRad);
|
|
19470
|
+
le.push(b.eulerOrder), M.makeRotationFromEuler(A.fromArray(le));
|
|
19471
19471
|
}
|
|
19472
19472
|
if (b.postRotation) {
|
|
19473
|
-
var
|
|
19474
|
-
|
|
19473
|
+
var le = b.postRotation.map(Yi.degToRad);
|
|
19474
|
+
le.push(b.eulerOrder), S.makeRotationFromEuler(A.fromArray(le));
|
|
19475
19475
|
}
|
|
19476
19476
|
b.scale && T.scale(w.fromArray(b.scale)), b.scalingOffset && _.setPosition(w.fromArray(b.scalingOffset)), b.scalingPivot && N.setPosition(w.fromArray(b.scalingPivot)), b.rotationOffset && q.setPosition(w.fromArray(b.rotationOffset)), b.rotationPivot && ee.setPosition(w.fromArray(b.rotationPivot)), b.parentMatrixWorld && (K = b.parentMatrixWorld);
|
|
19477
19477
|
var Se = I.multiply(M).multiply(S), ue = new nt();
|
|
@@ -19750,7 +19750,7 @@ function $0(n, t) {
|
|
|
19750
19750
|
function il(n, t) {
|
|
19751
19751
|
return (t.y - n.y) / (t.x - n.x);
|
|
19752
19752
|
}
|
|
19753
|
-
function
|
|
19753
|
+
function e1(n, t, e) {
|
|
19754
19754
|
const i = il(n[1], n[0]), s = il(t[1], t[0]);
|
|
19755
19755
|
if (isNaN(i) || isNaN(s) || $0(i, s))
|
|
19756
19756
|
return !1;
|
|
@@ -19787,8 +19787,8 @@ function Aa(n, t, e) {
|
|
|
19787
19787
|
function g5(n, t) {
|
|
19788
19788
|
return Math.max(n[0].x, n[1].x) >= Math.min(t[0].x, t[1].x) && Math.max(t[0].x, t[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].y, n[1].y) >= Math.min(t[0].y, t[1].y) && Aa(t[0], n[1], n[0]) * Aa(n[1], t[1], n[0]) > 0 && Aa(n[0], t[1], t[0]) * Aa(t[1], n[1], t[0]) > 0 ? 1 : 0;
|
|
19789
19789
|
}
|
|
19790
|
-
function
|
|
19791
|
-
t <= 0 ? requestAnimationFrame(n) : requestAnimationFrame(() =>
|
|
19790
|
+
function t1(n, t = 0) {
|
|
19791
|
+
t <= 0 ? requestAnimationFrame(n) : requestAnimationFrame(() => t1(n, t - 1));
|
|
19792
19792
|
}
|
|
19793
19793
|
const m5 = `<style type="text/css">
|
|
19794
19794
|
.PanoRulerPlugin-rule-line {
|
|
@@ -19946,8 +19946,8 @@ const m5 = `<style type="text/css">
|
|
|
19946
19946
|
x: se.x,
|
|
19947
19947
|
y: se.y,
|
|
19948
19948
|
z: se.z
|
|
19949
|
-
},
|
|
19950
|
-
I ?
|
|
19949
|
+
}, le = v5({ x: z, z: V }, te);
|
|
19950
|
+
I ? le < M && Math.abs(te.y - I) < 0.3 && (M = le, S = te) : le < M && (M = le, S = te);
|
|
19951
19951
|
});
|
|
19952
19952
|
const T = new Ae(z, S.y, V);
|
|
19953
19953
|
Object.assign(T, { observers: b });
|
|
@@ -19999,7 +19999,7 @@ const m5 = `<style type="text/css">
|
|
|
19999
19999
|
]
|
|
20000
20000
|
], k = [];
|
|
20001
20001
|
for (let L = 0; L < E.length; L++) {
|
|
20002
|
-
const D =
|
|
20002
|
+
const D = e1([g, v], [E[L][0], E[L][1]], !0);
|
|
20003
20003
|
D && k.push(D);
|
|
20004
20004
|
}
|
|
20005
20005
|
return k.length === 0 ? !1 : k;
|
|
@@ -20069,10 +20069,10 @@ const m5 = `<style type="text/css">
|
|
|
20069
20069
|
I.style.display = "none";
|
|
20070
20070
|
continue;
|
|
20071
20071
|
}
|
|
20072
|
-
const se = M.clone().project(A), te = (se.x + 1) / 2 * D,
|
|
20072
|
+
const se = M.clone().project(A), te = (se.x + 1) / 2 * D, le = (-se.y + 1) / 2 * j, Se = S.clone().project(A), ue = (Se.x + 1) / 2 * D, Te = (-Se.y + 1) / 2 * j, fe = Math.sqrt(Math.pow(ue - te, 2) + Math.pow(Te - le, 2));
|
|
20073
20073
|
let he = fe, Le = 50;
|
|
20074
20074
|
const $ = c(
|
|
20075
|
-
{ x: ~~te, y: ~~
|
|
20075
|
+
{ x: ~~te, y: ~~le },
|
|
20076
20076
|
{
|
|
20077
20077
|
x: ~~ue,
|
|
20078
20078
|
y: ~~Te
|
|
@@ -20080,17 +20080,17 @@ const m5 = `<style type="text/css">
|
|
|
20080
20080
|
D,
|
|
20081
20081
|
j
|
|
20082
20082
|
);
|
|
20083
|
-
if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x - te, 2) + Math.pow($[0].y -
|
|
20083
|
+
if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x - te, 2) + Math.pow($[0].y - le, 2)), Le = he / fe * 50) : z === S && (he = Math.sqrt(Math.pow($[0].x - ue, 2) + Math.pow($[0].y - Te, 2)), Le = 100 - he / fe * 50)), $ && $.length === 2) {
|
|
20084
20084
|
const de = {
|
|
20085
20085
|
x: ($[0].x + $[1].x) / 2,
|
|
20086
20086
|
y: ($[0].y + $[1].y) / 2
|
|
20087
20087
|
};
|
|
20088
|
-
Le = Math.sqrt(Math.pow(de.x - te, 2) + Math.pow(de.y -
|
|
20088
|
+
Le = Math.sqrt(Math.pow(de.x - te, 2) + Math.pow(de.y - le, 2)) / fe * 100;
|
|
20089
20089
|
}
|
|
20090
|
-
const Re = (Math.PI / 2 - Math.atan2(ue - te,
|
|
20091
|
-
Be >= fe || Be / 2 >= Le / 100 * fe || Be / 2 >= (1 - Le / 100) * fe ? T.style.display = "none" : (T.style.display = "block", T.style.width = fe + "px", T.style.left = te + "px", T.style.top =
|
|
20090
|
+
const Re = (Math.PI / 2 - Math.atan2(ue - te, le - Te)) / Math.PI * 180, ve = T.querySelector(".PanoRulerPlugin-rule-label"), Be = ve.children[0].clientWidth;
|
|
20091
|
+
Be >= fe || Be / 2 >= Le / 100 * fe || Be / 2 >= (1 - Le / 100) * fe ? T.style.display = "none" : (T.style.display = "block", T.style.width = fe + "px", T.style.left = te + "px", T.style.top = le + "px", T.style.transform = `rotate(${-Re}deg)`, ve.style.left = `${Le}%`);
|
|
20092
20092
|
}
|
|
20093
|
-
}, u = () =>
|
|
20093
|
+
}, u = () => t1(h), f = () => {
|
|
20094
20094
|
var g, v;
|
|
20095
20095
|
return e.loaded ? (e.enable || (s.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null || v.append(s), h(), n.on("modeChange", h), n.on("cameraUpdate", u), e.enable = !0), !0) : !1;
|
|
20096
20096
|
}, m = () => (e.enable && (n.off("modeChange", h), n.off("cameraUpdate", u), s && s.remove(), e.enable = !1), !0);
|
|
@@ -20417,7 +20417,7 @@ function M5(n, t, e) {
|
|
|
20417
20417
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
20418
20418
|
], D = [];
|
|
20419
20419
|
for (let j = 0; j < L.length; j++) {
|
|
20420
|
-
const z =
|
|
20420
|
+
const z = e1([E, k], [L[j][0], L[j][1]], !0);
|
|
20421
20421
|
z && D.push(z);
|
|
20422
20422
|
}
|
|
20423
20423
|
return D.length === 0 ? !1 : D;
|
|
@@ -20435,11 +20435,11 @@ function M5(n, t, e) {
|
|
|
20435
20435
|
let K = !0;
|
|
20436
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
|
-
const
|
|
20439
|
-
if (
|
|
20438
|
+
const le = c({ x: ~~M, y: ~~S }, { x: ~~T, y: ~~N });
|
|
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) {
|
|
20440
20440
|
const Se = {
|
|
20441
|
-
x: (
|
|
20442
|
-
y: (
|
|
20441
|
+
x: (le[0].x + le[1].x) / 2,
|
|
20442
|
+
y: (le[0].y + le[1].y) / 2
|
|
20443
20443
|
};
|
|
20444
20444
|
se = Math.sqrt(Math.pow(Se.x - M, 2) + Math.pow(Se.y - S, 2)) / _ * 100;
|
|
20445
20445
|
}
|
|
@@ -20462,9 +20462,9 @@ function M5(n, t, e) {
|
|
|
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
|
-
var te,
|
|
20465
|
+
var te, le;
|
|
20466
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
|
-
return C.children && ((te = C.children) == null ? void 0 : te.length) > 0 && ((
|
|
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 });
|
|
20470
20470
|
})), {
|
|
@@ -20585,7 +20585,7 @@ function Ds(n) {
|
|
|
20585
20585
|
}).then((t) => (t.encoding = P.sRGBEncoding, t.minFilter = P.NearestFilter, t.magFilter = P.NearestFilter, t));
|
|
20586
20586
|
});
|
|
20587
20587
|
}
|
|
20588
|
-
function
|
|
20588
|
+
function i1(n) {
|
|
20589
20589
|
return ie(this, null, function* () {
|
|
20590
20590
|
return Ds(n).then((t) => {
|
|
20591
20591
|
const e = n.startsWith("data:") ? n.includes("png") : new URL(n, location.href).pathname.toLowerCase().endsWith(".png");
|
|
@@ -20848,8 +20848,8 @@ class L5 extends kn {
|
|
|
20848
20848
|
return yl(this.five).create3DDomContainer(e);
|
|
20849
20849
|
}
|
|
20850
20850
|
}
|
|
20851
|
-
const VS = (n, t) => new L5(n, t), z5 = 1, O5 = 3, j5 = new Xt(16777215), R5 = new Xt(6522623), _5 = new Xt(16777215), B5 = new Xt(6522623), V5 = 6, H5 = 8, F5 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",
|
|
20852
|
-
pointTexture:
|
|
20851
|
+
const VS = (n, t) => new L5(n, t), z5 = 1, O5 = 3, j5 = new Xt(16777215), R5 = new Xt(6522623), _5 = new Xt(16777215), B5 = new Xt(6522623), V5 = 6, H5 = 8, F5 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==", n1 = new mh().load(F5), N5 = {
|
|
20852
|
+
pointTexture: n1,
|
|
20853
20853
|
pointSize: V5,
|
|
20854
20854
|
lineWidth: z5,
|
|
20855
20855
|
lineColor: j5,
|
|
@@ -20857,7 +20857,7 @@ const VS = (n, t) => new L5(n, t), z5 = 1, O5 = 3, j5 = new Xt(16777215), R5 = n
|
|
|
20857
20857
|
lineRenderOrder: 20,
|
|
20858
20858
|
pointsRenderOrder: 20
|
|
20859
20859
|
}, G5 = {
|
|
20860
|
-
pointTexture:
|
|
20860
|
+
pointTexture: n1,
|
|
20861
20861
|
pointSize: H5,
|
|
20862
20862
|
lineWidth: O5,
|
|
20863
20863
|
lineColor: R5,
|
|
@@ -20895,7 +20895,7 @@ function Q5(n) {
|
|
|
20895
20895
|
const t = document.createElement("div");
|
|
20896
20896
|
return n != null && n.id && (t.id = n == null ? void 0 : n.id), t.classList.add("five-plugin-measure__distance"), t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.width = "0", t.style.height = "0", t.style.transform = "translate(-10px, -10px)", t.style.transformOrigin = "left top", n != null && n.style && Object.assign(t.style, n.style), t;
|
|
20897
20897
|
}
|
|
20898
|
-
class
|
|
20898
|
+
class s1 {
|
|
20899
20899
|
constructor(t) {
|
|
20900
20900
|
d(this, "ndcPosition");
|
|
20901
20901
|
d(this, "contentDom");
|
|
@@ -20955,10 +20955,10 @@ class sv {
|
|
|
20955
20955
|
this.containerDom.style.transform = `translate(${r}px, ${a}px)`, this.tempShow();
|
|
20956
20956
|
}
|
|
20957
20957
|
}
|
|
20958
|
-
class X5 extends
|
|
20958
|
+
class X5 extends s1 {
|
|
20959
20959
|
constructor(e) {
|
|
20960
20960
|
var i;
|
|
20961
|
-
e.contentStyle =
|
|
20961
|
+
e.contentStyle = ce(B({}, e.contentStyle), {
|
|
20962
20962
|
background: "#FFFFFF",
|
|
20963
20963
|
color: "#041066",
|
|
20964
20964
|
fontFamily: "Arial-BoldMT",
|
|
@@ -21082,7 +21082,7 @@ class X5 extends sv {
|
|
|
21082
21082
|
e != null && e.camera && this.lastFOV !== e.camera.fov && (this.lastFOV = e.camera.fov, this.update(e));
|
|
21083
21083
|
}
|
|
21084
21084
|
}
|
|
21085
|
-
let Oo = class
|
|
21085
|
+
let Oo = class o1 {
|
|
21086
21086
|
constructor(t, e, i) {
|
|
21087
21087
|
d(this, "id");
|
|
21088
21088
|
d(this, "selected", !1);
|
|
@@ -21143,10 +21143,10 @@ let Oo = class ov {
|
|
|
21143
21143
|
return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
|
|
21144
21144
|
}
|
|
21145
21145
|
clone() {
|
|
21146
|
-
const t = new
|
|
21146
|
+
const t = new o1(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
21147
21147
|
return t.text = this.text, t;
|
|
21148
21148
|
}
|
|
21149
|
-
}, xi = class
|
|
21149
|
+
}, xi = class r1 {
|
|
21150
21150
|
constructor(t) {
|
|
21151
21151
|
d(this, "id");
|
|
21152
21152
|
d(this, "position");
|
|
@@ -21162,7 +21162,7 @@ let Oo = class ov {
|
|
|
21162
21162
|
return { id: this.id, position: this.position.toArray() };
|
|
21163
21163
|
}
|
|
21164
21164
|
clone() {
|
|
21165
|
-
return new
|
|
21165
|
+
return new r1(this.position);
|
|
21166
21166
|
}
|
|
21167
21167
|
};
|
|
21168
21168
|
const ya = (n) => n.preventDefault();
|
|
@@ -21197,7 +21197,7 @@ 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 =
|
|
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
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();
|
|
@@ -21350,7 +21350,7 @@ Y5.exports = Dl;
|
|
|
21350
21350
|
nl.default = Dl;
|
|
21351
21351
|
function Dl(n, t, e) {
|
|
21352
21352
|
e = e || 2;
|
|
21353
|
-
var i = t && t.length, s = i ? t[0] * e : n.length, o =
|
|
21353
|
+
var i = t && t.length, s = i ? t[0] * e : n.length, o = a1(n, 0, s, e, !0), r = [];
|
|
21354
21354
|
if (!o || o.next === o.prev)
|
|
21355
21355
|
return r;
|
|
21356
21356
|
var a, l, c, h, u, f, m;
|
|
@@ -21362,7 +21362,7 @@ function Dl(n, t, e) {
|
|
|
21362
21362
|
}
|
|
21363
21363
|
return Or(o, r, e, a, l, m, 0), r;
|
|
21364
21364
|
}
|
|
21365
|
-
function
|
|
21365
|
+
function a1(n, t, e, i, s) {
|
|
21366
21366
|
var o, r;
|
|
21367
21367
|
if (s === Yc(n, t, e, i) > 0)
|
|
21368
21368
|
for (o = t; o < e; o += i)
|
|
@@ -21438,7 +21438,7 @@ function J5(n, t, e) {
|
|
|
21438
21438
|
var i = n;
|
|
21439
21439
|
do {
|
|
21440
21440
|
var s = i.prev, o = i.next.next;
|
|
21441
|
-
!Tl(s, o) &&
|
|
21441
|
+
!Tl(s, o) && l1(s, i, i.next, o) && jr(s, o) && jr(o, s) && (t.push(s.i / e | 0), t.push(i.i / e | 0), t.push(o.i / e | 0), Rr(i), Rr(i.next), i = n = o), i = i.next;
|
|
21442
21442
|
} while (i !== n);
|
|
21443
21443
|
return Bs(i);
|
|
21444
21444
|
}
|
|
@@ -21447,7 +21447,7 @@ function K5(n, t, e, i, s, o) {
|
|
|
21447
21447
|
do {
|
|
21448
21448
|
for (var a = r.next.next; a !== r.prev; ) {
|
|
21449
21449
|
if (r.i !== a.i && aP(r, a)) {
|
|
21450
|
-
var l =
|
|
21450
|
+
var l = c1(r, a);
|
|
21451
21451
|
r = Bs(r, r.next), l = Bs(l, l.next), Or(r, t, e, i, s, o, 0), Or(l, t, e, i, s, o, 0);
|
|
21452
21452
|
return;
|
|
21453
21453
|
}
|
|
@@ -21459,7 +21459,7 @@ function K5(n, t, e, i, s, o) {
|
|
|
21459
21459
|
function $5(n, t, e, i) {
|
|
21460
21460
|
var s = [], o, r, a, l, c;
|
|
21461
21461
|
for (o = 0, r = t.length; o < r; o++)
|
|
21462
|
-
a = t[o] * i, l = o < r - 1 ? t[o + 1] * i : n.length, c =
|
|
21462
|
+
a = t[o] * i, l = o < r - 1 ? t[o + 1] * i : n.length, c = a1(n, a, l, i, !1), c === c.next && (c.steiner = !0), s.push(rP(c));
|
|
21463
21463
|
for (s.sort(eP), o = 0; o < s.length; o++)
|
|
21464
21464
|
e = tP(s[o], e);
|
|
21465
21465
|
return e;
|
|
@@ -21471,7 +21471,7 @@ function tP(n, t) {
|
|
|
21471
21471
|
var e = iP(n, t);
|
|
21472
21472
|
if (!e)
|
|
21473
21473
|
return t;
|
|
21474
|
-
var i =
|
|
21474
|
+
var i = c1(e, n);
|
|
21475
21475
|
return Bs(i, i.next), Bs(e, e.next);
|
|
21476
21476
|
}
|
|
21477
21477
|
function iP(n, t) {
|
|
@@ -21542,7 +21542,7 @@ function gt(n, t, e) {
|
|
|
21542
21542
|
function Tl(n, t) {
|
|
21543
21543
|
return n.x === t.x && n.y === t.y;
|
|
21544
21544
|
}
|
|
21545
|
-
function
|
|
21545
|
+
function l1(n, t, e, i) {
|
|
21546
21546
|
var s = Pa(gt(n, t, e)), o = Pa(gt(n, t, i)), r = Pa(gt(e, i, n)), a = Pa(gt(e, i, t));
|
|
21547
21547
|
return !!(s !== o && r !== a || s === 0 && wa(n, e, t) || o === 0 && wa(n, i, t) || r === 0 && wa(e, n, i) || a === 0 && wa(e, t, i));
|
|
21548
21548
|
}
|
|
@@ -21555,7 +21555,7 @@ function Pa(n) {
|
|
|
21555
21555
|
function lP(n, t) {
|
|
21556
21556
|
var e = n;
|
|
21557
21557
|
do {
|
|
21558
|
-
if (e.i !== n.i && e.next.i !== n.i && e.i !== t.i && e.next.i !== t.i &&
|
|
21558
|
+
if (e.i !== n.i && e.next.i !== n.i && e.i !== t.i && e.next.i !== t.i && l1(e, e.next, n, t))
|
|
21559
21559
|
return !0;
|
|
21560
21560
|
e = e.next;
|
|
21561
21561
|
} while (e !== n);
|
|
@@ -21571,7 +21571,7 @@ function cP(n, t) {
|
|
|
21571
21571
|
while (e !== n);
|
|
21572
21572
|
return i;
|
|
21573
21573
|
}
|
|
21574
|
-
function
|
|
21574
|
+
function c1(n, t) {
|
|
21575
21575
|
var e = new Xc(n.i, n.x, n.y), i = new Xc(t.i, t.x, t.y), s = n.next, o = t.prev;
|
|
21576
21576
|
return n.next = t, t.prev = n, e.next = s, s.prev = e, i.next = e, e.prev = i, o.next = i, i.prev = o, i;
|
|
21577
21577
|
}
|
|
@@ -21623,7 +21623,7 @@ function fs(n) {
|
|
|
21623
21623
|
const [t, e, i] = n;
|
|
21624
21624
|
return new Ae().subVectors(i, e).cross(new Ae().subVectors(t, e)).normalize();
|
|
21625
21625
|
}
|
|
21626
|
-
function
|
|
21626
|
+
function h1(n) {
|
|
21627
21627
|
if (n.length < 3)
|
|
21628
21628
|
return [];
|
|
21629
21629
|
const t = fs(n), e = new P.Quaternion().setFromUnitVectors(t, new P.Vector3(0, 1, 0)), s = n.map((r) => r.clone().applyQuaternion(e)).flatMap((r) => [r.x, r.z]);
|
|
@@ -21674,7 +21674,7 @@ function Ef(n) {
|
|
|
21674
21674
|
function ar(n, t) {
|
|
21675
21675
|
return n.x === t.x && n.y === t.y && n.z === t.z;
|
|
21676
21676
|
}
|
|
21677
|
-
function
|
|
21677
|
+
function u1(n, t) {
|
|
21678
21678
|
const e = [...new Set(n)];
|
|
21679
21679
|
if (e.length < 3)
|
|
21680
21680
|
return;
|
|
@@ -21684,11 +21684,11 @@ function uv(n, t) {
|
|
|
21684
21684
|
if (Zc(a[l], a.slice(l)))
|
|
21685
21685
|
return;
|
|
21686
21686
|
}
|
|
21687
|
-
const i = e.flatMap((a) => [a.x, a.y, a.z]), s = new P.Float32BufferAttribute(i, 3), o =
|
|
21687
|
+
const i = e.flatMap((a) => [a.x, a.y, a.z]), s = new P.Float32BufferAttribute(i, 3), o = h1(e), r = new P.BufferGeometry();
|
|
21688
21688
|
return r.setAttribute("position", s), r.setIndex(o), r.name = "PolygonGeometry", r;
|
|
21689
21689
|
}
|
|
21690
21690
|
const gP = new P.BufferGeometry();
|
|
21691
|
-
let
|
|
21691
|
+
let d1 = class extends fi {
|
|
21692
21692
|
constructor(e) {
|
|
21693
21693
|
super();
|
|
21694
21694
|
d(this, "isPolygonMesh", !0);
|
|
@@ -21716,11 +21716,11 @@ let dv = class extends fi {
|
|
|
21716
21716
|
*/
|
|
21717
21717
|
updatePoints(e) {
|
|
21718
21718
|
this.points = e;
|
|
21719
|
-
const i =
|
|
21719
|
+
const i = u1(e);
|
|
21720
21720
|
i ? (this.geometry.copy(i), this.isBlank = !1) : (this.geometry.copy(gP), this.isBlank = !0);
|
|
21721
21721
|
}
|
|
21722
21722
|
};
|
|
21723
|
-
function
|
|
21723
|
+
function f1(n) {
|
|
21724
21724
|
const t = mP(n);
|
|
21725
21725
|
if (t.length === 0) {
|
|
21726
21726
|
console.warn("No geometry triangles found"), console.debug({ geometry: n, triangles: t });
|
|
@@ -21728,7 +21728,7 @@ function fv(n) {
|
|
|
21728
21728
|
}
|
|
21729
21729
|
let e = 0, i = new Ae();
|
|
21730
21730
|
for (const [s, o, r] of t) {
|
|
21731
|
-
const a = lu(s, o, r), l =
|
|
21731
|
+
const a = lu(s, o, r), l = p1(s, o, r, a);
|
|
21732
21732
|
e += a, i.add(l);
|
|
21733
21733
|
}
|
|
21734
21734
|
return i = i.divideScalar(e), { center: i, area: e };
|
|
@@ -21736,7 +21736,7 @@ function fv(n) {
|
|
|
21736
21736
|
function lu(n, t, e) {
|
|
21737
21737
|
return t.clone().sub(n).cross(e.clone().sub(n)).length() / 2;
|
|
21738
21738
|
}
|
|
21739
|
-
function
|
|
21739
|
+
function p1(n, t, e, i) {
|
|
21740
21740
|
const s = i != null ? i : lu(n, t, e);
|
|
21741
21741
|
return si(n, t, e).multiplyScalar(s);
|
|
21742
21742
|
}
|
|
@@ -21752,11 +21752,11 @@ function mP(n) {
|
|
|
21752
21752
|
}
|
|
21753
21753
|
return i;
|
|
21754
21754
|
}
|
|
21755
|
-
class vP extends
|
|
21755
|
+
class vP extends s1 {
|
|
21756
21756
|
constructor(e) {
|
|
21757
|
-
e.containerStyle =
|
|
21757
|
+
e.containerStyle = ce(B({}, e.containerStyle), {
|
|
21758
21758
|
zIndex: "1"
|
|
21759
|
-
}), e.contentStyle =
|
|
21759
|
+
}), e.contentStyle = ce(B({}, e.contentStyle), {
|
|
21760
21760
|
background: "#6386FF",
|
|
21761
21761
|
borderRadius: "2px"
|
|
21762
21762
|
});
|
|
@@ -21769,7 +21769,7 @@ class vP extends sv {
|
|
|
21769
21769
|
*/
|
|
21770
21770
|
updateArea(e, i) {
|
|
21771
21771
|
var l, c;
|
|
21772
|
-
const s = i != null ? i : this.area.polygon.geometry, o =
|
|
21772
|
+
const s = i != null ? i : this.area.polygon.geometry, o = f1(s);
|
|
21773
21773
|
if (!o) {
|
|
21774
21774
|
this.ndcPosition = null, this.updateDomPosition(e);
|
|
21775
21775
|
return;
|
|
@@ -21812,7 +21812,7 @@ class qc {
|
|
|
21812
21812
|
this.five && (this.polyline.lines.forEach((t) => t.distanceItem.update(this.five)), this.areaItem.updateDomPosition(this.five));
|
|
21813
21813
|
});
|
|
21814
21814
|
var i;
|
|
21815
|
-
t && (this.points = t), this.model = e.model, this.polygon = new
|
|
21815
|
+
t && (this.points = t), this.model = e.model, this.polygon = new d1(t), this.polyline = new jo({ model: e.model }), this.areaItem = new vP({
|
|
21816
21816
|
area: this,
|
|
21817
21817
|
clickCallback: (s, o) => {
|
|
21818
21818
|
const r = s.clientX + "px", a = s.clientY + "px";
|
|
@@ -22201,7 +22201,7 @@ 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,
|
|
22204
|
+
}).appendTo(this.container), this.pointSelector = new pl(this.five, ce(B({}, this.pointSelectorConfig), {
|
|
22205
22205
|
mode: this.editParams.pointSelectorMode,
|
|
22206
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, {
|
|
@@ -22397,7 +22397,7 @@ class Tf extends Sl {
|
|
|
22397
22397
|
d(this, "wantsTapGesture", (e) => {
|
|
22398
22398
|
var v;
|
|
22399
22399
|
const i = this.model.areas.map((A) => e.intersectObject(A.polygon, !0)[0]).sort((A, w) => A.distance - w.distance), s = (v = i[0]) == null ? void 0 : v.object.parent;
|
|
22400
|
-
if (s instanceof
|
|
22400
|
+
if (s instanceof d1) {
|
|
22401
22401
|
const A = this.model.areas.find((w) => w.polygon === s);
|
|
22402
22402
|
if (A) {
|
|
22403
22403
|
const { x: w, y: E } = i[0].point.clone().project(this.five.camera), k = `${(w + 1) / 2 * 100}%`, L = `${(-E + 1) / 2 * 100}%`;
|
|
@@ -22505,7 +22505,7 @@ class Tf extends Sl {
|
|
|
22505
22505
|
});
|
|
22506
22506
|
}
|
|
22507
22507
|
}
|
|
22508
|
-
class
|
|
22508
|
+
class g1 {
|
|
22509
22509
|
constructor(t) {
|
|
22510
22510
|
d(this, "config");
|
|
22511
22511
|
d(this, "polylines", []);
|
|
@@ -22603,7 +22603,7 @@ void main() {
|
|
|
22603
22603
|
gl_FragColor = vec4(1.0,1.0,1.0,match);
|
|
22604
22604
|
}
|
|
22605
22605
|
`;
|
|
22606
|
-
function
|
|
22606
|
+
function m1(n) {
|
|
22607
22607
|
var A, w;
|
|
22608
22608
|
const t = (A = n.isMobile) != null ? A : !0, e = (w = n.useNormalVector) != null ? w : !0;
|
|
22609
22609
|
let i = 10349931;
|
|
@@ -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 =
|
|
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);
|
|
@@ -22828,7 +22828,7 @@ class lr extends Sl {
|
|
|
22828
22828
|
d(this, "cancelDeleteClickCallback", () => {
|
|
22829
22829
|
this.clearHighlightLines();
|
|
22830
22830
|
});
|
|
22831
|
-
this.model = new
|
|
22831
|
+
this.model = new g1(this.config), this.polyline = new jo({ model: this.model }), this.rangePieceController = new xP(e), this.deleteDom = new cu(this.five, {
|
|
22832
22832
|
i18n: this.config.i18n,
|
|
22833
22833
|
onClick: this.deleteDomClickCallback,
|
|
22834
22834
|
cancel: this.cancelDeleteClickCallback
|
|
@@ -23084,11 +23084,11 @@ const sl = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG
|
|
|
23084
23084
|
height: "184px",
|
|
23085
23085
|
background: "linear-gradient(180deg, rgba(0,0,0,0.00) 0%, #000000 100%)",
|
|
23086
23086
|
zIndex: "0"
|
|
23087
|
-
},
|
|
23087
|
+
}, v1 = {
|
|
23088
23088
|
margin: "0 64px"
|
|
23089
23089
|
}, _P = {
|
|
23090
23090
|
opacity: "0.85"
|
|
23091
|
-
},
|
|
23091
|
+
}, A1 = {
|
|
23092
23092
|
width: "72px",
|
|
23093
23093
|
height: "72px",
|
|
23094
23094
|
backgroundSize: "100%",
|
|
@@ -23138,7 +23138,7 @@ class HP {
|
|
|
23138
23138
|
end: (a = this._params.endButtonText) != null ? a : this._btnTexts.end,
|
|
23139
23139
|
revoke: (l = this._params.revokeButtonText) != null ? l : this._btnTexts.revoke,
|
|
23140
23140
|
exit: (c = this._params.exitButtonText) != null ? c : this._btnTexts.exit
|
|
23141
|
-
}, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style,
|
|
23141
|
+
}, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), Object.assign(this.mainElement.mainIcon.style, A1), Object.assign(this.mainElement.mainItem.style, v1);
|
|
23142
23142
|
const { revokeTextDom: s, exitTextDom: o } = this._getTextElement();
|
|
23143
23143
|
s && (s.innerText = this._btnTexts.revoke), o && (o.innerText = this._btnTexts.exit), this.change2Add(), this.measureController.hook.on("modeChange", this.modeChangeHandler), this.mainElement.mainItem.addEventListener("click", this.onClick), this.mainElement.mainItem.addEventListener("mouseenter", this.onMouseEnter), this.mainElement.mainItem.addEventListener("mouseleave", this.onMouseLeave);
|
|
23144
23144
|
}
|
|
@@ -23190,7 +23190,7 @@ class FP {
|
|
|
23190
23190
|
this._params = i, this._btnTexts = {
|
|
23191
23191
|
start: (s = this._params.startButtonText) != null ? s : this._btnTexts.start,
|
|
23192
23192
|
end: (o = this._params.endButtonText) != null ? o : this._btnTexts.end
|
|
23193
|
-
}, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), this.mainElement.mainIcon.setAttribute("style", "-webkit-tap-highlight-color: rgba(0,0,0,0);"), Object.assign(this.mainElement.mainIcon.style,
|
|
23193
|
+
}, this.measureController = t, this.container = e, this.mainElement = this.getMainElement(), this.mainElement.mainIcon.setAttribute("style", "-webkit-tap-highlight-color: rgba(0,0,0,0);"), Object.assign(this.mainElement.mainIcon.style, A1), Object.assign(this.mainElement.mainItem.style, v1), this.change2Add(), this.mainElement.mainItem.addEventListener("click", this.onClick);
|
|
23194
23194
|
}
|
|
23195
23195
|
dispose() {
|
|
23196
23196
|
this.mainElement.mainItem.removeEventListener("click", this.onClick);
|
|
@@ -23522,18 +23522,18 @@ function ZP(n, t, e) {
|
|
|
23522
23522
|
"onClick" in s && e(0, i = s.onClick);
|
|
23523
23523
|
}, [i];
|
|
23524
23524
|
}
|
|
23525
|
-
class
|
|
23525
|
+
class b1 extends Ee {
|
|
23526
23526
|
constructor(t) {
|
|
23527
23527
|
super(), Ie(this, t, ZP, YP, Ce, { onClick: 0 }, XP);
|
|
23528
23528
|
}
|
|
23529
23529
|
}
|
|
23530
|
-
const
|
|
23530
|
+
const y1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASKADAAQAAAABAAAASAAAAACQMUbvAAAFfUlEQVR4Ae2aSYgdRRjHMy6473FDc9GDKB68CSqIicspHhQDXgRBQTSJChEUUQ/iVdGLiHgVBAUPUXKZKIKQi3jJYaKIjLiguC9RiWb8/Sb9hfJZ9ex67zmZaeuD/1T117V9v6qu7tc969Y1awQagUagEWgEGoFGoBFoBBqBRqARGAyBpaWlm9Eu9A7aiuYGE9y0gQDjHrQPLXSp+dunbfdI1D9q1p0C4j7afLBrN1bNQY6vn3VfK9HeMbPsBDj30969mTadiJMy/lXvmhkg4Owg2rtXfcSVA5zJJQachzs4Xkol20C5uORKZVadf2pABP0oUd2J/kB/diL5h63Hs22tQZp4RrtAnyBo706/owPoaORlazoKfwmf/f2MvkLCtI6pcM2rAB35SL/nnPW+RT+gT9Tc3Ny4VUuR6WwiQB2cJ+n6NvQr+g0FHMEEpInap37J7Mf+1OdoAe1BH6JFYDkJM7XqAIAjgKfQLegn5GCFkyoAWba6D+rUmCtrL3oD7QGS4GZm1YMH0F30/hByYF4u6YoJMCks8yth++lkHr2O3gOUEze1TQJoJ71eiL5ABi+UUUgep+dWChLdLu9Tz5DOA8m9aiozkFr7kQrWE64bpJus1775ODYNn+nM9wbaLNk5nHgcbWG1n1Uq1Nc/yQq6msZfRK4KQYyzgBNpgLNO5KMNy4Qvyqc+J+UUdALqY9Z9Hr3ESnIrmMiqAdkLM3MRySZ0ssedpavRwbmylEF7686lUSZNc+Ws71iPR2egy9DlXaqvZLb1CNoJJNuotokAVfcy4wpMkFC8lC5Bt6JrUTpBHB42N+870F4gOXFVtiYBRYSAcvyCugZ5Z3V15ewjnJsB5EqtshL1qkaOVGFXBPqS/n0G2ooWC2O5GP+Wwrmx7jW9gtLIWE3eNNyXvIGclp7r8l+T3gjQXzLniq41vYLSqLrLxydq3yzkbD3O6lU0GEAS6SC9TXa3xxm7KeMb6xoUICMFkrf2pwtRX8Gl6ErqbYMDZORA8tf9vgwF99yNGX/RNUhAXbTzhai9o/W2IQNyw87ZuTlnyTdkQL59zJkPlr1tyIBKrzpO702HgkMGVPrZ8V0DdIhA6VIqXXpZbkNeQf7syFkD1FG5IUcH3wcFf9Y9yBXE07Iv1HLPOz5lv5UlUXAOEhCx7ijE+z5P2X547G2DA8Tq2Uj0vjfP2a6cc5xvMO+DDBI4XlavIF/uj5ov1nwf5NfZ3jaYFQScDUT9AsrBEciztXCsNAhAwLmKWF5DQsqZv+z94lptfhVdswaYCxi8/9W2GZUm2w+d21g91S/sqbf82di02hjcmVQ6Hx2L/ObkACI1n2rU7/HB2kHTp3vm2chN2M34OmT/JXMMD9DPYqnAv/knWkEM1KdUB3geijZ8xki/O6V5Tv3tvzyc7TnaMY1v+75099g08um5U/H78+G4pAzZognnMeC8WyzR40QE16PooSIE5SA3IVfPNygNKoKzXWc2AKT+1BcATKNMpKO+KGvgtuEElO7CXlaunKng0Mbh2Tff1wTjMve/OyJYB5rK1eRlZFAGFOfMa+GLMpbXImDTKDta13JxTphRR7/mT4ntwPl4+WjKPwZQa86cA4xBRhoDTYMz8PQ4+hKs9dJzKcw4l543H0qBCknzu9dz6FXgxJj0T2WTAPLX8GfIrwMu5dRsLx18OtAITjixciINEJHaZkAyn/rNRz3LLKA30cuA2U86U7OzamMfupRKVyIvt5hBA7e9kMfhy+1Ho3uNcC2fpmnedn1L6AT5VOyXi91A+ZT0P7OJADkaIPnG7kRkUM7kAeTMhjxO72R9+yqVq34soP9mjUAj0Ag0Ao1AI9AINAKNQCPQCDQCjUAj8L8j8BdMDI4sjknmbgAAAABJRU5ErkJggg==", w1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASKADAAQAAAABAAAASAAAAACQMUbvAAAFO0lEQVR4Ae2YWYgdRRSG78SFOG6Ju4MxIRnRgCCKBlSC24P64IO4h7wI6oMPCioqAX1TfFIQRFFBETQmIioqGhDBh3GJiMSAZnABNSIuUQTFbcz4fZcup297b9+t7525wznwU11d1aervj6nurprtbAgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEMgIzM7OLkHL0STaJ8DMgRkDyDK0CX2MptEUOrMbSGPddB6VvkAwUo5Hd6OzCuP+hfr5Y2NjvxbON60uaXp2hE8CZ3+GfzJ6ABXhOLND0VoPOrF9O+k0Kn2AM85Y16M70UTJuL8taWtoWjSAgHMYM7sQ3YyWN8yysbKZ9NrdeKp1bVGsQcBxvbkUXYsOaD3d2jbabgXQ3yV9GppGPoKA43pyDboclb3G36T9rm7g0L82soAAY/S7CG9E56GybHiLduH4BuvKRhIQcIyUi5BwTmsz47dpvwftadOvafPIAQLOUmZiSl2JVjed1dzJ7Rzei74iembnTnd+NFKAgHMIU7seXYKObTPN92kXzue9wtH/yAACjkBuQecgN3tltoNGN4rTwNlb1rFd20gAAs4JTOR2dAYqe407351IOB/2C0dnlQBiAm7vZ6oYkIPKG77XUd+E1iDvU2bTND6I3qtqLH0BYvDuWP3uORHNUHeAOxlcRx+C9C01/F1MhzvQUahsj6OfT9HDaKoqODot2zvY3tIYvOuAi+W5SD++Xf5BU+h1BvklZc+G/+u4+AbkwtxunF/QRzivcl/HUJn1E0GTjMKNmtGin7+QKeD30AQTfI1ye7dPk+uMFFPqMtRuvaFLzQfxOKocjs57ApRNwrfKDPKJ+YSV9Z/RKcj2lfR9BUi/cdzW6GsU3o98U3Uytq/p9wR6serIwWfdevoflA3mh8yHGzBfpYJK5U8cuz5dhW5k4isoS40+ptJDaD3qBM439HsKbR0UHHzXegLkhdhnaBcyrfJwhKSMGtPuAnQbAM6mbGq0HU3DI+h01Akc/+c8owYJB/9tFz/7NDUmZUqtRFegVehP5OSU64jlfpkOp/wRbUNbmNQflHXDzyoO7kMnIX16rWr18L6nbTN6FD+m9EDNAfVsGaRJHAjpOGTEJDgJViqX0WakvYu2ot3oVHQT0odRJxT7C1Y/RUtwHgNOx/90ik66qfcFyBvlIG2gOoGMjgTFMg/sQOoHo++QQFynjC7BJjjpWq/LQ3LNM62GBod79Z5iXpwsg7SWul/YQiqmW4qINPmD6OM5zUU+QbQs9vUhzgsc7tsyz23r2Ah3J/kJegE5mXFkOjVbvNMC7v7JaHMd8ZzST/4a6/MGh3vXU8GybxMS9hGOfOJG0jFIAGnylk7edpXOm1qpzWPb7Ge0mYrPoaGmFff7zxxEZZZB2oFD00RIRyAhJSh5MHkoAhFOeit5vQvyFvTksBZk7vU/qxSQ3jNIH2R3cqPoh+bvKEVMiqJ8tKSo8TLXIdPqWfT0fMLh/tWlmM6SMam9pFsRkgt3ihRhGS3FiHLT6X7JfY475KG8yrlXS6s8gtKdCpCu5ryR5Os8H0H5NDNyhGNaPc/1Kd2ozp8NDJBTKkDawKkjkZFkeuVBOY49yMh5eaHAYSyDSTEdJytAcuF2n2TqmF5pD5Tg+B9pQUQOY6ubgxyKsSYZNf4GEdJqJJylyA/Pl9AbCw0OY6o/RcuhGJB8IMJZh1Ygf4u8g3YBx5QLk4DRhMaRC3NYEAgCQSAIBIEgEASCQBAIAkEgCASBIBAEgkAQCAJBYJEQ+BdpRqKi3IjqNwAAAABJRU5ErkJggg==", Rf = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAABi0lEQVRoBe2Yu20DMRBEdW7EuVLX4NQVuAEVoUhFuAFV4FQ1OHWuRkzNABRwMLhDfbhcBhyA0IEjnvYNjjxoN5upmcBMYCYQmcCifjyl9AL/E+Md4xXjjHHCOC7L8ofPcJkAufgvVPhWqPIHc7sRIJiwJSZfKp7f5zz9cCkAPjZKNV+tbeYpAD7zSjVfrW3mKQBuWKWar9Y28xQATxsl7PNkHgJqYUtPARzxQzxtLG1h7KMhZIL5KP3/HkgonMVf9Y2LA45UzneXBChVkxPfw/tY+WEQdwOw6JEgHgIYCeJhgFEgngIYAeJpgGiIJgCREM0AoiCaAkRANAfoDeEC0BPCDaAXhCtADwh3AG+ILgCeEN0AvCC6AnhAdAdoDRECICB+4bEmtmzOGNU2ZhgAirP+2dFaS7YxVVdifROX69wIOODmTN6SbGOGArDiDFF7Esw2ZjhAjr3WpjT9UQC4YZVMfxSAWhvT9EcBUG1MnkL0i6ptnuIij0mjjVl9D3jUMu85E5gJzARuT+ACS7KuMQ7rOEcAAAAASUVORK5CYII=", _f = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAByElEQVRoBe1ZMU4DMRC8Q7yCJjVNKCh4ARVfAPo0PCYNPeQLVLyAggIa6jQ8g2NGsiJjeUfHrdGd0K60Sm7t3R3P+hx503UhwUAwEAzMyUCvkg/DcITxa+gldAXdQ5+hu77vv/DZTKbmMheQAt4D4XkF5Stsm1aL8OQiw5aQ+Rp4zqed461kci5VgUegO22F0BnnA9W+qcVQFeCeX4qYWNQC+MIuRUwsxwIhTxu1hV4w/ib8fzN0hskXwoFYqqIqsIMHT5uafML4XhuYaGMsxqwJMRBLVcyXmLOzs/ku8ybzTDhkthZfiWUNzSuxxbP8zVEV6HjOQx8KdNw2rcEzBWP+2JLMTQwctEQuwHJakj0WMHc1ogJRAScDsYWcBLrdowJuCp0BogJOAt3uUQE3hc4AUQEngW73/10BXimhtwVNvIDLq2gxf+wjYzL2QZg7XWsPtvKLCSQ5Wq1FXsCfoK2ulsRxBT2BliLbmGoLqXYfE/EC3koYqwae8WUbU1UgWoutyoM4KyuW2kJ7y2kGu4nF01rcVnpGk9aWTrq8eVbGad5alO2+MvuIZ9XGlLnMl5hJ01HK02ixfzGNICemBAPBQDDwhwx8A43PdoQvgLfYAAAAAElFTkSuQmCC";
|
|
23531
23531
|
function qP(n) {
|
|
23532
23532
|
De(n, "svelte-468fdd", '*.forbid.svelte-468fdd.svelte-468fdd{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-468fdd.svelte-468fdd{pointer-events:none;position:relative;width:100%;height:100%;z-index:2}.Measure-Controller.svelte-468fdd .mode-switcher.svelte-468fdd{margin-top:2.25rem}.Measure-Controller.svelte-468fdd .bottom.svelte-468fdd{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-468fdd .bottom .mask.svelte-468fdd{position:absolute;bottom:0;width:100%;height:11.5rem;background-size:100%;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3))}.Measure-Controller.svelte-468fdd .bottom .center.svelte-468fdd{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-468fdd .buttons.svelte-468fdd{pointer-events:all;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd{cursor:pointer;display:flex;align-items:center;position:relative;font-size:0.875rem;padding:0rem 1rem}.Measure-Controller.svelte-468fdd .buttons .button .icon.svelte-468fdd{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin-right:0.25rem}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd::after{content:"";position:absolute;display:block;right:-0.03125rem;height:1.5rem;width:0.0625rem;background-image:linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);background-size:100%;background-repeat:no-repeat;background-position:center}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd:last-child::after{display:none}');
|
|
23533
23533
|
}
|
|
23534
23534
|
function Bf(n) {
|
|
23535
23535
|
let t, e;
|
|
23536
|
-
return t = new
|
|
23536
|
+
return t = new b1({
|
|
23537
23537
|
props: {
|
|
23538
23538
|
onClick: (
|
|
23539
23539
|
/*measureController*/
|
|
@@ -23574,8 +23574,8 @@ function Vf(n) {
|
|
|
23574
23574
|
), f, m, p;
|
|
23575
23575
|
return {
|
|
23576
23576
|
c() {
|
|
23577
|
-
t = U("div"), e = U("div"), i = U("div"), s = ae(), r = _e(o), a = ae(), l = U("div"), c = U("div"), h = ae(), f = _e(u), y(i, "class", "icon svelte-468fdd"), W(i, "background-image", `url(${
|
|
23578
|
-
n[3]), y(c, "class", "icon svelte-468fdd"), W(c, "background-image", `url(${
|
|
23577
|
+
t = U("div"), e = U("div"), i = U("div"), s = ae(), r = _e(o), a = ae(), l = U("div"), c = U("div"), h = ae(), f = _e(u), y(i, "class", "icon svelte-468fdd"), W(i, "background-image", `url(${y1})`), y(e, "class", "button svelte-468fdd"), Pe(e, "forbid", !/*canRevoke*/
|
|
23578
|
+
n[3]), y(c, "class", "icon svelte-468fdd"), W(c, "background-image", `url(${w1})`), y(l, "class", "button svelte-468fdd"), y(t, "class", "buttons svelte-468fdd");
|
|
23579
23579
|
},
|
|
23580
23580
|
m(g, v) {
|
|
23581
23581
|
Y(g, t, v), R(t, e), R(e, i), R(e, s), R(e, r), R(t, a), R(t, l), R(l, c), R(l, h), R(l, f), m || (p = [
|
|
@@ -24052,7 +24052,7 @@ function lC(n) {
|
|
|
24052
24052
|
}
|
|
24053
24053
|
function Wf(n) {
|
|
24054
24054
|
let t, e;
|
|
24055
|
-
return t = new
|
|
24055
|
+
return t = new b1({
|
|
24056
24056
|
props: {
|
|
24057
24057
|
onClick: (
|
|
24058
24058
|
/*measureController*/
|
|
@@ -24164,7 +24164,7 @@ function Qf(n) {
|
|
|
24164
24164
|
), o, r, a, l, c;
|
|
24165
24165
|
return {
|
|
24166
24166
|
c() {
|
|
24167
|
-
t = U("div"), e = U("div"), i = ae(), o = _e(s), y(e, "class", "icon svelte-ldjbp8"), W(e, "background-image", `url(${
|
|
24167
|
+
t = U("div"), e = U("div"), i = ae(), o = _e(s), y(e, "class", "icon svelte-ldjbp8"), W(e, "background-image", `url(${y1})`), y(t, "class", "button svelte-ldjbp8"), Pe(
|
|
24168
24168
|
t,
|
|
24169
24169
|
"forbid",
|
|
24170
24170
|
/*buttonState*/
|
|
@@ -24210,7 +24210,7 @@ function Xf(n) {
|
|
|
24210
24210
|
), o, r, a, l, c;
|
|
24211
24211
|
return {
|
|
24212
24212
|
c() {
|
|
24213
|
-
t = U("div"), e = U("div"), i = ae(), o = _e(s), y(e, "class", "icon svelte-ldjbp8"), W(e, "background-image", `url(${
|
|
24213
|
+
t = U("div"), e = U("div"), i = ae(), o = _e(s), y(e, "class", "icon svelte-ldjbp8"), W(e, "background-image", `url(${w1})`), y(t, "class", "button svelte-ldjbp8");
|
|
24214
24214
|
},
|
|
24215
24215
|
m(h, u) {
|
|
24216
24216
|
Y(h, t, u), R(t, e), R(t, i), R(t, o), a = !0, l || (c = je(
|
|
@@ -24485,16 +24485,16 @@ var et = {}, fC = {
|
|
|
24485
24485
|
function ol(n) {
|
|
24486
24486
|
return n === null ? "null" : typeof n == "undefined" ? "undefined" : typeof n == "object" ? Array.isArray(n) ? "array" : "object" : typeof n;
|
|
24487
24487
|
}
|
|
24488
|
-
function
|
|
24488
|
+
function P1(n) {
|
|
24489
24489
|
return ol(n) === "object" ? Kc(n) : ol(n) === "array" ? Jc(n) : n;
|
|
24490
24490
|
}
|
|
24491
24491
|
function Jc(n) {
|
|
24492
|
-
return n.map(
|
|
24492
|
+
return n.map(P1);
|
|
24493
24493
|
}
|
|
24494
24494
|
function Kc(n) {
|
|
24495
24495
|
const t = {};
|
|
24496
24496
|
for (const e in n)
|
|
24497
|
-
n.hasOwnProperty(e) && (t[e] =
|
|
24497
|
+
n.hasOwnProperty(e) && (t[e] = P1(n[e]));
|
|
24498
24498
|
return t;
|
|
24499
24499
|
}
|
|
24500
24500
|
function Ll(n, t = [], e = {}) {
|
|
@@ -24789,7 +24789,7 @@ class PC extends us {
|
|
|
24789
24789
|
d(this, "changeMeasureType", (e) => {
|
|
24790
24790
|
this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
|
|
24791
24791
|
});
|
|
24792
|
-
this.five = e, this.hook = this.hooks, this.params = i, this.config = Lo(i, ["openParams", "magnifierParams"]), this.model = new
|
|
24792
|
+
this.five = e, this.hook = this.hooks, this.params = i, this.config = Lo(i, ["openParams", "magnifierParams"]), this.model = new g1(this.config), this.isMobile = (a = (r = i == null ? void 0 : i.openParams) == null ? void 0 : r.isMobile) != null ? a : !1, this.magnifier = new yh(
|
|
24793
24793
|
e,
|
|
24794
24794
|
(u = (h = i.magnifierParams) != null ? h : (c = (l = i.pointSelectorConfig) == null ? void 0 : l.helper) == null ? void 0 : c.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }
|
|
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";
|
|
@@ -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
|
|
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:
|
|
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(
|
|
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(
|
|
24995
|
+
})), l = new P.PointsMaterial(ce(B({}, r), {
|
|
24996
24996
|
size: a.size,
|
|
24997
24997
|
color: a.color,
|
|
24998
24998
|
depthWrite: !1,
|
|
@@ -25059,7 +25059,7 @@ class _r extends wi {
|
|
|
25059
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(
|
|
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(
|
|
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
|
}));
|
|
@@ -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
|
|
25214
|
+
return ce(B({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
|
|
25215
25215
|
}
|
|
25216
25216
|
get isBlank() {
|
|
25217
25217
|
return !!this.geometry.isBlank;
|
|
@@ -25221,7 +25221,7 @@ class Uo extends zl {
|
|
|
25221
25221
|
return (e = this.geometryInfo) == null ? void 0 : e.center.clone();
|
|
25222
25222
|
}
|
|
25223
25223
|
get geometryInfo() {
|
|
25224
|
-
return this.geometryInfoNeedUpdate && (this.isBlank ? this._geometryInfo = null : this._geometryInfo =
|
|
25224
|
+
return this.geometryInfoNeedUpdate && (this.isBlank ? this._geometryInfo = null : this._geometryInfo = f1(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
25225
25225
|
}
|
|
25226
25226
|
get five() {
|
|
25227
25227
|
var e, i;
|
|
@@ -25242,7 +25242,7 @@ class Uo extends zl {
|
|
|
25242
25242
|
setPoints(e, i) {
|
|
25243
25243
|
var o, r;
|
|
25244
25244
|
const s = e.map(Ue);
|
|
25245
|
-
this.points = s, this.geometry = (r =
|
|
25245
|
+
this.points = s, this.geometry = (r = u1(this.points, { checkLinesIntersect: (o = i == null ? void 0 : i.checkLinesIntersect) != null ? o : !0 })) != null ? r : du, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
|
|
25246
25246
|
}
|
|
25247
25247
|
/**
|
|
25248
25248
|
* @description: 获取一个点投影在当前平面上的点
|
|
@@ -25277,7 +25277,7 @@ class Uo extends zl {
|
|
|
25277
25277
|
function ja(n, t) {
|
|
25278
25278
|
return !(Math.abs(n.x - t.x) > 1e-5 || Math.abs(n.y - t.y) > 1e-5 || Math.abs(n.z - t.z) > 1e-5);
|
|
25279
25279
|
}
|
|
25280
|
-
function
|
|
25280
|
+
function C1(n) {
|
|
25281
25281
|
if (n.length < 3 || !ja(n[0], n.at(-1)))
|
|
25282
25282
|
return !1;
|
|
25283
25283
|
let t = !0;
|
|
@@ -25311,7 +25311,7 @@ class qf extends fi {
|
|
|
25311
25311
|
}
|
|
25312
25312
|
setPoints(e) {
|
|
25313
25313
|
this.points = e, this.line.setPoints(this.points);
|
|
25314
|
-
const i =
|
|
25314
|
+
const i = C1(this.points);
|
|
25315
25315
|
this.isPolygon = i, i && (this.addIfNotExists(this.polygon), this.polygon.setPoints(this.points));
|
|
25316
25316
|
}
|
|
25317
25317
|
select() {
|
|
@@ -25340,13 +25340,13 @@ function lc(n, t, e, i) {
|
|
|
25340
25340
|
function cr(n, t, e, i) {
|
|
25341
25341
|
n.removeEventListener ? n.removeEventListener(t, e, i) : n.detachEvent && n.detachEvent("on".concat(t), e);
|
|
25342
25342
|
}
|
|
25343
|
-
function
|
|
25343
|
+
function I1(n, t) {
|
|
25344
25344
|
const e = t.slice(0, t.length - 1);
|
|
25345
25345
|
for (let i = 0; i < e.length; i++)
|
|
25346
25346
|
e[i] = n[e[i].toLowerCase()];
|
|
25347
25347
|
return e;
|
|
25348
25348
|
}
|
|
25349
|
-
function
|
|
25349
|
+
function E1(n) {
|
|
25350
25350
|
typeof n != "string" && (n = ""), n = n.replace(/\s/g, "");
|
|
25351
25351
|
const t = n.split(",");
|
|
25352
25352
|
let e = t.lastIndexOf("");
|
|
@@ -25446,13 +25446,13 @@ const Br = {
|
|
|
25446
25446
|
}, mt = {};
|
|
25447
25447
|
for (let n = 1; n < 20; n++)
|
|
25448
25448
|
Br["f".concat(n)] = 111 + n;
|
|
25449
|
-
let ft = [], Pr = null,
|
|
25449
|
+
let ft = [], Pr = null, M1 = "all";
|
|
25450
25450
|
const fn = /* @__PURE__ */ new Map(), Zr = (n) => Br[n.toLowerCase()] || tn[n.toLowerCase()] || n.toUpperCase().charCodeAt(0), EC = (n) => Object.keys(Br).find((t) => Br[t] === n), MC = (n) => Object.keys(tn).find((t) => tn[t] === n);
|
|
25451
|
-
function
|
|
25452
|
-
|
|
25451
|
+
function k1(n) {
|
|
25452
|
+
M1 = n || "all";
|
|
25453
25453
|
}
|
|
25454
25454
|
function Vr() {
|
|
25455
|
-
return
|
|
25455
|
+
return M1 || "all";
|
|
25456
25456
|
}
|
|
25457
25457
|
function kC() {
|
|
25458
25458
|
return ft.slice(0);
|
|
@@ -25502,7 +25502,7 @@ function LC(n, t) {
|
|
|
25502
25502
|
} = r;
|
|
25503
25503
|
return fu(a);
|
|
25504
25504
|
}) : i++;
|
|
25505
|
-
Vr() === n &&
|
|
25505
|
+
Vr() === n && k1(t || "all");
|
|
25506
25506
|
}
|
|
25507
25507
|
function zC(n) {
|
|
25508
25508
|
let t = n.keyCode || n.which || n.charCode;
|
|
@@ -25513,7 +25513,7 @@ function zC(n) {
|
|
|
25513
25513
|
tn[i] === t && (ct[i] = !1);
|
|
25514
25514
|
}
|
|
25515
25515
|
}
|
|
25516
|
-
function
|
|
25516
|
+
function x1(n) {
|
|
25517
25517
|
if (typeof n == "undefined")
|
|
25518
25518
|
Object.keys(mt).forEach((s) => {
|
|
25519
25519
|
Array.isArray(mt[s]) && mt[s].forEach((o) => Ca(o)), delete mt[s];
|
|
@@ -25543,12 +25543,12 @@ const Ca = (n) => {
|
|
|
25543
25543
|
method: i,
|
|
25544
25544
|
splitKey: s = "+"
|
|
25545
25545
|
} = n;
|
|
25546
|
-
|
|
25546
|
+
E1(t).forEach((r) => {
|
|
25547
25547
|
const a = r.split(s), l = a.length, c = a[l - 1], h = c === "*" ? "*" : Zr(c);
|
|
25548
25548
|
if (!mt[h])
|
|
25549
25549
|
return;
|
|
25550
25550
|
e || (e = Vr());
|
|
25551
|
-
const u = l > 1 ?
|
|
25551
|
+
const u = l > 1 ? I1(tn, a) : [], f = [];
|
|
25552
25552
|
mt[h] = mt[h].filter((m) => {
|
|
25553
25553
|
const g = (i ? m.method === i : !0) && m.scope === e && IC(m.mods, u);
|
|
25554
25554
|
return g && f.push(m.element), !g;
|
|
@@ -25603,10 +25603,10 @@ function Kf(n, t) {
|
|
|
25603
25603
|
}
|
|
25604
25604
|
function ct(n, t, e) {
|
|
25605
25605
|
ft = [];
|
|
25606
|
-
const i =
|
|
25606
|
+
const i = E1(n);
|
|
25607
25607
|
let s = [], o = "all", r = document, a = 0, l = !1, c = !0, h = "+", u = !1, f = !1;
|
|
25608
|
-
for (e === void 0 && typeof t == "function" && (e = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (o = t.scope), t.element && (r = t.element), t.keyup && (l = t.keyup), t.keydown !== void 0 && (c = t.keydown), t.capture !== void 0 && (u = t.capture), typeof t.splitKey == "string" && (h = t.splitKey), t.single === !0 && (f = !0)), typeof t == "string" && (o = t), f &&
|
|
25609
|
-
n = i[a].split(h), s = [], n.length > 1 && (s =
|
|
25608
|
+
for (e === void 0 && typeof t == "function" && (e = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (o = t.scope), t.element && (r = t.element), t.keyup && (l = t.keyup), t.keydown !== void 0 && (c = t.keydown), t.capture !== void 0 && (u = t.capture), typeof t.splitKey == "string" && (h = t.splitKey), t.single === !0 && (f = !0)), typeof t == "string" && (o = t), f && x1(n, o); a < i.length; a++)
|
|
25609
|
+
n = i[a].split(h), s = [], n.length > 1 && (s = I1(tn, n)), n = n[n.length - 1], n = n === "*" ? "*" : Zr(n), n in mt || (mt[n] = []), mt[n].push({
|
|
25610
25610
|
keyup: l,
|
|
25611
25611
|
keydown: c,
|
|
25612
25612
|
scope: o,
|
|
@@ -25683,7 +25683,7 @@ function fu(n) {
|
|
|
25683
25683
|
}
|
|
25684
25684
|
const cc = {
|
|
25685
25685
|
getPressedKeyString: xC,
|
|
25686
|
-
setScope:
|
|
25686
|
+
setScope: k1,
|
|
25687
25687
|
getScope: Vr,
|
|
25688
25688
|
deleteScope: LC,
|
|
25689
25689
|
getPressedKeyCodes: kC,
|
|
@@ -25691,7 +25691,7 @@ const cc = {
|
|
|
25691
25691
|
isPressed: TC,
|
|
25692
25692
|
filter: DC,
|
|
25693
25693
|
trigger: OC,
|
|
25694
|
-
unbind:
|
|
25694
|
+
unbind: x1,
|
|
25695
25695
|
keyMap: Br,
|
|
25696
25696
|
modifier: tn,
|
|
25697
25697
|
modifierMap: Ra
|
|
@@ -25743,7 +25743,7 @@ const jC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAABmCAYAAAA53+RiAA
|
|
|
25743
25743
|
${RC}
|
|
25744
25744
|
</div>
|
|
25745
25745
|
`;
|
|
25746
|
-
class
|
|
25746
|
+
class S1 {
|
|
25747
25747
|
constructor(t) {
|
|
25748
25748
|
d(this, "container");
|
|
25749
25749
|
d(this, "deleteButton");
|
|
@@ -25792,8 +25792,6 @@ class HC extends Ct {
|
|
|
25792
25792
|
d(this, "cleanupGlobalListeners");
|
|
25793
25793
|
// Global touch handler for endpoint long press
|
|
25794
25794
|
d(this, "globalTouchHandler", null);
|
|
25795
|
-
// Temporary preview elements during measurement
|
|
25796
|
-
d(this, "tempPreviewElements", null);
|
|
25797
25795
|
d(this, "_pointSelector");
|
|
25798
25796
|
d(this, "_fiveDomEvents");
|
|
25799
25797
|
d(this, "_cursor");
|
|
@@ -25820,31 +25818,23 @@ class HC extends Ct {
|
|
|
25820
25818
|
* @description 开始测量
|
|
25821
25819
|
*/
|
|
25822
25820
|
d(this, "measure", () => {
|
|
25823
|
-
this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), ct.unbind("delete, backspace"), this.group.children.forEach((E) =>
|
|
25824
|
-
E.unselect && E.unselect();
|
|
25825
|
-
}), this.cursor.removeDeleteButton();
|
|
25821
|
+
this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), ct.unbind("delete, backspace"), this.group.children.forEach((E) => E.unselect()), this.cursor.removeDeleteButton();
|
|
25826
25822
|
const e = new qf({
|
|
25827
25823
|
lineStyle: this.lineStyle,
|
|
25828
25824
|
polygonStyle: this.polygonStyle
|
|
25829
25825
|
});
|
|
25830
25826
|
this.currentMeasureMesh = e, e.line.setStyle({ cssStyle: "pointer-events: none;" }), this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
|
|
25831
|
-
const i = new Cn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new _r(
|
|
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), {
|
|
25832
25828
|
lineOpacity: 0.5,
|
|
25833
25829
|
lineColor: 3407837,
|
|
25834
25830
|
dashed: !0,
|
|
25835
25831
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25836
|
-
})), a = new wi(
|
|
25832
|
+
})), a = new wi(ce(B({}, this.lineStyle), {
|
|
25837
25833
|
lineOpacity: 0.5,
|
|
25838
25834
|
lineColor: 3407837,
|
|
25839
25835
|
dashed: !0,
|
|
25840
25836
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25841
25837
|
})), l = new Cn({ occlusionMode: "depthTest", occlusionVisibility: !0, color: 3407837, opacity: 0.5 });
|
|
25842
|
-
this.tempPreviewElements = {
|
|
25843
|
-
previewLine: s,
|
|
25844
|
-
previewPolygon: o,
|
|
25845
|
-
verticalLine1: r,
|
|
25846
|
-
verticalLine2: a
|
|
25847
|
-
};
|
|
25848
25838
|
let c = null, h = !1, u = !1;
|
|
25849
25839
|
const f = (E) => {
|
|
25850
25840
|
E.key === "Shift" && (u = !0);
|
|
@@ -25860,22 +25850,42 @@ class HC extends Ct {
|
|
|
25860
25850
|
return;
|
|
25861
25851
|
}
|
|
25862
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)
|
|
25863
|
-
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)
|
|
25864
25854
|
r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), c = null, h = !1;
|
|
25865
25855
|
else {
|
|
25866
25856
|
const k = e.points.at(-1);
|
|
25867
25857
|
if (Math.abs(E.point.y - k.y) > 0.2) {
|
|
25868
25858
|
const D = new P.Vector3(E.point.x, k.y, E.point.z);
|
|
25869
|
-
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;
|
|
25870
25870
|
} else {
|
|
25871
25871
|
let D = new P.Vector3();
|
|
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.
|
|
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;
|
|
25873
25883
|
}
|
|
25874
25884
|
this.group.addIfNotExists(r, a, l);
|
|
25875
25885
|
}
|
|
25876
25886
|
if (e.points.length >= 2) {
|
|
25877
25887
|
const k = [...e.points, E.point];
|
|
25878
|
-
|
|
25888
|
+
C1(k) ? (o.setStyle(B({}, this.polygonStyle)), o.setPoints(k), this.group.addIfNotExists(o)) : o.removeFromParent();
|
|
25879
25889
|
}
|
|
25880
25890
|
}, v = (E) => {
|
|
25881
25891
|
if (!E)
|
|
@@ -25886,7 +25896,7 @@ class HC extends Ct {
|
|
|
25886
25896
|
var E, k;
|
|
25887
25897
|
e == null || e.setPoints(e.points.slice(0, -1)), p(), (k = (E = this.pointSelector.pointSelectorHelper) == null ? void 0 : E.magnifier) == null || k.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
25888
25898
|
}, w = () => {
|
|
25889
|
-
this.pointSelector.off("intersectionUpdate", g), this.pointSelector.off("select", v), this.pointSelector.off("disable", w), this.off("undo", A), document.removeEventListener("keydown", f), document.removeEventListener("keyup", m), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), p()
|
|
25899
|
+
this.pointSelector.off("intersectionUpdate", g), this.pointSelector.off("select", v), this.pointSelector.off("disable", w), this.off("undo", A), document.removeEventListener("keydown", f), document.removeEventListener("keyup", m), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), p();
|
|
25890
25900
|
let E = this.currentEndReason;
|
|
25891
25901
|
e.points.length < 2 ? (e.removeFromParent(), E = "points_insufficient") : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), this.emit("measureEnd", E), this.currentEndReason = "enter";
|
|
25892
25902
|
};
|
|
@@ -25927,45 +25937,28 @@ class HC extends Ct {
|
|
|
25927
25937
|
* @param enable - Whether to display length measurements
|
|
25928
25938
|
*/
|
|
25929
25939
|
d(this, "setLengthEnable", (e) => {
|
|
25930
|
-
|
|
25931
|
-
|
|
25932
|
-
o.changeConfig({
|
|
25940
|
+
this.lineStyle.lengthEnable = e, this.polygonStyle.lengthEnable = e, this.group.children.forEach((i) => {
|
|
25941
|
+
i.changeConfig({
|
|
25933
25942
|
lineStyle: B({}, this.lineStyle),
|
|
25934
25943
|
polygonStyle: B({}, this.polygonStyle)
|
|
25935
|
-
}), this.addMeshEventListeners(
|
|
25944
|
+
}), this.addMeshEventListeners(i);
|
|
25936
25945
|
}), this.currentMeasureMesh && this.currentMeasureMesh.changeConfig({
|
|
25937
25946
|
lineStyle: B({}, this.lineStyle),
|
|
25938
25947
|
polygonStyle: B({}, this.polygonStyle)
|
|
25939
|
-
}), this.
|
|
25940
|
-
try {
|
|
25941
|
-
(i = this.tempPreviewElements.previewLine) == null || i.setStyle(le(B({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), this.tempPreviewElements.verticalLine1 && this.tempPreviewElements.verticalLine1.setStyle(le(B({}, this.lineStyle), {
|
|
25942
|
-
lineOpacity: 0.5,
|
|
25943
|
-
lineColor: 3407837,
|
|
25944
|
-
dashed: !0,
|
|
25945
|
-
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25946
|
-
})), this.tempPreviewElements.verticalLine2 && this.tempPreviewElements.verticalLine2.setStyle(le(B({}, this.lineStyle), {
|
|
25947
|
-
lineOpacity: 0.5,
|
|
25948
|
-
lineColor: 3407837,
|
|
25949
|
-
dashed: !0,
|
|
25950
|
-
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25951
|
-
})), (s = this.tempPreviewElements.previewPolygon) == null || s.setStyle(B({}, this.polygonStyle));
|
|
25952
|
-
} catch (o) {
|
|
25953
|
-
}
|
|
25954
|
-
this.five.needsRender = !0;
|
|
25948
|
+
}), this.five.needsRender = !0;
|
|
25955
25949
|
});
|
|
25956
25950
|
/**
|
|
25957
25951
|
* Switch the measurement unit without resetting the plugin
|
|
25958
25952
|
* @param unit - The new unit to use ('m' for metric, 'ft' for imperial, or 'mm' for millimeters)
|
|
25959
25953
|
*/
|
|
25960
25954
|
d(this, "setUnit", (e) => {
|
|
25961
|
-
|
|
25962
|
-
if (this._config && (this._config.unit = e), this.lineStyle.lengthUnit = e, this.polygonStyle.lengthUnit = e, this.group.children.forEach((o) => {
|
|
25955
|
+
if (this._config && (this._config.unit = e), this.lineStyle.lengthUnit = e, this.polygonStyle.lengthUnit = e, this.group.children.forEach((i) => {
|
|
25963
25956
|
try {
|
|
25964
|
-
|
|
25957
|
+
i.changeConfig({
|
|
25965
25958
|
lineStyle: B({}, this.lineStyle),
|
|
25966
25959
|
polygonStyle: B({}, this.polygonStyle)
|
|
25967
|
-
}), this.addMeshEventListeners(
|
|
25968
|
-
} catch (
|
|
25960
|
+
}), this.addMeshEventListeners(i);
|
|
25961
|
+
} catch (s) {
|
|
25969
25962
|
}
|
|
25970
25963
|
}), this.currentMeasureMesh)
|
|
25971
25964
|
try {
|
|
@@ -25973,22 +25966,7 @@ class HC extends Ct {
|
|
|
25973
25966
|
lineStyle: B({}, this.lineStyle),
|
|
25974
25967
|
polygonStyle: B({}, this.polygonStyle)
|
|
25975
25968
|
});
|
|
25976
|
-
} catch (
|
|
25977
|
-
}
|
|
25978
|
-
if (this.tempPreviewElements)
|
|
25979
|
-
try {
|
|
25980
|
-
(i = this.tempPreviewElements.previewLine) == null || i.setStyle(le(B({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), this.tempPreviewElements.verticalLine1 && this.tempPreviewElements.verticalLine1.setStyle(le(B({}, this.lineStyle), {
|
|
25981
|
-
lineOpacity: 0.5,
|
|
25982
|
-
lineColor: 3407837,
|
|
25983
|
-
dashed: !0,
|
|
25984
|
-
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25985
|
-
})), this.tempPreviewElements.verticalLine2 && this.tempPreviewElements.verticalLine2.setStyle(le(B({}, this.lineStyle), {
|
|
25986
|
-
lineOpacity: 0.5,
|
|
25987
|
-
lineColor: 3407837,
|
|
25988
|
-
dashed: !0,
|
|
25989
|
-
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
25990
|
-
})), (s = this.tempPreviewElements.previewPolygon) == null || s.setStyle(B({}, this.polygonStyle));
|
|
25991
|
-
} catch (o) {
|
|
25969
|
+
} catch (i) {
|
|
25992
25970
|
}
|
|
25993
25971
|
this.five.needsRender = !0;
|
|
25994
25972
|
});
|
|
@@ -25997,14 +25975,13 @@ class HC extends Ct {
|
|
|
25997
25975
|
* @param precision - The number of decimal places for length measurements (area measurements remain at fixed 2 decimal places)
|
|
25998
25976
|
*/
|
|
25999
25977
|
d(this, "setPrecision", (e) => {
|
|
26000
|
-
|
|
26001
|
-
if (this._config && (this._config.precision = e), this.lineStyle.precision = e, this.group.children.forEach((o) => {
|
|
25978
|
+
if (this._config && (this._config.precision = e), this.lineStyle.precision = e, this.group.children.forEach((i) => {
|
|
26002
25979
|
try {
|
|
26003
|
-
|
|
25980
|
+
i.changeConfig({
|
|
26004
25981
|
lineStyle: B({}, this.lineStyle),
|
|
26005
25982
|
polygonStyle: B({}, this.polygonStyle)
|
|
26006
|
-
}), this.addMeshEventListeners(
|
|
26007
|
-
} catch (
|
|
25983
|
+
}), this.addMeshEventListeners(i);
|
|
25984
|
+
} catch (s) {
|
|
26008
25985
|
}
|
|
26009
25986
|
}), this.currentMeasureMesh)
|
|
26010
25987
|
try {
|
|
@@ -26012,22 +25989,7 @@ class HC extends Ct {
|
|
|
26012
25989
|
lineStyle: B({}, this.lineStyle),
|
|
26013
25990
|
polygonStyle: B({}, this.polygonStyle)
|
|
26014
25991
|
});
|
|
26015
|
-
} catch (
|
|
26016
|
-
}
|
|
26017
|
-
if (this.tempPreviewElements)
|
|
26018
|
-
try {
|
|
26019
|
-
(i = this.tempPreviewElements.previewLine) == null || i.setStyle(le(B({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), this.tempPreviewElements.verticalLine1 && this.tempPreviewElements.verticalLine1.setStyle(le(B({}, this.lineStyle), {
|
|
26020
|
-
lineOpacity: 0.5,
|
|
26021
|
-
lineColor: 3407837,
|
|
26022
|
-
dashed: !0,
|
|
26023
|
-
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
26024
|
-
})), this.tempPreviewElements.verticalLine2 && this.tempPreviewElements.verticalLine2.setStyle(le(B({}, this.lineStyle), {
|
|
26025
|
-
lineOpacity: 0.5,
|
|
26026
|
-
lineColor: 3407837,
|
|
26027
|
-
dashed: !0,
|
|
26028
|
-
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
26029
|
-
})), (s = this.tempPreviewElements.previewPolygon) == null || s.setStyle(B({}, this.polygonStyle));
|
|
26030
|
-
} catch (o) {
|
|
25992
|
+
} catch (i) {
|
|
26031
25993
|
}
|
|
26032
25994
|
this.five.needsRender = !0;
|
|
26033
25995
|
});
|
|
@@ -26036,7 +25998,7 @@ class HC extends Ct {
|
|
|
26036
25998
|
*/
|
|
26037
25999
|
d(this, "cancel", () => {
|
|
26038
26000
|
var e;
|
|
26039
|
-
this.currentEndReason = "escape", (e = this.currentMeasureMesh) == null || e.removeFromParent(), this.pointSelector.disable()
|
|
26001
|
+
this.currentEndReason = "escape", (e = this.currentMeasureMesh) == null || e.removeFromParent(), this.pointSelector.disable();
|
|
26040
26002
|
});
|
|
26041
26003
|
/**
|
|
26042
26004
|
* @description 撤销上一步
|
|
@@ -26049,7 +26011,7 @@ class HC extends Ct {
|
|
|
26049
26011
|
*/
|
|
26050
26012
|
d(this, "clearCurrentMeasure", () => {
|
|
26051
26013
|
var e;
|
|
26052
|
-
(e = this.currentMeasureMesh) == null || e.removeFromParent(), this.currentMeasureMesh = null, this.pointSelector.disable()
|
|
26014
|
+
(e = this.currentMeasureMesh) == null || e.removeFromParent(), this.currentMeasureMesh = null, this.pointSelector.disable();
|
|
26053
26015
|
});
|
|
26054
26016
|
/**
|
|
26055
26017
|
* @description 清空所有测量内容
|
|
@@ -26119,9 +26081,7 @@ class HC extends Ct {
|
|
|
26119
26081
|
let o, r;
|
|
26120
26082
|
if (e && ("touches" in e && e.touches && e.touches[0] ? (o = e.touches[0].clientX, r = e.touches[0].clientY) : "clientX" in e && "clientY" in e && (o = e.clientX, r = e.clientY)), o === void 0 || r === void 0)
|
|
26121
26083
|
return;
|
|
26122
|
-
this.group.children.forEach((h) =>
|
|
26123
|
-
h.unselect && h.unselect();
|
|
26124
|
-
}), s.select();
|
|
26084
|
+
this.group.children.forEach((h) => h.unselect()), s.select();
|
|
26125
26085
|
const a = () => {
|
|
26126
26086
|
this.removeMeshEventListeners(s), s.removeFromParent(), this.cursor.removeDeleteButton(), this.five.needsRender = !0;
|
|
26127
26087
|
}, l = ((c = this.five.getElement()) == null ? void 0 : c.parentElement) || document.body;
|
|
@@ -26573,7 +26533,7 @@ class HC extends Ct {
|
|
|
26573
26533
|
return this._fiveDomEvents ? this._fiveDomEvents : (this._fiveDomEvents = new xo(this.five, { fiveModels: null }), this._fiveDomEvents);
|
|
26574
26534
|
}
|
|
26575
26535
|
get cursor() {
|
|
26576
|
-
return this._cursor ? this._cursor : (this._cursor = new
|
|
26536
|
+
return this._cursor ? this._cursor : (this._cursor = new S1(), this._cursor);
|
|
26577
26537
|
}
|
|
26578
26538
|
get config() {
|
|
26579
26539
|
return this._config;
|
|
@@ -26583,7 +26543,7 @@ class HC extends Ct {
|
|
|
26583
26543
|
this._config = e, this.lineStyle.lengthUnit = e.unit, this.polygonStyle.lengthUnit = e.unit, e.lengthEnable !== void 0 && (this.lineStyle.lengthEnable = e.lengthEnable, this.polygonStyle.lengthEnable = e.lengthEnable), e.precision !== void 0 && (this.lineStyle.precision = e.precision), (s = (i = this.group) == null ? void 0 : i.children) == null || s.forEach((o) => o.changeConfig({ lineStyle: this.lineStyle, polygonStyle: this.polygonStyle }));
|
|
26584
26544
|
}
|
|
26585
26545
|
}
|
|
26586
|
-
const WS = (n, t) => new HC(n, t),
|
|
26546
|
+
const WS = (n, t) => new HC(n, t), D1 = eu(null);
|
|
26587
26547
|
function FC(n) {
|
|
26588
26548
|
De(n, "svelte-19zi46m", ".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
26589
26549
|
}
|
|
@@ -26688,7 +26648,7 @@ function NC(n) {
|
|
|
26688
26648
|
function GC(n, t, e) {
|
|
26689
26649
|
let { origins: i } = t;
|
|
26690
26650
|
const s = (r) => {
|
|
26691
|
-
|
|
26651
|
+
D1.update(() => `${r}-PanoSpatialTagPlugin-${Date.now()}`);
|
|
26692
26652
|
}, o = (r) => s(r.id);
|
|
26693
26653
|
return n.$$set = (r) => {
|
|
26694
26654
|
"origins" in r && e(0, i = r.origins);
|
|
@@ -26829,7 +26789,7 @@ function XC(n, t, e) {
|
|
|
26829
26789
|
Lt(() => {
|
|
26830
26790
|
m.emit("initTag", { id: i });
|
|
26831
26791
|
});
|
|
26832
|
-
const L =
|
|
26792
|
+
const L = D1.subscribe((j) => {
|
|
26833
26793
|
if (j === null)
|
|
26834
26794
|
return;
|
|
26835
26795
|
const [z, V] = j.split("-PanoSpatialTagPlugin-");
|
|
@@ -27041,9 +27001,9 @@ class $C {
|
|
|
27041
27001
|
}
|
|
27042
27002
|
}
|
|
27043
27003
|
const hc = 1e-3, rp = 0.01, ap = _h, QS = (n, t) => {
|
|
27044
|
-
var ee, K, se, te,
|
|
27004
|
+
var ee, K, se, te, le, Se, ue, Te;
|
|
27045
27005
|
let e = t == null ? void 0 : t.container, i = 1.4;
|
|
27046
|
-
const s = (ee = t == null ? void 0 : t.wait) != null ? ee : 200, o = (K = t == null ? void 0 : t.maxNumberOnScreen) != null ? K : 3, r = (se = t == null ? void 0 : t.minRad) != null ? se : Math.PI / 4, a = (te = t == null ? void 0 : t.nearTolerance) != null ? te : 100, l = (
|
|
27006
|
+
const s = (ee = t == null ? void 0 : t.wait) != null ? ee : 200, o = (K = t == null ? void 0 : t.maxNumberOnScreen) != null ? K : 3, r = (se = t == null ? void 0 : t.minRad) != null ? se : Math.PI / 4, a = (te = t == null ? void 0 : t.nearTolerance) != null ? te : 100, l = (le = t == null ? void 0 : t.upsideHeight) != null ? le : 1.6, c = (Se = t == null ? void 0 : t.minDistance) != null ? Se : 1.2, h = (ue = t == null ? void 0 : t.maxDistance) != null ? ue : 3.5, u = yl(n), f = document.createElement("div");
|
|
27047
27007
|
f.classList.add("PanoSpatialTagPlugin"), Object.assign(f.style, ZC);
|
|
27048
27008
|
const m = new Vo();
|
|
27049
27009
|
let p = new Image();
|
|
@@ -27398,7 +27358,7 @@ let s4 = class extends Ee {
|
|
|
27398
27358
|
super(), Ie(this, t, n4, i4, Ce, { itemLabel: 0, hooks: 2 }, t4);
|
|
27399
27359
|
}
|
|
27400
27360
|
};
|
|
27401
|
-
function
|
|
27361
|
+
function T1(n, t = 200) {
|
|
27402
27362
|
let e;
|
|
27403
27363
|
return function(...i) {
|
|
27404
27364
|
clearTimeout(e), e = setTimeout(() => {
|
|
@@ -27553,12 +27513,12 @@ function l4(n, t, e) {
|
|
|
27553
27513
|
const T = S.map((_) => {
|
|
27554
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);
|
|
27555
27515
|
if (!te)
|
|
27556
|
-
return
|
|
27516
|
+
return ce(B({}, _), { visible: te });
|
|
27557
27517
|
p.push(q);
|
|
27558
|
-
const
|
|
27559
|
-
return
|
|
27518
|
+
const le = w(q);
|
|
27519
|
+
return ce(B({}, _), {
|
|
27560
27520
|
visible: te,
|
|
27561
|
-
transform:
|
|
27521
|
+
transform: le,
|
|
27562
27522
|
strokeLength: K
|
|
27563
27523
|
});
|
|
27564
27524
|
}), N = T.filter(({ visible: _ }) => _).map((_) => ({
|
|
@@ -27567,7 +27527,7 @@ function l4(n, t, e) {
|
|
|
27567
27527
|
})).sort((_, q) => _.distance - q.distance);
|
|
27568
27528
|
return T.map((_) => {
|
|
27569
27529
|
const q = N.findIndex((ee) => ee.itemLabelItem.id === _.id);
|
|
27570
|
-
return q !== void 0 ?
|
|
27530
|
+
return q !== void 0 ? ce(B({}, _), { zIndex: q * 10 }) : _;
|
|
27571
27531
|
});
|
|
27572
27532
|
}, D = () => {
|
|
27573
27533
|
p = [], e(1, u = L(o, u));
|
|
@@ -27581,7 +27541,7 @@ function l4(n, t, e) {
|
|
|
27581
27541
|
Lt(() => {
|
|
27582
27542
|
e(1, u = a), h = a, D(), V(), o.on("cameraUpdate", j);
|
|
27583
27543
|
});
|
|
27584
|
-
const z =
|
|
27544
|
+
const z = T1(
|
|
27585
27545
|
() => {
|
|
27586
27546
|
e(4, g = !0), D();
|
|
27587
27547
|
},
|
|
@@ -28275,16 +28235,16 @@ function M4(n, t, e) {
|
|
|
28275
28235
|
}, k = (S, T) => {
|
|
28276
28236
|
const N = T.map((q) => {
|
|
28277
28237
|
if (S.state.panoIndex !== q.panoIndex)
|
|
28278
|
-
return
|
|
28238
|
+
return ce(B({}, q), { visible: !1 });
|
|
28279
28239
|
const ee = E(S, q);
|
|
28280
28240
|
q.name.length * E4;
|
|
28281
|
-
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,
|
|
28282
|
-
if (!
|
|
28283
|
-
return
|
|
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;
|
|
28242
|
+
if (!le)
|
|
28243
|
+
return ce(B({}, q), { visible: le });
|
|
28284
28244
|
g.push(ee);
|
|
28285
28245
|
const Se = P4(ee);
|
|
28286
|
-
return
|
|
28287
|
-
visible:
|
|
28246
|
+
return ce(B({}, q), {
|
|
28247
|
+
visible: le,
|
|
28288
28248
|
transform: Se,
|
|
28289
28249
|
strokeLength: K
|
|
28290
28250
|
});
|
|
@@ -28294,13 +28254,13 @@ function M4(n, t, e) {
|
|
|
28294
28254
|
})).sort((q, ee) => q.distance - ee.distance);
|
|
28295
28255
|
return N.map((q) => {
|
|
28296
28256
|
const ee = _.findIndex((K) => K.itemLabelItem.id === q.id);
|
|
28297
|
-
return ee !== void 0 ?
|
|
28257
|
+
return ee !== void 0 ? ce(B({}, q), { zIndex: ee * 10 }) : q;
|
|
28298
28258
|
});
|
|
28299
28259
|
}, L = () => {
|
|
28300
28260
|
g = [], e(1, u = k(s, u));
|
|
28301
28261
|
}, D = () => {
|
|
28302
28262
|
e(5, v = !1), j();
|
|
28303
|
-
}, j =
|
|
28263
|
+
}, j = T1(
|
|
28304
28264
|
() => {
|
|
28305
28265
|
e(5, v = !0), L();
|
|
28306
28266
|
},
|
|
@@ -28336,14 +28296,14 @@ function M4(n, t, e) {
|
|
|
28336
28296
|
longitude: Math.PI + Math.atan2(ee.x, ee.z),
|
|
28337
28297
|
latitude: Math.acos(ee.y / ee.length()) - Math.PI / 2
|
|
28338
28298
|
};
|
|
28339
|
-
s.setState(
|
|
28299
|
+
s.setState(ce(B({}, K), {
|
|
28340
28300
|
mode: Vt.Mode.Panorama,
|
|
28341
28301
|
panoIndex: S.observerIndex
|
|
28342
28302
|
})), s.once("initAnimationEnded", () => {
|
|
28343
|
-
e(1, u = u.map((se) =>
|
|
28303
|
+
e(1, u = u.map((se) => ce(B({}, se), {
|
|
28344
28304
|
isFold: se.id !== S.id
|
|
28345
28305
|
}))), s.once("cameraUpdate", () => {
|
|
28346
|
-
e(1, u = u.map((se) =>
|
|
28306
|
+
e(1, u = u.map((se) => ce(B({}, se), { isFold: !1 })));
|
|
28347
28307
|
});
|
|
28348
28308
|
});
|
|
28349
28309
|
}
|
|
@@ -28398,7 +28358,7 @@ class k4 extends Ee {
|
|
|
28398
28358
|
}
|
|
28399
28359
|
}
|
|
28400
28360
|
function x4(n) {
|
|
28401
|
-
return n.item_labels.map((t) =>
|
|
28361
|
+
return n.item_labels.map((t) => ce(B({}, t), {
|
|
28402
28362
|
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
28403
28363
|
observerIndex: void 0
|
|
28404
28364
|
}));
|
|
@@ -28738,7 +28698,7 @@ class V4 extends us {
|
|
|
28738
28698
|
position: u,
|
|
28739
28699
|
toward: _4(r.rad)
|
|
28740
28700
|
});
|
|
28741
|
-
}), this.labelItems = this.doorLabels.map((r) =>
|
|
28701
|
+
}), this.labelItems = this.doorLabels.map((r) => ce(B({}, r), {
|
|
28742
28702
|
left: 0,
|
|
28743
28703
|
top: 0,
|
|
28744
28704
|
visible: !1,
|
|
@@ -28800,7 +28760,7 @@ class V4 extends us {
|
|
|
28800
28760
|
}
|
|
28801
28761
|
}
|
|
28802
28762
|
const tD = (n) => new V4(n);
|
|
28803
|
-
function
|
|
28763
|
+
function L1(n, t) {
|
|
28804
28764
|
console.warn(`🚫 ==> [${n}]: ${t}`);
|
|
28805
28765
|
}
|
|
28806
28766
|
var Ol = {}, H4 = F4;
|
|
@@ -28824,15 +28784,15 @@ var Y4 = Z4;
|
|
|
28824
28784
|
function Z4(n, t) {
|
|
28825
28785
|
return n[0] * t[0] + n[1] * t[1];
|
|
28826
28786
|
}
|
|
28827
|
-
var q4 = H4, th = N4,
|
|
28787
|
+
var q4 = H4, th = N4, z1 = W4, J4 = Q4, K4 = Y4, vp = [0, 0];
|
|
28828
28788
|
Ol.computeMiter = function(t, e, i, s, o) {
|
|
28829
|
-
return q4(t, i, s),
|
|
28789
|
+
return q4(t, i, s), z1(t, t), th(e, -t[1], t[0]), th(vp, -i[1], i[0]), o / K4(e, vp);
|
|
28830
28790
|
};
|
|
28831
28791
|
Ol.normal = function(t, e) {
|
|
28832
28792
|
return th(t, -e[1], e[0]), t;
|
|
28833
28793
|
};
|
|
28834
28794
|
Ol.direction = function(t, e, i) {
|
|
28835
|
-
return J4(t, e, i),
|
|
28795
|
+
return J4(t, e, i), z1(t, t), t;
|
|
28836
28796
|
};
|
|
28837
28797
|
var un = Ol, ws = [0, 0], Ia = [0, 0], Ap = [0, 0], hr = [0, 0], $4 = function(n, t) {
|
|
28838
28798
|
var e = null, i = [];
|
|
@@ -28858,7 +28818,7 @@ var un = Ol, ws = [0, 0], Ia = [0, 0], Ap = [0, 0], hr = [0, 0], $4 = function(n
|
|
|
28858
28818
|
function uc(n, t, e) {
|
|
28859
28819
|
n.push([[t[0], t[1]], e]);
|
|
28860
28820
|
}
|
|
28861
|
-
function
|
|
28821
|
+
function O1(n, t) {
|
|
28862
28822
|
const e = n[0], i = n[1], s = t[0], o = t[1];
|
|
28863
28823
|
var r = (o.x - s.x) * (e.y - s.y) - (o.y - s.y) * (e.x - s.x), a = (i.x - e.x) * (e.y - s.y) - (i.y - e.y) * (e.x - s.x), l = (o.y - s.y) * (i.x - e.x) - (o.x - s.x) * (i.y - e.y);
|
|
28864
28824
|
if (l !== 0) {
|
|
@@ -28871,7 +28831,7 @@ function Ov(n, t) {
|
|
|
28871
28831
|
function e8(n, t) {
|
|
28872
28832
|
for (let e = 0; e < n.length - 1; e++)
|
|
28873
28833
|
for (let i = 0; i < t.length - 1; i++)
|
|
28874
|
-
if (
|
|
28834
|
+
if (O1([n[e], n[e + 1]], [t[i], t[i + 1]]))
|
|
28875
28835
|
return {
|
|
28876
28836
|
x: (n[e].x + n[e + 1].x) / 2,
|
|
28877
28837
|
y: (n[e].y + n[e + 1].y) / 2,
|
|
@@ -28924,14 +28884,14 @@ function o8(n) {
|
|
|
28924
28884
|
}, S = {
|
|
28925
28885
|
x: v[b * 6 + 3],
|
|
28926
28886
|
y: v[b * 6 + 5]
|
|
28927
|
-
}, T =
|
|
28887
|
+
}, T = O1([C, I], [M, S]);
|
|
28928
28888
|
if (T && k.push(V), !T && k.length) {
|
|
28929
28889
|
k.push(V);
|
|
28930
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];
|
|
28931
28891
|
for (let Te = se; Te < te; Te++)
|
|
28932
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] });
|
|
28933
|
-
const
|
|
28934
|
-
for (let Te =
|
|
28893
|
+
const le = k[k.length - 1], Se = Math.min(l - 1, k[k.length - 1] + e * q);
|
|
28894
|
+
for (let Te = le; Te < Se; Te++)
|
|
28935
28895
|
N < _ ? K.push({ x: v[Te * 6 + 0], y: v[Te * 6 + 2] }) : K.push({ x: v[Te * 6 + 3], y: v[Te * 6 + 5] });
|
|
28936
28896
|
const ue = e8(ee, K);
|
|
28937
28897
|
if (ue) {
|
|
@@ -28940,7 +28900,7 @@ function o8(n) {
|
|
|
28940
28900
|
line2RelativeIndex: fe,
|
|
28941
28901
|
x: he,
|
|
28942
28902
|
y: Le
|
|
28943
|
-
} = ue, $ = se + Te, Me =
|
|
28903
|
+
} = ue, $ = se + Te, Me = le + fe + 2;
|
|
28944
28904
|
for (let ze = $; ze < Me; ze++)
|
|
28945
28905
|
N < _ ? (v[ze * 6 + 0] = he, v[ze * 6 + 2] = Le) : (v[ze * 6 + 3] = he, v[ze * 6 + 5] = Le), L = ze;
|
|
28946
28906
|
let Re, ve, Be, de, ye;
|
|
@@ -29008,7 +28968,7 @@ function l8(n, t) {
|
|
|
29008
28968
|
});
|
|
29009
28969
|
}
|
|
29010
28970
|
const dt = (n) => n;
|
|
29011
|
-
function
|
|
28971
|
+
function j1(n) {
|
|
29012
28972
|
if (!n || n.length < 3)
|
|
29013
28973
|
return;
|
|
29014
28974
|
const t = n.map(Ue), e = t[1].clone().sub(t[0]), i = t[2].clone().sub(t[1]);
|
|
@@ -29092,7 +29052,7 @@ function g8(n, t) {
|
|
|
29092
29052
|
}
|
|
29093
29053
|
return -1;
|
|
29094
29054
|
}
|
|
29095
|
-
function
|
|
29055
|
+
function R1(n) {
|
|
29096
29056
|
if (!n)
|
|
29097
29057
|
return null;
|
|
29098
29058
|
try {
|
|
@@ -29114,7 +29074,7 @@ function Rv(n) {
|
|
|
29114
29074
|
const t = /^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/|shorts\/|live\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?]*).*/, e = n.match(t);
|
|
29115
29075
|
return e && e[1] ? e[1] : null;
|
|
29116
29076
|
}
|
|
29117
|
-
function
|
|
29077
|
+
function _1(n) {
|
|
29118
29078
|
if (!n)
|
|
29119
29079
|
return null;
|
|
29120
29080
|
try {
|
|
@@ -29139,14 +29099,14 @@ function sh(n) {
|
|
|
29139
29099
|
}
|
|
29140
29100
|
function m8(n, t) {
|
|
29141
29101
|
if (nh(n)) {
|
|
29142
|
-
const e =
|
|
29102
|
+
const e = R1(n);
|
|
29143
29103
|
if (!e)
|
|
29144
29104
|
return "";
|
|
29145
29105
|
const i = new URL(`https://www.youtube.com/embed/${e}`);
|
|
29146
29106
|
return (t == null ? void 0 : t.start) !== void 0 && i.searchParams.set("start", t.start.toString()), (t == null ? void 0 : t.autoplay) !== void 0 && i.searchParams.set("autoplay", t.autoplay.toString()), i.toString();
|
|
29147
29107
|
}
|
|
29148
29108
|
if (sh(n)) {
|
|
29149
|
-
const e =
|
|
29109
|
+
const e = _1(n);
|
|
29150
29110
|
if (!e)
|
|
29151
29111
|
return "";
|
|
29152
29112
|
const i = new URL(`https://player.vimeo.com/video/${e}`);
|
|
@@ -29175,15 +29135,15 @@ var mu = /* @__PURE__ */ ((n) => (n.Default = "default", n.GetAudioDuration = "g
|
|
|
29175
29135
|
function A8(n, t) {
|
|
29176
29136
|
const e = (t == null ? void 0 : t.namespace) || "default", i = Cr[e] || (Cr[e] = []);
|
|
29177
29137
|
let s = i.find((o) => !o.realSrc || o.realSrc === _o);
|
|
29178
|
-
return s || (console.warn("未找到缓存音频,已新建", Cr), s = new
|
|
29138
|
+
return s || (console.warn("未找到缓存音频,已新建", Cr), s = new B1(_o), i.push(s)), n && (s.src = n), s;
|
|
29179
29139
|
}
|
|
29180
29140
|
function b8(n, t) {
|
|
29181
29141
|
const e = (t == null ? void 0 : t.namespace) || "default", i = Cr[e] || (Cr[e] = []), s = n - i.length;
|
|
29182
29142
|
if (!(s <= 0))
|
|
29183
29143
|
for (let o = 0; o < s; o++)
|
|
29184
|
-
i.push(new
|
|
29144
|
+
i.push(new B1(_o));
|
|
29185
29145
|
}
|
|
29186
|
-
class
|
|
29146
|
+
class B1 extends (() => typeof Audio == "undefined" ? class {
|
|
29187
29147
|
} : Audio)() {
|
|
29188
29148
|
constructor(e) {
|
|
29189
29149
|
super(e);
|
|
@@ -29222,7 +29182,7 @@ class Bv extends (() => typeof Audio == "undefined" ? class {
|
|
|
29222
29182
|
function y8(n) {
|
|
29223
29183
|
n && (n.inited || (n.src && (n.inited = !0, n.removeDocumentEventListener()), n.src === _o && n.play()));
|
|
29224
29184
|
}
|
|
29225
|
-
const
|
|
29185
|
+
const V1 = {
|
|
29226
29186
|
visibleConfig: {
|
|
29227
29187
|
intersectRaycaster: {
|
|
29228
29188
|
enabled: !0,
|
|
@@ -29367,7 +29327,7 @@ class dc extends P.Mesh {
|
|
|
29367
29327
|
constructor(e, i, s) {
|
|
29368
29328
|
if (e.length !== 4)
|
|
29369
29329
|
throw new Error("QuadrangleMesh: Invalid number of points, it's not a quadrangle");
|
|
29370
|
-
const [o, r, a, l] = e, c = si(...e), h = [o.clone().sub(c), r.clone().sub(c), a.clone().sub(c), l.clone().sub(c)], u = new
|
|
29330
|
+
const [o, r, a, l] = e, c = si(...e), h = [o.clone().sub(c), r.clone().sub(c), a.clone().sub(c), l.clone().sub(c)], u = new H1(h, s);
|
|
29371
29331
|
super(u, i);
|
|
29372
29332
|
d(this, "name", "QuadrangleMesh");
|
|
29373
29333
|
this.position.copy(c);
|
|
@@ -29377,7 +29337,7 @@ class dc extends P.Mesh {
|
|
|
29377
29337
|
return e !== null && e.remove(this), this;
|
|
29378
29338
|
}
|
|
29379
29339
|
}
|
|
29380
|
-
class
|
|
29340
|
+
class H1 extends P.BufferGeometry {
|
|
29381
29341
|
/**
|
|
29382
29342
|
* @description 生成一个四边形的BufferGeometry,原点取 points[0],即左下角
|
|
29383
29343
|
* @param {Vector3Position[]} points: 四个顶点的坐标, [左下,右下,右上,左上]
|
|
@@ -29499,7 +29459,7 @@ class S8 extends P.ShaderMaterial {
|
|
|
29499
29459
|
}
|
|
29500
29460
|
}
|
|
29501
29461
|
const qr = { Z_FIGHTING_OFFSET: 0.01 };
|
|
29502
|
-
let
|
|
29462
|
+
let F1 = class extends P.Mesh {
|
|
29503
29463
|
constructor() {
|
|
29504
29464
|
super(...arguments);
|
|
29505
29465
|
d(this, "name", "MediaPlane");
|
|
@@ -29520,7 +29480,7 @@ let Fv = class extends P.Mesh {
|
|
|
29520
29480
|
});
|
|
29521
29481
|
}
|
|
29522
29482
|
};
|
|
29523
|
-
class oh extends
|
|
29483
|
+
class oh extends F1 {
|
|
29524
29484
|
constructor(e, i, s) {
|
|
29525
29485
|
var a;
|
|
29526
29486
|
super();
|
|
@@ -29532,20 +29492,20 @@ class oh extends Fv {
|
|
|
29532
29492
|
const l = fs(i).multiplyScalar(qr.Z_FIGHTING_OFFSET);
|
|
29533
29493
|
r = i.map((c) => c.clone().add(l));
|
|
29534
29494
|
}
|
|
29535
|
-
|
|
29495
|
+
i1(e).then(({ texture: l, transparent: c }) => {
|
|
29536
29496
|
var g;
|
|
29537
29497
|
const h = new P.MeshBasicMaterial({ map: l, transparent: c }), u = mr(
|
|
29538
29498
|
(g = s == null ? void 0 : s.objectFit) != null ? g : "contain",
|
|
29539
29499
|
r,
|
|
29540
29500
|
l.image.width / l.image.height
|
|
29541
|
-
), f = si(...u), m = u.map((v) => v.clone().sub(f)), p = new
|
|
29501
|
+
), f = si(...u), m = u.map((v) => v.clone().sub(f)), p = new H1(m);
|
|
29542
29502
|
this.position.copy(f), this.geometry = p, this.material = h;
|
|
29543
29503
|
}).catch((l) => {
|
|
29544
29504
|
console.error(`Imageplane error: ${l == null ? void 0 : l.message}`);
|
|
29545
29505
|
});
|
|
29546
29506
|
}
|
|
29547
29507
|
}
|
|
29548
|
-
class
|
|
29508
|
+
class N1 extends F1 {
|
|
29549
29509
|
// eslint-disable-next-line max-params
|
|
29550
29510
|
constructor(e, i, s) {
|
|
29551
29511
|
const {
|
|
@@ -29690,7 +29650,7 @@ class Nv extends Fv {
|
|
|
29690
29650
|
var s, o;
|
|
29691
29651
|
if ((s = this.ImageTextureMap) != null && s.has(e))
|
|
29692
29652
|
return this.ImageTextureMap.get(e);
|
|
29693
|
-
const i = yield
|
|
29653
|
+
const i = yield i1(e);
|
|
29694
29654
|
return (o = this.ImageTextureMap) == null || o.set(e, i), i;
|
|
29695
29655
|
});
|
|
29696
29656
|
}
|
|
@@ -29805,7 +29765,7 @@ class D8 extends us {
|
|
|
29805
29765
|
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
29806
29766
|
this.tags.forEach((s) => {
|
|
29807
29767
|
var o;
|
|
29808
|
-
if (s.mediaPlane instanceof
|
|
29768
|
+
if (s.mediaPlane instanceof N1 && i !== s.mediaPlane.videoInstance) {
|
|
29809
29769
|
if (!((o = s.mediaPlane.videoInstance) != null && o.src) || i === s.mediaPlane.videoInstance)
|
|
29810
29770
|
return;
|
|
29811
29771
|
s.mediaPlane.pause();
|
|
@@ -29937,7 +29897,7 @@ class D8 extends us {
|
|
|
29937
29897
|
}
|
|
29938
29898
|
}
|
|
29939
29899
|
});
|
|
29940
|
-
const l = (w = e.initialConfig) != null ? w : {}, c = et({},
|
|
29900
|
+
const l = (w = e.initialConfig) != null ? w : {}, c = et({}, V1, this.config.globalConfig, ...Object.values(o)), h = et({}, c, l), u = {}, f = Object.values(Vt.Mode);
|
|
29941
29901
|
rl(r).forEach(([E, k]) => {
|
|
29942
29902
|
f.forEach((L) => {
|
|
29943
29903
|
(E === "PanoramaLike" && Jn(L) || E === "ModelLike" && Ai(L)) && (u[L] = et({}, c, ...Object.values(k), l, { _isMerged: !0 }));
|
|
@@ -29946,7 +29906,7 @@ class D8 extends us {
|
|
|
29946
29906
|
const L = u[E];
|
|
29947
29907
|
u[E] = et({}, c, L, ...Object.values(k), l, { _isMerged: !0 });
|
|
29948
29908
|
});
|
|
29949
|
-
const m =
|
|
29909
|
+
const m = ce(B({}, h), { configWithFiveMode: u });
|
|
29950
29910
|
return al(m), Object.values(u).forEach((E) => al(E)), m._isMerged = !0, m;
|
|
29951
29911
|
}
|
|
29952
29912
|
}
|
|
@@ -30085,7 +30045,7 @@ function fc(n, t, e) {
|
|
|
30085
30045
|
}
|
|
30086
30046
|
}
|
|
30087
30047
|
});
|
|
30088
|
-
const a = (A = n.initialConfig) != null ? A : {}, l = et({},
|
|
30048
|
+
const a = (A = n.initialConfig) != null ? A : {}, l = et({}, V1, t.globalConfig, ...Object.values(s)), c = et({}, l, a), h = {}, u = Object.values(Vt.Mode);
|
|
30089
30049
|
rl(o).forEach(([w, E]) => {
|
|
30090
30050
|
u.forEach((k) => {
|
|
30091
30051
|
(w === "PanoramaLike" && Jn(k) || w === "ModelLike" && Ai(k)) && (h[k] = et({}, l, ...Object.values(E), a, { _isMerged: !0 }));
|
|
@@ -30094,7 +30054,7 @@ function fc(n, t, e) {
|
|
|
30094
30054
|
const k = h[w];
|
|
30095
30055
|
h[w] = et({}, l, k, ...Object.values(E), a, { _isMerged: !0 });
|
|
30096
30056
|
});
|
|
30097
|
-
const f =
|
|
30057
|
+
const f = ce(B({}, c), { configWithFiveMode: h });
|
|
30098
30058
|
return al(f), Object.values(h).forEach((w) => al(w)), f._isMerged = !0, f;
|
|
30099
30059
|
}
|
|
30100
30060
|
function wp(n) {
|
|
@@ -30672,7 +30632,7 @@ class vu {
|
|
|
30672
30632
|
}).map((a) => ({ tag: a, id: a.id, tagConfig: a.getConfig().unfoldedConfig })).filter(({ tagConfig: a }) => {
|
|
30673
30633
|
var l, c;
|
|
30674
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");
|
|
30675
|
-
}).map((a) =>
|
|
30635
|
+
}).map((a) => ce(B({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
30676
30636
|
const c = l.autoUnfold.distance;
|
|
30677
30637
|
return !(c && Ea(a, c) === !1);
|
|
30678
30638
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
@@ -30712,7 +30672,7 @@ class vu {
|
|
|
30712
30672
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
30713
30673
|
if (!this.enabled)
|
|
30714
30674
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
30715
|
-
const t =
|
|
30675
|
+
const t = ce(B({}, this.computeVisible()), {
|
|
30716
30676
|
tagInstance: this
|
|
30717
30677
|
});
|
|
30718
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 };
|
|
@@ -30841,8 +30801,8 @@ class j8 extends vu {
|
|
|
30841
30801
|
return new P.Vector3().fromArray(this.normal);
|
|
30842
30802
|
}
|
|
30843
30803
|
}
|
|
30844
|
-
const
|
|
30845
|
-
class
|
|
30804
|
+
const G1 = 1, Pp = `CSS3DObject@${G1}`, R8 = 216e-5, _8 = 3e-3;
|
|
30805
|
+
class W1 extends yn {
|
|
30846
30806
|
constructor(e) {
|
|
30847
30807
|
var L, D, j, z, V;
|
|
30848
30808
|
if (di(e.cornerPoints) && di(e.width))
|
|
@@ -30868,7 +30828,7 @@ class Wv extends yn {
|
|
|
30868
30828
|
i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${C * u}px`, i.style.height = `${C * f}px`, b.appendChild(i), p = b;
|
|
30869
30829
|
}
|
|
30870
30830
|
super(p);
|
|
30871
|
-
d(this, "version",
|
|
30831
|
+
d(this, "version", G1);
|
|
30872
30832
|
d(this, "isCSS3DObject", !0);
|
|
30873
30833
|
d(this, "name", Pp);
|
|
30874
30834
|
/**
|
|
@@ -31596,7 +31556,7 @@ function K8(n, t, e) {
|
|
|
31596
31556
|
L
|
|
31597
31557
|
];
|
|
31598
31558
|
}
|
|
31599
|
-
class
|
|
31559
|
+
class U1 extends Ee {
|
|
31600
31560
|
constructor(t) {
|
|
31601
31561
|
super(), Ie(
|
|
31602
31562
|
this,
|
|
@@ -31749,7 +31709,7 @@ function sI(n) {
|
|
|
31749
31709
|
}
|
|
31750
31710
|
function Sp(n) {
|
|
31751
31711
|
let t, e, i;
|
|
31752
|
-
return e = new
|
|
31712
|
+
return e = new U1({
|
|
31753
31713
|
props: {
|
|
31754
31714
|
unfolded: (
|
|
31755
31715
|
/*visible*/
|
|
@@ -31920,7 +31880,7 @@ function rI(n, t, e) {
|
|
|
31920
31880
|
m
|
|
31921
31881
|
];
|
|
31922
31882
|
}
|
|
31923
|
-
class
|
|
31883
|
+
class Q1 extends Ee {
|
|
31924
31884
|
constructor(t) {
|
|
31925
31885
|
super(), Ie(this, t, rI, oI, Ce, { visible: 0, textUnfolded: 8, content: 1 }, sI);
|
|
31926
31886
|
}
|
|
@@ -31966,7 +31926,7 @@ function Tp(n) {
|
|
|
31966
31926
|
),
|
|
31967
31927
|
useLinearColor: !0
|
|
31968
31928
|
}
|
|
31969
|
-
}), r = new
|
|
31929
|
+
}), r = new Q1({
|
|
31970
31930
|
props: {
|
|
31971
31931
|
visible: (
|
|
31972
31932
|
/*unfolded*/
|
|
@@ -33029,7 +32989,7 @@ function HI(n, t, e) {
|
|
|
33029
32989
|
"direction" in r && e(0, i = r.direction), "disabled" in r && e(1, s = r.disabled);
|
|
33030
32990
|
}, [i, s, o];
|
|
33031
32991
|
}
|
|
33032
|
-
class
|
|
32992
|
+
class X1 extends Ee {
|
|
33033
32993
|
constructor(t) {
|
|
33034
32994
|
super(), Ie(this, t, HI, VI, Ce, { direction: 0, disabled: 1 }, BI);
|
|
33035
32995
|
}
|
|
@@ -33235,7 +33195,7 @@ function cE({
|
|
|
33235
33195
|
clonesCountTotal: i,
|
|
33236
33196
|
particlesToScroll: s
|
|
33237
33197
|
}) {
|
|
33238
|
-
return n === t - e ? 0 : n === 0 ?
|
|
33198
|
+
return n === t - e ? 0 : n === 0 ? Y1({
|
|
33239
33199
|
particlesCountWithoutClones: t - i,
|
|
33240
33200
|
particlesToScroll: s
|
|
33241
33201
|
}) - 1 : Math.floor((n - e) / s);
|
|
@@ -33265,7 +33225,7 @@ function uE({
|
|
|
33265
33225
|
particlesToScroll: o
|
|
33266
33226
|
});
|
|
33267
33227
|
}
|
|
33268
|
-
function
|
|
33228
|
+
function Y1({
|
|
33269
33229
|
particlesCountWithoutClones: n,
|
|
33270
33230
|
particlesToScroll: t
|
|
33271
33231
|
}) {
|
|
@@ -33276,7 +33236,7 @@ function dE({
|
|
|
33276
33236
|
particlesToScroll: t,
|
|
33277
33237
|
particlesToShow: e
|
|
33278
33238
|
}) {
|
|
33279
|
-
const i =
|
|
33239
|
+
const i = Z1({
|
|
33280
33240
|
particlesCountWithoutClones: n,
|
|
33281
33241
|
particlesToScroll: t,
|
|
33282
33242
|
particlesToShow: e
|
|
@@ -33289,7 +33249,7 @@ function fE({
|
|
|
33289
33249
|
particlesToScroll: e,
|
|
33290
33250
|
particlesToShow: i
|
|
33291
33251
|
}) {
|
|
33292
|
-
return n ?
|
|
33252
|
+
return n ? Y1({
|
|
33293
33253
|
particlesCountWithoutClones: t,
|
|
33294
33254
|
particlesToScroll: e
|
|
33295
33255
|
}) : dE({
|
|
@@ -33352,7 +33312,7 @@ function mE({
|
|
|
33352
33312
|
for (let e = 0; e < n.length; e++)
|
|
33353
33313
|
n[e].style.minWidth = `${t}px`, n[e].style.maxWidth = `${t}px`;
|
|
33354
33314
|
}
|
|
33355
|
-
function
|
|
33315
|
+
function Z1({
|
|
33356
33316
|
particlesToScroll: n,
|
|
33357
33317
|
particlesToShow: t,
|
|
33358
33318
|
particlesCountWithoutClones: e
|
|
@@ -33412,7 +33372,7 @@ function yE({
|
|
|
33412
33372
|
head: 0,
|
|
33413
33373
|
tail: 0
|
|
33414
33374
|
};
|
|
33415
|
-
return
|
|
33375
|
+
return ce(B({}, i), {
|
|
33416
33376
|
total: i.head + i.tail
|
|
33417
33377
|
});
|
|
33418
33378
|
}
|
|
@@ -33425,7 +33385,7 @@ const Ir = (n, t, e) => {
|
|
|
33425
33385
|
}, rh = (n) => (t) => {
|
|
33426
33386
|
n[t] && n[t]();
|
|
33427
33387
|
};
|
|
33428
|
-
var wE = "Expected a function",
|
|
33388
|
+
var wE = "Expected a function", q1 = "__lodash_hash_undefined__", J1 = 1 / 0, PE = "[object Function]", CE = "[object GeneratorFunction]", IE = "[object Symbol]", EE = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ME = /^\w*$/, kE = /^\./, xE = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, SE = /[\\^$.*+?()[\]{}|]/g, DE = /\\(\\)?/g, TE = /^\[object .+?Constructor\]$/, LE = typeof ki == "object" && ki && ki.Object === Object && ki, zE = typeof self == "object" && self && self.Object === Object && self, wu = LE || zE || Function("return this")();
|
|
33429
33389
|
function OE(n, t) {
|
|
33430
33390
|
return n == null ? void 0 : n[t];
|
|
33431
33391
|
}
|
|
@@ -33438,12 +33398,12 @@ function jE(n) {
|
|
|
33438
33398
|
}
|
|
33439
33399
|
return t;
|
|
33440
33400
|
}
|
|
33441
|
-
var RE = Array.prototype, _E = Function.prototype,
|
|
33401
|
+
var RE = Array.prototype, _E = Function.prototype, K1 = Object.prototype, mc = wu["__core-js_shared__"], Wp = function() {
|
|
33442
33402
|
var n = /[^.]+$/.exec(mc && mc.keys && mc.keys.IE_PROTO || "");
|
|
33443
33403
|
return n ? "Symbol(src)_1." + n : "";
|
|
33444
|
-
}(), $
|
|
33445
|
-
"^" + $
|
|
33446
|
-
), Up = wu.Symbol, VE = RE.splice, HE =
|
|
33404
|
+
}(), $1 = _E.toString, Pu = K1.hasOwnProperty, ev = K1.toString, BE = RegExp(
|
|
33405
|
+
"^" + $1.call(Pu).replace(SE, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
33406
|
+
), Up = wu.Symbol, VE = RE.splice, HE = tv(wu, "Map"), Fr = tv(Object, "create"), Qp = Up ? Up.prototype : void 0, Xp = Qp ? Qp.toString : void 0;
|
|
33447
33407
|
function Hs(n) {
|
|
33448
33408
|
var t = -1, e = n ? n.length : 0;
|
|
33449
33409
|
for (this.clear(); ++t < e; ) {
|
|
@@ -33461,7 +33421,7 @@ function GE(n) {
|
|
|
33461
33421
|
var t = this.__data__;
|
|
33462
33422
|
if (Fr) {
|
|
33463
33423
|
var e = t[n];
|
|
33464
|
-
return e ===
|
|
33424
|
+
return e === q1 ? void 0 : e;
|
|
33465
33425
|
}
|
|
33466
33426
|
return Pu.call(t, n) ? t[n] : void 0;
|
|
33467
33427
|
}
|
|
@@ -33471,7 +33431,7 @@ function WE(n) {
|
|
|
33471
33431
|
}
|
|
33472
33432
|
function UE(n, t) {
|
|
33473
33433
|
var e = this.__data__;
|
|
33474
|
-
return e[n] = Fr && t === void 0 ?
|
|
33434
|
+
return e[n] = Fr && t === void 0 ? q1 : t, this;
|
|
33475
33435
|
}
|
|
33476
33436
|
Hs.prototype.clear = FE;
|
|
33477
33437
|
Hs.prototype.delete = NE;
|
|
@@ -33555,7 +33515,7 @@ function i9(n, t) {
|
|
|
33555
33515
|
return e && e == i ? n : void 0;
|
|
33556
33516
|
}
|
|
33557
33517
|
function n9(n) {
|
|
33558
|
-
if (!
|
|
33518
|
+
if (!nv(n) || l9(n))
|
|
33559
33519
|
return !1;
|
|
33560
33520
|
var t = f9(n) || jE(n) ? BE : TE;
|
|
33561
33521
|
return t.test(u9(n));
|
|
@@ -33566,21 +33526,21 @@ function s9(n) {
|
|
|
33566
33526
|
if (Iu(n))
|
|
33567
33527
|
return Xp ? Xp.call(n) : "";
|
|
33568
33528
|
var t = n + "";
|
|
33569
|
-
return t == "0" && 1 / n == -
|
|
33529
|
+
return t == "0" && 1 / n == -J1 ? "-0" : t;
|
|
33570
33530
|
}
|
|
33571
33531
|
function o9(n) {
|
|
33572
|
-
return
|
|
33532
|
+
return iv(n) ? n : c9(n);
|
|
33573
33533
|
}
|
|
33574
33534
|
function Rl(n, t) {
|
|
33575
33535
|
var e = n.__data__;
|
|
33576
33536
|
return a9(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
33577
33537
|
}
|
|
33578
|
-
function
|
|
33538
|
+
function tv(n, t) {
|
|
33579
33539
|
var e = OE(n, t);
|
|
33580
33540
|
return n9(e) ? e : void 0;
|
|
33581
33541
|
}
|
|
33582
33542
|
function r9(n, t) {
|
|
33583
|
-
if (
|
|
33543
|
+
if (iv(n))
|
|
33584
33544
|
return !1;
|
|
33585
33545
|
var e = typeof n;
|
|
33586
33546
|
return e == "number" || e == "symbol" || e == "boolean" || n == null || Iu(n) ? !0 : ME.test(n) || !EE.test(n) || t != null && n in Object(t);
|
|
@@ -33603,12 +33563,12 @@ function h9(n) {
|
|
|
33603
33563
|
if (typeof n == "string" || Iu(n))
|
|
33604
33564
|
return n;
|
|
33605
33565
|
var t = n + "";
|
|
33606
|
-
return t == "0" && 1 / n == -
|
|
33566
|
+
return t == "0" && 1 / n == -J1 ? "-0" : t;
|
|
33607
33567
|
}
|
|
33608
33568
|
function u9(n) {
|
|
33609
33569
|
if (n != null) {
|
|
33610
33570
|
try {
|
|
33611
|
-
return $
|
|
33571
|
+
return $1.call(n);
|
|
33612
33572
|
} catch (t) {
|
|
33613
33573
|
}
|
|
33614
33574
|
try {
|
|
@@ -33634,12 +33594,12 @@ Cu.Cache = Ws;
|
|
|
33634
33594
|
function d9(n, t) {
|
|
33635
33595
|
return n === t || n !== n && t !== t;
|
|
33636
33596
|
}
|
|
33637
|
-
var
|
|
33597
|
+
var iv = Array.isArray;
|
|
33638
33598
|
function f9(n) {
|
|
33639
|
-
var t =
|
|
33599
|
+
var t = nv(n) ? ev.call(n) : "";
|
|
33640
33600
|
return t == PE || t == CE;
|
|
33641
33601
|
}
|
|
33642
|
-
function
|
|
33602
|
+
function nv(n) {
|
|
33643
33603
|
var t = typeof n;
|
|
33644
33604
|
return !!n && (t == "object" || t == "function");
|
|
33645
33605
|
}
|
|
@@ -33647,7 +33607,7 @@ function p9(n) {
|
|
|
33647
33607
|
return !!n && typeof n == "object";
|
|
33648
33608
|
}
|
|
33649
33609
|
function Iu(n) {
|
|
33650
|
-
return typeof n == "symbol" || p9(n) &&
|
|
33610
|
+
return typeof n == "symbol" || p9(n) && ev.call(n) == IE;
|
|
33651
33611
|
}
|
|
33652
33612
|
function g9(n) {
|
|
33653
33613
|
return n == null ? "" : s9(n);
|
|
@@ -33667,7 +33627,7 @@ var ka = m9, ll = {}, v9 = {
|
|
|
33667
33627
|
(function(n, t) {
|
|
33668
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 = {};
|
|
33669
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;
|
|
33670
|
-
var se = typeof ki == "object" && ki && ki.Object === Object && ki, te = typeof self == "object" && self && self.Object === Object && self,
|
|
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;
|
|
33671
33631
|
function fe(x, H) {
|
|
33672
33632
|
return x.set(H[0], H[1]), x;
|
|
33673
33633
|
}
|
|
@@ -33724,12 +33684,12 @@ var ka = m9, ll = {}, v9 = {
|
|
|
33724
33684
|
J[++H] = re;
|
|
33725
33685
|
}), J;
|
|
33726
33686
|
}
|
|
33727
|
-
var Xe = Array.prototype, Ye = Function.prototype, at = Object.prototype, Je =
|
|
33687
|
+
var Xe = Array.prototype, Ye = Function.prototype, at = Object.prototype, Je = le["__core-js_shared__"], Ke = function() {
|
|
33728
33688
|
var x = /[^.]+$/.exec(Je && Je.keys && Je.keys.IE_PROTO || "");
|
|
33729
33689
|
return x ? "Symbol(src)_1." + x : "";
|
|
33730
33690
|
}(), st = Ye.toString, ot = at.hasOwnProperty, zt = at.toString, Ni = RegExp(
|
|
33731
33691
|
"^" + st.call(ot).replace(N, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
33732
|
-
), Ft = Te ?
|
|
33692
|
+
), Ft = Te ? le.Buffer : void 0, ai = le.Symbol, pi = le.Uint8Array, rt = ye(Object.getPrototypeOf, Object), Nt = Object.create, Gt = at.propertyIsEnumerable, Xo = Xe.splice, ps = Object.getOwnPropertySymbols, xn = Ft ? Ft.isBuffer : void 0, Us = ye(Object.keys, Object), Sn = G(le, "DataView"), Ci = G(le, "Map"), gi = G(le, "Promise"), Dn = G(le, "Set"), Tn = G(le, "WeakMap"), Gi = G(Object, "create"), nn = ti(Sn), sn = ti(Ci), gs = ti(gi), ms = ti(Dn), Ln = ti(Tn), Wi = ai ? ai.prototype : void 0, Qs = Wi ? Wi.valueOf : void 0;
|
|
33733
33693
|
function Li(x) {
|
|
33734
33694
|
var H = -1, J = x ? x.length : 0;
|
|
33735
33695
|
for (this.clear(); ++H < J; ) {
|
|
@@ -34118,7 +34078,7 @@ var cl = {}, b9 = {
|
|
|
34118
34078
|
}
|
|
34119
34079
|
};
|
|
34120
34080
|
(function(n, t) {
|
|
34121
|
-
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,
|
|
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 = {};
|
|
34122
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;
|
|
34123
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() {
|
|
34124
34084
|
try {
|
|
@@ -34364,7 +34324,7 @@ var cl = {}, b9 = {
|
|
|
34364
34324
|
function $o(x) {
|
|
34365
34325
|
if (!na(x) || Pt(x))
|
|
34366
34326
|
return !1;
|
|
34367
|
-
var H = ia(x) ? Xo :
|
|
34327
|
+
var H = ia(x) ? Xo : le;
|
|
34368
34328
|
return H.test(ti(x));
|
|
34369
34329
|
}
|
|
34370
34330
|
function $s(x) {
|
|
@@ -34809,7 +34769,7 @@ function L9(n) {
|
|
|
34809
34769
|
});
|
|
34810
34770
|
},
|
|
34811
34771
|
setPartialPageSize({ data: r }) {
|
|
34812
|
-
r.partialPageSize =
|
|
34772
|
+
r.partialPageSize = Z1({
|
|
34813
34773
|
particlesToScroll: r.particlesToScroll,
|
|
34814
34774
|
particlesToShow: r.particlesToShow,
|
|
34815
34775
|
particlesCountWithoutClones: r.particlesCountWithoutClones
|
|
@@ -35115,7 +35075,7 @@ function $p(n) {
|
|
|
35115
35075
|
}
|
|
35116
35076
|
function B9(n) {
|
|
35117
35077
|
let t, e, i;
|
|
35118
|
-
return e = new
|
|
35078
|
+
return e = new X1({
|
|
35119
35079
|
props: {
|
|
35120
35080
|
direction: "prev",
|
|
35121
35081
|
disabled: !/*infinite*/
|
|
@@ -35237,7 +35197,7 @@ function tg(n) {
|
|
|
35237
35197
|
}
|
|
35238
35198
|
function V9(n) {
|
|
35239
35199
|
let t, e, i;
|
|
35240
|
-
return e = new
|
|
35200
|
+
return e = new X1({
|
|
35241
35201
|
props: {
|
|
35242
35202
|
direction: "next",
|
|
35243
35203
|
disabled: !/*infinite*/
|
|
@@ -35598,7 +35558,7 @@ function N9(n, t, e) {
|
|
|
35598
35558
|
yield m.showPage(de, { animated: !0 });
|
|
35599
35559
|
});
|
|
35600
35560
|
}
|
|
35601
|
-
function
|
|
35561
|
+
function le() {
|
|
35602
35562
|
C && (u.durationMs = 0);
|
|
35603
35563
|
}
|
|
35604
35564
|
function Se(de) {
|
|
@@ -35671,7 +35631,7 @@ function N9(n, t, e) {
|
|
|
35671
35631
|
ee,
|
|
35672
35632
|
m,
|
|
35673
35633
|
te,
|
|
35674
|
-
|
|
35634
|
+
le,
|
|
35675
35635
|
Se,
|
|
35676
35636
|
ue,
|
|
35677
35637
|
Te,
|
|
@@ -36125,7 +36085,7 @@ function q9(n, t, e) {
|
|
|
36125
36085
|
C
|
|
36126
36086
|
];
|
|
36127
36087
|
}
|
|
36128
|
-
class
|
|
36088
|
+
class sv extends Ee {
|
|
36129
36089
|
constructor(t) {
|
|
36130
36090
|
super(), Ie(
|
|
36131
36091
|
this,
|
|
@@ -36273,7 +36233,7 @@ function K9(n) {
|
|
|
36273
36233
|
return (
|
|
36274
36234
|
/*mediaInstanceList*/
|
|
36275
36235
|
n[8][0] !== void 0 && (r.mediaInstance = /*mediaInstanceList*/
|
|
36276
|
-
n[8][0]), t = new
|
|
36236
|
+
n[8][0]), t = new sv({ props: r }), qe.push(() => El(t, "mediaInstance", o)), {
|
|
36277
36237
|
c() {
|
|
36278
36238
|
me(t.$$.fragment);
|
|
36279
36239
|
},
|
|
@@ -36388,7 +36348,7 @@ function rg(n) {
|
|
|
36388
36348
|
n[8][
|
|
36389
36349
|
/*index*/
|
|
36390
36350
|
n[30]
|
|
36391
|
-
]), t = new
|
|
36351
|
+
]), t = new sv({ props: r }), qe.push(() => El(t, "mediaInstance", o)), {
|
|
36392
36352
|
c() {
|
|
36393
36353
|
me(t.$$.fragment);
|
|
36394
36354
|
},
|
|
@@ -36601,7 +36561,7 @@ function iM(n, t, e) {
|
|
|
36601
36561
|
S
|
|
36602
36562
|
];
|
|
36603
36563
|
}
|
|
36604
|
-
class
|
|
36564
|
+
class ov extends Ee {
|
|
36605
36565
|
constructor(t) {
|
|
36606
36566
|
super(), Ie(
|
|
36607
36567
|
this,
|
|
@@ -36697,7 +36657,7 @@ function ag(n) {
|
|
|
36697
36657
|
}
|
|
36698
36658
|
function lg(n) {
|
|
36699
36659
|
let t, e, i;
|
|
36700
|
-
return e = new
|
|
36660
|
+
return e = new U1({
|
|
36701
36661
|
props: {
|
|
36702
36662
|
unfolded: (
|
|
36703
36663
|
/*unfolded*/
|
|
@@ -36737,7 +36697,7 @@ function lg(n) {
|
|
|
36737
36697
|
}
|
|
36738
36698
|
function cg(n) {
|
|
36739
36699
|
let t, e, i;
|
|
36740
|
-
return e = new
|
|
36700
|
+
return e = new ov({
|
|
36741
36701
|
props: {
|
|
36742
36702
|
autoplayConfig: { autoplayCarousel: !1 },
|
|
36743
36703
|
unfolded: (
|
|
@@ -37914,7 +37874,7 @@ function Pg(n) {
|
|
|
37914
37874
|
/*unfolded*/
|
|
37915
37875
|
n[6] && Cg(n)
|
|
37916
37876
|
);
|
|
37917
|
-
return c = new
|
|
37877
|
+
return c = new Q1({
|
|
37918
37878
|
props: {
|
|
37919
37879
|
visible: (
|
|
37920
37880
|
/*unfolded*/
|
|
@@ -38558,7 +38518,7 @@ function OM(n) {
|
|
|
38558
38518
|
function Eg(n) {
|
|
38559
38519
|
var s;
|
|
38560
38520
|
let t, e, i;
|
|
38561
|
-
return e = new
|
|
38521
|
+
return e = new ov({
|
|
38562
38522
|
props: {
|
|
38563
38523
|
mediaItemConfig: {
|
|
38564
38524
|
canPlay: !0,
|
|
@@ -38698,7 +38658,7 @@ class _M extends Ee {
|
|
|
38698
38658
|
}
|
|
38699
38659
|
}
|
|
38700
38660
|
const vc = /* @__PURE__ */ new Map();
|
|
38701
|
-
function
|
|
38661
|
+
function rv(n) {
|
|
38702
38662
|
return ie(this, null, function* () {
|
|
38703
38663
|
return new Promise((t, e) => {
|
|
38704
38664
|
if (!n) {
|
|
@@ -38715,10 +38675,10 @@ function BM(n) {
|
|
|
38715
38675
|
const { url: t, ratio: e = 3 } = n, i = (() => {
|
|
38716
38676
|
if (vc.has(t))
|
|
38717
38677
|
return vc.get(t);
|
|
38718
|
-
const r =
|
|
38678
|
+
const r = rv(t);
|
|
38719
38679
|
return vc.set(t, r), r;
|
|
38720
38680
|
})(), { width: s, height: o } = yield i;
|
|
38721
|
-
return
|
|
38681
|
+
return ce(B({}, n), {
|
|
38722
38682
|
width: s / e,
|
|
38723
38683
|
height: o / e
|
|
38724
38684
|
});
|
|
@@ -38729,8 +38689,8 @@ function VM(n) {
|
|
|
38729
38689
|
const { steps: t, url: e, ratio: i = 3, fps: s = 24 } = n;
|
|
38730
38690
|
if (!t)
|
|
38731
38691
|
throw new Error("KeyframeIcon requires steps");
|
|
38732
|
-
const { width: o, height: r } = yield
|
|
38733
|
-
return
|
|
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";
|
|
38693
|
+
return ce(B({}, n), {
|
|
38734
38694
|
width: c,
|
|
38735
38695
|
height: h,
|
|
38736
38696
|
duration: u
|
|
@@ -39176,7 +39136,7 @@ function ZM(n) {
|
|
|
39176
39136
|
}
|
|
39177
39137
|
function go(n) {
|
|
39178
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;
|
|
39179
|
-
return
|
|
39139
|
+
return ce(B({}, n), { width: o, height: r });
|
|
39180
39140
|
}
|
|
39181
39141
|
function qM(n, t, e) {
|
|
39182
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;
|
|
@@ -39190,7 +39150,7 @@ function qM(n, t, e) {
|
|
|
39190
39150
|
function E(L) {
|
|
39191
39151
|
return ie(this, null, function* () {
|
|
39192
39152
|
if (typeof m == "number")
|
|
39193
|
-
return
|
|
39153
|
+
return ce(B({}, L), { width: m });
|
|
39194
39154
|
const D = yield BM(L);
|
|
39195
39155
|
return A("iconLoaded", D), D;
|
|
39196
39156
|
});
|
|
@@ -39241,7 +39201,7 @@ function qM(n, t, e) {
|
|
|
39241
39201
|
g
|
|
39242
39202
|
];
|
|
39243
39203
|
}
|
|
39244
|
-
class
|
|
39204
|
+
class av extends Ee {
|
|
39245
39205
|
constructor(t) {
|
|
39246
39206
|
super(), Ie(this, t, qM, ZM, Ce, { width: 1, icon: 14, shadow: 0 }, HM);
|
|
39247
39207
|
}
|
|
@@ -39303,7 +39263,7 @@ function Tg(n) {
|
|
|
39303
39263
|
}
|
|
39304
39264
|
function KM(n) {
|
|
39305
39265
|
let t, e, i, s;
|
|
39306
|
-
e = new
|
|
39266
|
+
e = new av({
|
|
39307
39267
|
props: { icon: (
|
|
39308
39268
|
/*icon*/
|
|
39309
39269
|
n[0]
|
|
@@ -39522,7 +39482,7 @@ function n7(n) {
|
|
|
39522
39482
|
}
|
|
39523
39483
|
function s7(n) {
|
|
39524
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;
|
|
39525
|
-
return
|
|
39485
|
+
return ce(B({}, n), { width: o, height: r });
|
|
39526
39486
|
}
|
|
39527
39487
|
function o7(n, t, e) {
|
|
39528
39488
|
let i, s, o, r, a, { width: l = null } = t, { icon: c = null } = t, { shadow: h = !1 } = t;
|
|
@@ -40261,7 +40221,7 @@ function x7(n, t, e) {
|
|
|
40261
40221
|
}
|
|
40262
40222
|
function E(z, V, b) {
|
|
40263
40223
|
var C, I;
|
|
40264
|
-
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
|
|
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);
|
|
40265
40225
|
}
|
|
40266
40226
|
function k(z) {
|
|
40267
40227
|
qe[z ? "unshift" : "push"](() => {
|
|
@@ -40332,7 +40292,7 @@ let ku = class extends Ee {
|
|
|
40332
40292
|
);
|
|
40333
40293
|
}
|
|
40334
40294
|
};
|
|
40335
|
-
class
|
|
40295
|
+
class lv extends vu {
|
|
40336
40296
|
constructor(e, i) {
|
|
40337
40297
|
super(e, i);
|
|
40338
40298
|
d(this, "loading", !1);
|
|
@@ -40373,7 +40333,7 @@ class l1 extends vu {
|
|
|
40373
40333
|
c.classList.add("tag-media-container");
|
|
40374
40334
|
const h = "black";
|
|
40375
40335
|
c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
|
|
40376
|
-
const u = B({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", m = new
|
|
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();
|
|
40377
40337
|
m.position.add(p.clone().setLength(qr.Z_FIGHTING_OFFSET)), s.add(m);
|
|
40378
40338
|
let g;
|
|
40379
40339
|
m.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, m, (A) => {
|
|
@@ -40422,7 +40382,7 @@ class l1 extends vu {
|
|
|
40422
40382
|
this.computeRenderType() === "Mesh" ? this.mediaPlane && this.mediaPlane.src !== this.data.mediaData[0].url && (this.mediaPlane.removeFromParent(), this.mediaPlane = new oh(this.data.mediaData[0].url, i, { objectFit: this.data.objectFit })) : (s = this.tag3DContentSvelte) == null || s.svelteApp.$set({ tag: this });
|
|
40423
40383
|
}
|
|
40424
40384
|
computeNormal() {
|
|
40425
|
-
return
|
|
40385
|
+
return j1(this.data.mediaPosition);
|
|
40426
40386
|
}
|
|
40427
40387
|
}
|
|
40428
40388
|
const S7 = /* @__PURE__ */ new Map(), D7 = /* @__PURE__ */ new Map();
|
|
@@ -40454,7 +40414,7 @@ class T7 extends vu {
|
|
|
40454
40414
|
(a = (r = this.tag3DContentSvelte) == null ? void 0 : r.dispose) == null || a.call(r);
|
|
40455
40415
|
const c = document.createElement("div");
|
|
40456
40416
|
c.classList.add("tag-media-container");
|
|
40457
|
-
const h = B({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new
|
|
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();
|
|
40458
40418
|
f.position.add(m.clone().setLength(qr.Z_FIGHTING_OFFSET)), this.plugin.group.add(f);
|
|
40459
40419
|
let p;
|
|
40460
40420
|
f.mode === "behind" && this.config.clickable !== !1 && (p = this.addObjectClickHandler(this, f, (v) => {
|
|
@@ -40496,7 +40456,7 @@ class T7 extends vu {
|
|
|
40496
40456
|
return;
|
|
40497
40457
|
const i = this.currentVisible, s = (() => !!(this.mediaPlane && !i))(), o = (() => !!(!this.mediaPlane && i))(), r = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
|
|
40498
40458
|
if ((s || r) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), o || r) {
|
|
40499
|
-
const l = this.position.map(Ki), c = new
|
|
40459
|
+
const l = this.position.map(Ki), c = new N1(e, l, {
|
|
40500
40460
|
videoCoverSrc: t.videoCoverUrl,
|
|
40501
40461
|
playButton: this.data.playIcon,
|
|
40502
40462
|
paused: !((a = this.data.autoplayConfig) != null && a.autoplayVideo),
|
|
@@ -40544,7 +40504,7 @@ class T7 extends vu {
|
|
|
40544
40504
|
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), this.five.needsRender = !0;
|
|
40545
40505
|
}
|
|
40546
40506
|
computeNormal() {
|
|
40547
|
-
return
|
|
40507
|
+
return j1(this.position);
|
|
40548
40508
|
}
|
|
40549
40509
|
}
|
|
40550
40510
|
function L7(n) {
|
|
@@ -40781,7 +40741,7 @@ function V7(n) {
|
|
|
40781
40741
|
}
|
|
40782
40742
|
function H7(n) {
|
|
40783
40743
|
let t, e;
|
|
40784
|
-
return t = new
|
|
40744
|
+
return t = new av({
|
|
40785
40745
|
props: {
|
|
40786
40746
|
icon: (
|
|
40787
40747
|
/*url*/
|
|
@@ -41072,8 +41032,8 @@ function G7(n, t, e) {
|
|
|
41072
41032
|
32 && e(9, s = !i), n.$$.dirty & /*tag*/
|
|
41073
41033
|
2 && e(8, o = (ee = (q = h.style) == null ? void 0 : q.point) != null && ee.url ? (K = h.style) == null ? void 0 : K.point : { url: f4 }), n.$$.dirty & /*tag*/
|
|
41074
41034
|
2 && e(7, r = (() => {
|
|
41075
|
-
var
|
|
41076
|
-
const se = (Se = (
|
|
41035
|
+
var le, Se, ue, Te;
|
|
41036
|
+
const se = (Se = (le = h.style) == null ? void 0 : le.point) == null ? void 0 : Se.width;
|
|
41077
41037
|
if (typeof se == "number")
|
|
41078
41038
|
return se;
|
|
41079
41039
|
const te = (Te = (ue = h.style) == null ? void 0 : ue.point) == null ? void 0 : Te.size;
|
|
@@ -41366,7 +41326,7 @@ function ok(n, t, e) {
|
|
|
41366
41326
|
"size" in r && e(0, i = r.size), "color" in r && e(1, s = r.color), "bgColor" in r && e(2, o = r.bgColor);
|
|
41367
41327
|
}, [i, s, o];
|
|
41368
41328
|
}
|
|
41369
|
-
class
|
|
41329
|
+
class cv extends Ee {
|
|
41370
41330
|
constructor(t) {
|
|
41371
41331
|
super(), Ie(this, t, ok, sk, Ce, { size: 0, color: 1, bgColor: 2 }, nk);
|
|
41372
41332
|
}
|
|
@@ -41668,7 +41628,7 @@ function Ng(n) {
|
|
|
41668
41628
|
}
|
|
41669
41629
|
function vk(n) {
|
|
41670
41630
|
let t, e, i, s, o, r, a, l;
|
|
41671
|
-
r = new
|
|
41631
|
+
r = new cv({});
|
|
41672
41632
|
let c = (
|
|
41673
41633
|
/*mediaCount*/
|
|
41674
41634
|
n[15] > 1 && Gg(n)
|
|
@@ -41839,7 +41799,7 @@ function yk(n) {
|
|
|
41839
41799
|
}
|
|
41840
41800
|
function wk(n) {
|
|
41841
41801
|
let t, e, i;
|
|
41842
|
-
return e = new
|
|
41802
|
+
return e = new cv({}), {
|
|
41843
41803
|
c() {
|
|
41844
41804
|
t = U("div"), me(e.$$.fragment), y(t, "class", "tag-popup-media-type svelte-817q8q");
|
|
41845
41805
|
},
|
|
@@ -42190,7 +42150,7 @@ function Ck(n) {
|
|
|
42190
42150
|
return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
|
|
42191
42151
|
}
|
|
42192
42152
|
function Ik(n, t, e) {
|
|
42193
|
-
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,
|
|
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;
|
|
42194
42154
|
function he() {
|
|
42195
42155
|
return te > 0 ? se / te * 100 : 0;
|
|
42196
42156
|
}
|
|
@@ -42206,7 +42166,7 @@ function Ik(n, t, e) {
|
|
|
42206
42166
|
if (!s)
|
|
42207
42167
|
return;
|
|
42208
42168
|
const ve = he();
|
|
42209
|
-
te > 0 ? (K || (fe = ve), e(9,
|
|
42169
|
+
te > 0 ? (K || (fe = ve), e(9, le = fe), e(10, Se = Ck(fe / 100 * te)), Te = Date.now()) : (fe = 0, e(9, le = 0), e(10, Se = "00:00"));
|
|
42210
42170
|
}
|
|
42211
42171
|
function Me() {
|
|
42212
42172
|
K && te > 0 ? ue || Le() : ue && (cancelAnimationFrame(ue), ue = null);
|
|
@@ -42244,12 +42204,12 @@ function Ik(n, t, e) {
|
|
|
42244
42204
|
if (rt.url) {
|
|
42245
42205
|
const Nt = rt.url.toLowerCase();
|
|
42246
42206
|
if (nh(Nt)) {
|
|
42247
|
-
const Gt =
|
|
42207
|
+
const Gt = R1(Nt);
|
|
42248
42208
|
if (Gt)
|
|
42249
42209
|
return `https://img.youtube.com/vi/${Gt}/hqdefault.jpg`;
|
|
42250
42210
|
}
|
|
42251
42211
|
if (sh(Nt)) {
|
|
42252
|
-
const Gt =
|
|
42212
|
+
const Gt = _1(Nt);
|
|
42253
42213
|
if (Gt)
|
|
42254
42214
|
return `https://vumbnail.com/${Gt}.jpg`;
|
|
42255
42215
|
}
|
|
@@ -42291,7 +42251,7 @@ function Ik(n, t, e) {
|
|
|
42291
42251
|
A,
|
|
42292
42252
|
m,
|
|
42293
42253
|
s,
|
|
42294
|
-
|
|
42254
|
+
le,
|
|
42295
42255
|
Se,
|
|
42296
42256
|
I,
|
|
42297
42257
|
C,
|
|
@@ -43382,14 +43342,14 @@ function Nk(n, t, e) {
|
|
|
43382
43342
|
}, se = ($) => {
|
|
43383
43343
|
f || ue(), $.stopPropagation(), m.emit("click", { event: $, target: "TagPopoverContent", tag: p });
|
|
43384
43344
|
};
|
|
43385
|
-
let te = null,
|
|
43345
|
+
let te = null, le = !1;
|
|
43386
43346
|
function Se() {
|
|
43387
43347
|
w && te && te.parentNode !== w && w.appendChild(te);
|
|
43388
43348
|
}
|
|
43389
43349
|
Lt(() => {
|
|
43390
|
-
(!A || A === document.body) && console.warn("TagPopover 组件警告:禁止使用 document.body 作为 wrapperElement,请传入自定义容器元素。"),
|
|
43350
|
+
(!A || A === document.body) && console.warn("TagPopover 组件警告:禁止使用 document.body 作为 wrapperElement,请传入自定义容器元素。"), le = !0, Se(), A && A !== document.body && e(25, A.style.overflow = "hidden", A);
|
|
43391
43351
|
}), qh(() => {
|
|
43392
|
-
|
|
43352
|
+
le && Se();
|
|
43393
43353
|
}), ri(() => {
|
|
43394
43354
|
te && te.parentNode && te.parentNode.removeChild(te), A && A !== document.body && e(25, A.style.overflow = "", A);
|
|
43395
43355
|
});
|
|
@@ -44020,7 +43980,7 @@ function qk(n, t, e) {
|
|
|
44020
43980
|
C = !0, V && clearTimeout(V);
|
|
44021
43981
|
}, te = () => {
|
|
44022
43982
|
C = !1, K(!1);
|
|
44023
|
-
},
|
|
43983
|
+
}, le = ($) => {
|
|
44024
43984
|
var Me, Re, ve, Be, de, ye;
|
|
44025
43985
|
if (I = !0, p.isPopoverConfigEnabled() && p.isHoverEnabled() && ((Re = (Me = p.currentConfig) == null ? void 0 : Me.popoverConfig) == null ? void 0 : Re.trigger) === "hover") {
|
|
44026
43986
|
if (V && clearTimeout(V), z !== void 0)
|
|
@@ -44112,7 +44072,7 @@ function qk(n, t, e) {
|
|
|
44112
44072
|
q,
|
|
44113
44073
|
se,
|
|
44114
44074
|
te,
|
|
44115
|
-
|
|
44075
|
+
le,
|
|
44116
44076
|
Se,
|
|
44117
44077
|
ue,
|
|
44118
44078
|
Te,
|
|
@@ -44403,7 +44363,7 @@ class i6 extends Ee {
|
|
|
44403
44363
|
function oi(n) {
|
|
44404
44364
|
return Array.isArray(n) ? n.map((t) => [t.x, t.y, t.z]) : [n.x, n.y, n.z];
|
|
44405
44365
|
}
|
|
44406
|
-
const
|
|
44366
|
+
const hv = "Dnalogel-PanoTagPlugin", lD = (n) => `${hv}--${n}`;
|
|
44407
44367
|
class ah extends T8 {
|
|
44408
44368
|
constructor(e, i) {
|
|
44409
44369
|
super(e);
|
|
@@ -44510,7 +44470,7 @@ class ah extends T8 {
|
|
|
44510
44470
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
44511
44471
|
this.TagContainerSvelte = new i6({
|
|
44512
44472
|
target: this.container,
|
|
44513
|
-
props:
|
|
44473
|
+
props: ce(B({}, a), { state: ce(B({}, this.state), { enabled: !1 }) })
|
|
44514
44474
|
}), Xr(() => {
|
|
44515
44475
|
var l;
|
|
44516
44476
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
@@ -44521,7 +44481,7 @@ class ah extends T8 {
|
|
|
44521
44481
|
});
|
|
44522
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 });
|
|
44523
44483
|
try {
|
|
44524
|
-
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME =
|
|
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__", {
|
|
44525
44485
|
get: function() {
|
|
44526
44486
|
return window.__PANOTAGPLUGIN_DEBUG_LIST__.sort((s, o) => o.tags.length - s.tags.length)[0];
|
|
44527
44487
|
}
|
|
@@ -44578,7 +44538,7 @@ class ah extends T8 {
|
|
|
44578
44538
|
if (r === "2DPoint" || r === "3DPoint")
|
|
44579
44539
|
return new j8(this, o);
|
|
44580
44540
|
if (r === "Model")
|
|
44581
|
-
return new
|
|
44541
|
+
return new lv(this, o);
|
|
44582
44542
|
if (r === "Plane")
|
|
44583
44543
|
return new T7(this, o);
|
|
44584
44544
|
});
|
|
@@ -45188,7 +45148,7 @@ function l6(n, t, e) {
|
|
|
45188
45148
|
}), i.push(l);
|
|
45189
45149
|
});
|
|
45190
45150
|
const s = t.transform, o = i.map((r) => Eo(new P.Vector3().fromArray(r), s).toArray());
|
|
45191
|
-
return [
|
|
45151
|
+
return [ce(B({}, e), { type: "CatmullRomCurve3", points: o })];
|
|
45192
45152
|
}
|
|
45193
45153
|
const c6 = (
|
|
45194
45154
|
/* glsl */
|
|
@@ -45397,7 +45357,7 @@ class lh {
|
|
|
45397
45357
|
const { progress: e } = t;
|
|
45398
45358
|
this.mesh.material.uniforms.vOffset.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
45399
45359
|
});
|
|
45400
|
-
d(this, "logError", (t) =>
|
|
45360
|
+
d(this, "logError", (t) => L1("GuideLineModeItem: ", t));
|
|
45401
45361
|
/** 更新标签字体大小 */
|
|
45402
45362
|
d(this, "updateTagFontSize", () => {
|
|
45403
45363
|
var t, e;
|
|
@@ -45654,7 +45614,7 @@ class lh {
|
|
|
45654
45614
|
s.tag = r, u6(r) && (s.tag.element = (h) => {
|
|
45655
45615
|
var m, p;
|
|
45656
45616
|
(m = s.app) == null || m.$destroy();
|
|
45657
|
-
const u = t === "start" ?
|
|
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) });
|
|
45658
45618
|
return s.app = f, () => f.$destroy();
|
|
45659
45619
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
45660
45620
|
const a = this.meshStyle.translate;
|
|
@@ -45680,8 +45640,8 @@ function u6(n) {
|
|
|
45680
45640
|
const hD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45681
45641
|
__proto__: null,
|
|
45682
45642
|
GuideLineModeItem: lh
|
|
45683
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45684
|
-
class
|
|
45643
|
+
}, Symbol.toStringTag, { value: "Module" })), uv = "CruisePlugin", Ac = `${uv}`;
|
|
45644
|
+
class dv extends us {
|
|
45685
45645
|
constructor(e, i) {
|
|
45686
45646
|
super(e, i);
|
|
45687
45647
|
d(this, "state", {
|
|
@@ -45709,7 +45669,7 @@ class d1 extends us {
|
|
|
45709
45669
|
d(this, "disableErrorLog", () => {
|
|
45710
45670
|
console.error(`${Ac} is disabled`);
|
|
45711
45671
|
});
|
|
45712
|
-
this.config = i, Object.assign(window, { [`__${
|
|
45672
|
+
this.config = i, Object.assign(window, { [`__${uv}_DEBUG__`]: this });
|
|
45713
45673
|
}
|
|
45714
45674
|
/**
|
|
45715
45675
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
@@ -45860,7 +45820,7 @@ function bc(n, t, e) {
|
|
|
45860
45820
|
const i = new P.Vector3().fromArray([(l = e.x) != null ? l : 0, (c = e.y) != null ? c : 0, (h = e.z) != null ? h : 0]), s = n.getPointAt(t).clone().add(i), o = n.getTangentAt(t), { longitude: r, latitude: a } = Qr(o);
|
|
45861
45821
|
return { offset: s.clone(), longitude: r, latitude: a, distance: 0 };
|
|
45862
45822
|
}
|
|
45863
|
-
let
|
|
45823
|
+
let fv = class extends dv {
|
|
45864
45824
|
constructor(e, i) {
|
|
45865
45825
|
var r;
|
|
45866
45826
|
super(e, i);
|
|
@@ -45873,7 +45833,7 @@ let f1 = class extends d1 {
|
|
|
45873
45833
|
this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
|
|
45874
45834
|
});
|
|
45875
45835
|
d(this, "moveToStart", () => {
|
|
45876
|
-
this.five.setState(
|
|
45836
|
+
this.five.setState(ce(B({}, bc(this.curve, 0, this.curveOffset)), { mode: "Model" }));
|
|
45877
45837
|
});
|
|
45878
45838
|
d(this, "playFromStart", () => {
|
|
45879
45839
|
this.clearPauseData(), this.setState({ playing: !0 });
|
|
@@ -45943,7 +45903,7 @@ let f1 = class extends d1 {
|
|
|
45943
45903
|
let o = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
|
|
45944
45904
|
(o < 0 || o >= 1) && (o = 0);
|
|
45945
45905
|
const r = bc(this.curve, o, this.curveOffset);
|
|
45946
|
-
if (this.hooks.emit("progressChange", o), this.five.setState(
|
|
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) {
|
|
45947
45907
|
const c = this.addInterruptListener(() => {
|
|
45948
45908
|
this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
|
|
45949
45909
|
});
|
|
@@ -45991,7 +45951,7 @@ const f6 = (n) => ie(void 0, null, function* () {
|
|
|
45991
45951
|
} catch (t) {
|
|
45992
45952
|
}
|
|
45993
45953
|
});
|
|
45994
|
-
function
|
|
45954
|
+
function pv(n) {
|
|
45995
45955
|
return new Promise((t) => {
|
|
45996
45956
|
setTimeout(() => {
|
|
45997
45957
|
t();
|
|
@@ -46009,7 +45969,7 @@ function p6(n) {
|
|
|
46009
45969
|
});
|
|
46010
45970
|
});
|
|
46011
45971
|
}
|
|
46012
|
-
class xu extends
|
|
45972
|
+
class xu extends dv {
|
|
46013
45973
|
constructor(e, i) {
|
|
46014
45974
|
super(e, i);
|
|
46015
45975
|
d(this, "state", {
|
|
@@ -46062,7 +46022,7 @@ class xu extends d1 {
|
|
|
46062
46022
|
const v = a.length;
|
|
46063
46023
|
a[v] = [f];
|
|
46064
46024
|
}
|
|
46065
|
-
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && r.useGuildLine !== !1 && (this.GuideLine =
|
|
46025
|
+
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && r.useGuildLine !== !1 && (this.GuideLine = mv(this.five, this.config)), (u = this.GuideLine) == null || u.load({ routes: a.map((f) => ({ panoIndexList: f })), config: r.guildPluginOptions }), i ? this.setState(i, { userAction: s }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug("WORKPLUGIN loaded", r), this.hooks.emit("dataLoaded", r);
|
|
46066
46026
|
});
|
|
46067
46027
|
}
|
|
46068
46028
|
/**
|
|
@@ -46078,7 +46038,7 @@ class xu extends d1 {
|
|
|
46078
46038
|
* @description Play from first keyframe
|
|
46079
46039
|
*/
|
|
46080
46040
|
playFromStart(e) {
|
|
46081
|
-
return this.playFrom(
|
|
46041
|
+
return this.playFrom(ce(B({}, e), { index: 0 }));
|
|
46082
46042
|
}
|
|
46083
46043
|
/**
|
|
46084
46044
|
* @description Format data
|
|
@@ -46096,7 +46056,7 @@ class xu extends d1 {
|
|
|
46096
46056
|
keyframes: i.keyframes.map((s, o) => {
|
|
46097
46057
|
var l;
|
|
46098
46058
|
const r = i.keyframes[o + 1], a = (() => !r || r.start === void 0 || s.end === void 0 ? 0 : r.start - s.end)();
|
|
46099
|
-
return
|
|
46059
|
+
return ce(B({ id: (l = s.uuid) != null ? l : Dt(), moveIndex: o, stay: a, index: o }, s), { guildPluginOptions: i.guildPluginOptions });
|
|
46100
46060
|
})
|
|
46101
46061
|
};
|
|
46102
46062
|
if (i.panoIndexList) {
|
|
@@ -46176,7 +46136,7 @@ class xu extends d1 {
|
|
|
46176
46136
|
r.emit("playIndexChange", p.index, p), yield this.playKeyframe(p, {
|
|
46177
46137
|
moveEffect: h === !1 ? o.moveToFirstPanoEffect : void 0,
|
|
46178
46138
|
duration: h === !1 && typeof o.moveToFirstPanoDuration == "number" ? o.moveToFirstPanoDuration : void 0
|
|
46179
|
-
}), p.stay && (yield
|
|
46139
|
+
}), p.stay && (yield pv(p.stay)), h === !1 && (h = !0);
|
|
46180
46140
|
} catch (g) {
|
|
46181
46141
|
return Promise.resolve("broke");
|
|
46182
46142
|
}
|
|
@@ -46399,7 +46359,7 @@ class xu extends d1 {
|
|
|
46399
46359
|
});
|
|
46400
46360
|
}
|
|
46401
46361
|
}
|
|
46402
|
-
class
|
|
46362
|
+
class gv {
|
|
46403
46363
|
constructor(t) {
|
|
46404
46364
|
d(this, "id");
|
|
46405
46365
|
d(this, "renderID");
|
|
@@ -46410,7 +46370,7 @@ class g1 {
|
|
|
46410
46370
|
d(this, "_visible", !0);
|
|
46411
46371
|
d(this, "plugin");
|
|
46412
46372
|
d(this, "five");
|
|
46413
|
-
d(this, "logError", (t) =>
|
|
46373
|
+
d(this, "logError", (t) => L1("GuideLineItem: ", t));
|
|
46414
46374
|
this.id = t.id, this.five = t.five, this.plugin = t.plugin, this.panoramaItem = new lh(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new lh(this.five, { mode: "model", plugin: this.plugin, parent: this });
|
|
46415
46375
|
}
|
|
46416
46376
|
get visible() {
|
|
@@ -46424,7 +46384,7 @@ class g1 {
|
|
|
46424
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;
|
|
46425
46385
|
if (e.pano_group) {
|
|
46426
46386
|
const h = t === "panorama" && e.panorama_style.skip_group === !0;
|
|
46427
|
-
i.setGeometryByPanoGroup(e.pano_group, B(
|
|
46387
|
+
i.setGeometryByPanoGroup(e.pano_group, B(ce(B({}, e), { skipPanoGroup: h }), r));
|
|
46428
46388
|
} else
|
|
46429
46389
|
e.path && i.setGeometryByPath(o, B({}, r));
|
|
46430
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);
|
|
@@ -46455,7 +46415,7 @@ class g1 {
|
|
|
46455
46415
|
}
|
|
46456
46416
|
function g6(n, t) {
|
|
46457
46417
|
return ie(this, null, function* () {
|
|
46458
|
-
const e = new
|
|
46418
|
+
const e = new fv(n);
|
|
46459
46419
|
yield e.load(t), e.playFromStart();
|
|
46460
46420
|
});
|
|
46461
46421
|
}
|
|
@@ -46496,7 +46456,7 @@ function m6(n, t) {
|
|
|
46496
46456
|
}
|
|
46497
46457
|
const dD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46498
46458
|
__proto__: null,
|
|
46499
|
-
GuideLineItem:
|
|
46459
|
+
GuideLineItem: gv
|
|
46500
46460
|
}, Symbol.toStringTag, { value: "Module" })), ch = "GuideLinePlugin", cm = `${ch}`;
|
|
46501
46461
|
let v6 = class extends kn {
|
|
46502
46462
|
constructor(e, i) {
|
|
@@ -46530,7 +46490,7 @@ let v6 = class extends kn {
|
|
|
46530
46490
|
var p, g, v, A, w, E, k;
|
|
46531
46491
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
46532
46492
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
46533
|
-
const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : Kn(this.staticPrefix, Rh), h =
|
|
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), {
|
|
46534
46494
|
model_style: {
|
|
46535
46495
|
texture: { url: c }
|
|
46536
46496
|
},
|
|
@@ -46589,7 +46549,7 @@ let v6 = class extends kn {
|
|
|
46589
46549
|
addGuideLineItem(e) {
|
|
46590
46550
|
const i = e.render_id || e.id, s = this.itemMap.get(i);
|
|
46591
46551
|
s && this.removeGuideLineItem(s);
|
|
46592
|
-
const o = new
|
|
46552
|
+
const o = new gv({ five: this.five, id: i, plugin: this });
|
|
46593
46553
|
return this.itemMap.set(i, o), e && o.setData(e), this.heightOffset += 1e-4, o.modelItem.setHeightOffset(this.heightOffset), o.panoramaItem.setHeightOffset(this.heightOffset), o;
|
|
46594
46554
|
}
|
|
46595
46555
|
processItemUrls(e) {
|
|
@@ -46597,16 +46557,16 @@ let v6 = class extends kn {
|
|
|
46597
46557
|
const i = B({}, e), s = Pl;
|
|
46598
46558
|
if (i.panorama_style) {
|
|
46599
46559
|
const c = (r = (o = i.panorama_style.texture) == null ? void 0 : o.url) != null ? r : s;
|
|
46600
|
-
i.panorama_style =
|
|
46601
|
-
texture:
|
|
46560
|
+
i.panorama_style = ce(B({}, i.panorama_style), {
|
|
46561
|
+
texture: ce(B({}, i.panorama_style.texture), {
|
|
46602
46562
|
url: Kn(this.staticPrefix, c)
|
|
46603
46563
|
})
|
|
46604
46564
|
});
|
|
46605
46565
|
}
|
|
46606
46566
|
if (i.model_style) {
|
|
46607
46567
|
const c = (l = (a = i.model_style.texture) == null ? void 0 : a.url) != null ? l : s;
|
|
46608
|
-
i.model_style =
|
|
46609
|
-
texture:
|
|
46568
|
+
i.model_style = ce(B({}, i.model_style), {
|
|
46569
|
+
texture: ce(B({}, i.model_style.texture), {
|
|
46610
46570
|
url: Kn(this.staticPrefix, c)
|
|
46611
46571
|
})
|
|
46612
46572
|
});
|
|
@@ -46661,9 +46621,9 @@ let v6 = class extends kn {
|
|
|
46661
46621
|
return typeof e == "object" && e !== null && e.data ? e.data : e;
|
|
46662
46622
|
}
|
|
46663
46623
|
};
|
|
46664
|
-
const
|
|
46624
|
+
const mv = (n, t) => new v6(n, t), A6 = mv, pD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46665
46625
|
__proto__: null
|
|
46666
|
-
}, Symbol.toStringTag, { value: "Module" })), gD = (n, t) => new xu(n, t), mD = (n, t) => new
|
|
46626
|
+
}, Symbol.toStringTag, { value: "Module" })), gD = (n, t) => new xu(n, t), mD = (n, t) => new fv(n, t);
|
|
46667
46627
|
function Su(n, t, e) {
|
|
46668
46628
|
if (e) {
|
|
46669
46629
|
const s = new P.Vector3().subVectors(n.position, e).applyQuaternion(n.quaternion.clone().inverse()).applyQuaternion(t).add(e);
|
|
@@ -48362,7 +48322,7 @@ const hh = "Object3DHelperPlugin", Lu = hh, ex = () => {
|
|
|
48362
48322
|
}, ix = () => {
|
|
48363
48323
|
console.error(`${Lu} is disabled`);
|
|
48364
48324
|
};
|
|
48365
|
-
class
|
|
48325
|
+
class vv extends us {
|
|
48366
48326
|
constructor(e) {
|
|
48367
48327
|
super(e);
|
|
48368
48328
|
d(this, "name", hh);
|
|
@@ -48567,7 +48527,7 @@ class v1 extends us {
|
|
|
48567
48527
|
return e;
|
|
48568
48528
|
}
|
|
48569
48529
|
}
|
|
48570
|
-
const AD = (n) => new
|
|
48530
|
+
const AD = (n) => new vv(n), nx = (
|
|
48571
48531
|
/* glsl */
|
|
48572
48532
|
`
|
|
48573
48533
|
varying vec2 vUv;
|
|
@@ -48905,7 +48865,7 @@ class rx extends us {
|
|
|
48905
48865
|
o.video_list.forEach((l) => {
|
|
48906
48866
|
this.controllerMap.set(
|
|
48907
48867
|
l.render_id,
|
|
48908
|
-
new dm(this.five,
|
|
48868
|
+
new dm(this.five, ce(B({}, l), {
|
|
48909
48869
|
fiveUtil: this.fiveUtil,
|
|
48910
48870
|
panoIndex: r,
|
|
48911
48871
|
renderID: a,
|
|
@@ -48984,7 +48944,7 @@ class rx extends us {
|
|
|
48984
48944
|
const o = s.render_id;
|
|
48985
48945
|
this.controllerMap.set(
|
|
48986
48946
|
s.render_id,
|
|
48987
|
-
new dm(this.five,
|
|
48947
|
+
new dm(this.five, ce(B({}, s), {
|
|
48988
48948
|
fiveUtil: this.fiveUtil,
|
|
48989
48949
|
panoIndex: e,
|
|
48990
48950
|
renderID: o,
|
|
@@ -49024,7 +48984,7 @@ class rx extends us {
|
|
|
49024
48984
|
const bD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49025
48985
|
__proto__: null
|
|
49026
48986
|
}, Symbol.toStringTag, { value: "Module" })), yD = (n) => new rx(n);
|
|
49027
|
-
function
|
|
48987
|
+
function Av(n) {
|
|
49028
48988
|
const t = /* @__PURE__ */ new Map();
|
|
49029
48989
|
return n.forEach((e) => e.pipes.forEach((i) => t.set(i.id, i))), Array.from(t.values());
|
|
49030
48990
|
}
|
|
@@ -49035,7 +48995,7 @@ function ax(n) {
|
|
|
49035
48995
|
);
|
|
49036
48996
|
return s || console.warn(`Cannot find pipeline with startLibraryID ${e} and endLibraryID ${i}`), s;
|
|
49037
48997
|
}).filter(Fe);
|
|
49038
|
-
return
|
|
48998
|
+
return Av(t);
|
|
49039
48999
|
}
|
|
49040
49000
|
function lx(n) {
|
|
49041
49001
|
if (n.quality === 0)
|
|
@@ -49062,7 +49022,7 @@ function cx(n, t) {
|
|
|
49062
49022
|
}).filter(Fe);
|
|
49063
49023
|
return { startLibraryID: r, endLibraryID: a, pipes: c };
|
|
49064
49024
|
});
|
|
49065
|
-
return { pipes:
|
|
49025
|
+
return { pipes: Av(e), pipelines: e };
|
|
49066
49026
|
}
|
|
49067
49027
|
function hx(n, t) {
|
|
49068
49028
|
const e = 1 - n;
|
|
@@ -49826,7 +49786,7 @@ function Mx(n, t, e) {
|
|
|
49826
49786
|
M
|
|
49827
49787
|
];
|
|
49828
49788
|
}
|
|
49829
|
-
class
|
|
49789
|
+
class bv extends Ee {
|
|
49830
49790
|
constructor(t) {
|
|
49831
49791
|
super(), Ie(
|
|
49832
49792
|
this,
|
|
@@ -50054,7 +50014,7 @@ class xx {
|
|
|
50054
50014
|
return;
|
|
50055
50015
|
this.mounted = !0, this.updateVisible(), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.modelGroup.add(this.makerObject, this.outline);
|
|
50056
50016
|
const t = !!this.name, e = this.plugin.tagDomContainer;
|
|
50057
|
-
t && (this.tagApp = new
|
|
50017
|
+
t && (this.tagApp = new bv({
|
|
50058
50018
|
target: e,
|
|
50059
50019
|
props: {
|
|
50060
50020
|
fontSize: this.currentFontSize,
|
|
@@ -50358,9 +50318,9 @@ let Dx = class extends kn {
|
|
|
50358
50318
|
return i(e) ? {
|
|
50359
50319
|
list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
|
|
50360
50320
|
const o = new P.Shape(), r = s.object_data.points[0];
|
|
50361
|
-
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]),
|
|
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), {
|
|
50362
50322
|
floor_index: s.object_data.floorIndex,
|
|
50363
|
-
object_data:
|
|
50323
|
+
object_data: ce(B({}, s.object_data), {
|
|
50364
50324
|
bottom_y: r[1] + s.object_data.fixedY,
|
|
50365
50325
|
shape: o.toJSON(),
|
|
50366
50326
|
height: s.object_data.height + s.object_data.fixedHeight
|
|
@@ -50651,7 +50611,7 @@ class Lx {
|
|
|
50651
50611
|
get cursor() {
|
|
50652
50612
|
if (!this.inited)
|
|
50653
50613
|
throw new Error("Global not inited");
|
|
50654
|
-
return this._cursor ? this._cursor : (this._cursor = new
|
|
50614
|
+
return this._cursor ? this._cursor : (this._cursor = new S1(this.five.getElement()), this._cursor);
|
|
50655
50615
|
}
|
|
50656
50616
|
get pointSelector() {
|
|
50657
50617
|
var i, s;
|
|
@@ -50661,7 +50621,7 @@ class Lx {
|
|
|
50661
50621
|
return this._pointSelector;
|
|
50662
50622
|
const t = (i = this.config) == null ? void 0 : i.magnifier;
|
|
50663
50623
|
let e = t === null || t === !1 ? { magnifier: null } : { magnifierParams: t };
|
|
50664
|
-
return (s = this.config) != null && s.hideCursorCircle && (e =
|
|
50624
|
+
return (s = this.config) != null && s.hideCursorCircle && (e = ce(B({}, e), { pointHelper: null })), this._pointSelector = new pl(this.five, {
|
|
50665
50625
|
mode: "cursor",
|
|
50666
50626
|
helper: e
|
|
50667
50627
|
}), this._pointSelector;
|
|
@@ -50674,13 +50634,13 @@ class Lx {
|
|
|
50674
50634
|
get object3DHelper() {
|
|
50675
50635
|
if (!this.inited)
|
|
50676
50636
|
throw new Error("Global not inited");
|
|
50677
|
-
return this._object3DHelper ? this._object3DHelper : (this._object3DHelper = new
|
|
50637
|
+
return this._object3DHelper ? this._object3DHelper : (this._object3DHelper = new vv(this.five), this._object3DHelper);
|
|
50678
50638
|
}
|
|
50679
50639
|
}
|
|
50680
|
-
const
|
|
50681
|
-
window.globalModules =
|
|
50682
|
-
function
|
|
50683
|
-
return n ? t(n) ? n : n.parent ?
|
|
50640
|
+
const yv = new Lx();
|
|
50641
|
+
window.globalModules = yv;
|
|
50642
|
+
function wv(n, t) {
|
|
50643
|
+
return n ? t(n) ? n : n.parent ? wv(n.parent, t) : null : null;
|
|
50684
50644
|
}
|
|
50685
50645
|
function zx(n) {
|
|
50686
50646
|
const t = [...n];
|
|
@@ -50689,7 +50649,7 @@ function zx(n) {
|
|
|
50689
50649
|
const e = n[n.length - 1], i = n[0];
|
|
50690
50650
|
return e.equals(i) || t.push(i), t;
|
|
50691
50651
|
}
|
|
50692
|
-
class
|
|
50652
|
+
class Pv extends fi {
|
|
50693
50653
|
constructor(e) {
|
|
50694
50654
|
super();
|
|
50695
50655
|
d(this, "name", "PolylineBaseMesh");
|
|
@@ -50747,7 +50707,7 @@ class P1 extends fi {
|
|
|
50747
50707
|
if (r !== 0 && a === void 0)
|
|
50748
50708
|
return;
|
|
50749
50709
|
const l = (c = this.lines[r]) != null ? c : (() => {
|
|
50750
|
-
const h = new _r(
|
|
50710
|
+
const h = new _r(ce(B({}, this.style), {
|
|
50751
50711
|
pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
|
|
50752
50712
|
}));
|
|
50753
50713
|
return this.lines[r] = h, this.add(h), h;
|
|
@@ -50765,15 +50725,15 @@ class P1 extends fi {
|
|
|
50765
50725
|
this.lines.forEach((e) => e.unhighlight());
|
|
50766
50726
|
}
|
|
50767
50727
|
}
|
|
50768
|
-
class Fs extends
|
|
50728
|
+
class Fs extends Pv {
|
|
50769
50729
|
constructor(...e) {
|
|
50770
|
-
super(
|
|
50730
|
+
super(ce(B({}, e[0]), { withDots: !1 }));
|
|
50771
50731
|
d(this, "name", "PolylineMesh");
|
|
50772
50732
|
}
|
|
50773
50733
|
}
|
|
50774
|
-
class $n extends
|
|
50734
|
+
class $n extends Pv {
|
|
50775
50735
|
constructor(...e) {
|
|
50776
|
-
super(
|
|
50736
|
+
super(ce(B({}, e[0]), { withDots: !0 }));
|
|
50777
50737
|
d(this, "name", "PolylineWithDotsMesh");
|
|
50778
50738
|
}
|
|
50779
50739
|
}
|
|
@@ -50803,7 +50763,7 @@ class Fi extends fi {
|
|
|
50803
50763
|
const s = i != null ? i : this;
|
|
50804
50764
|
return s.updateMatrixWorld(), ob(s, e);
|
|
50805
50765
|
});
|
|
50806
|
-
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 =
|
|
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", () => {
|
|
50807
50767
|
this.stopCreating();
|
|
50808
50768
|
}), this.config.defaultAction && (ct("backspace, delete", () => {
|
|
50809
50769
|
this.selected && this.delete();
|
|
@@ -51024,7 +50984,7 @@ class mm extends Fi {
|
|
|
51024
50984
|
return this._editor || (this._editor = new jx(this)), this._editor;
|
|
51025
50985
|
}
|
|
51026
50986
|
get data() {
|
|
51027
|
-
return
|
|
50987
|
+
return ce(B({}, this.baseData), {
|
|
51028
50988
|
points: oi(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
51029
50989
|
style: {
|
|
51030
50990
|
lineColor: new P.Color(this.polyLineMesh.lineColor).getHex(),
|
|
@@ -51075,7 +51035,7 @@ function Rx(n, t, e) {
|
|
|
51075
51035
|
return;
|
|
51076
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);
|
|
51077
51037
|
i.add(l);
|
|
51078
|
-
const c = new Fs(
|
|
51038
|
+
const c = new Fs(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
51079
51039
|
i.add(c), t.enable();
|
|
51080
51040
|
const h = [];
|
|
51081
51041
|
let u, f, m;
|
|
@@ -51136,7 +51096,7 @@ class vm extends Fi {
|
|
|
51136
51096
|
return this._editor || (this._editor = new _x(this)), this._editor;
|
|
51137
51097
|
}
|
|
51138
51098
|
get data() {
|
|
51139
|
-
return
|
|
51099
|
+
return ce(B({}, this.baseData), {
|
|
51140
51100
|
point: oi(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
51141
51101
|
style: {
|
|
51142
51102
|
color: this.pointMesh.color.getHex(),
|
|
@@ -51168,11 +51128,11 @@ class vm extends Fi {
|
|
|
51168
51128
|
*/
|
|
51169
51129
|
create(e) {
|
|
51170
51130
|
return ie(this, null, function* () {
|
|
51171
|
-
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new Cn(e)), yield
|
|
51131
|
+
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new Cn(e)), yield Cv(this.pointMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
51172
51132
|
});
|
|
51173
51133
|
}
|
|
51174
51134
|
}
|
|
51175
|
-
function
|
|
51135
|
+
function Cv(n, t) {
|
|
51176
51136
|
return new Promise((e, i) => {
|
|
51177
51137
|
t.enable(), n.visible = !1;
|
|
51178
51138
|
const s = (l) => {
|
|
@@ -51196,7 +51156,7 @@ class dh extends Uo {
|
|
|
51196
51156
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
51197
51157
|
}
|
|
51198
51158
|
get style() {
|
|
51199
|
-
return
|
|
51159
|
+
return ce(B({}, super.style), {
|
|
51200
51160
|
lineWidth: this.lineWidth,
|
|
51201
51161
|
lineColor: this.lineColor
|
|
51202
51162
|
});
|
|
@@ -51216,7 +51176,7 @@ class dh extends Uo {
|
|
|
51216
51176
|
super.setPoints(e, B({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, B({ closed: !0 }, i)), this.addIfNotExists(this.line));
|
|
51217
51177
|
}
|
|
51218
51178
|
setStyle(e) {
|
|
51219
|
-
super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(
|
|
51179
|
+
super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(ce(B({}, e), {
|
|
51220
51180
|
// 强制设置line的lineOpacity
|
|
51221
51181
|
lineOpacity: e.lineOpacity
|
|
51222
51182
|
})) : this.line.setStyle(e), this.needsRender = !0;
|
|
@@ -51261,7 +51221,7 @@ class Am extends Fi {
|
|
|
51261
51221
|
return this._editor || (this._editor = new Bx(this)), this._editor;
|
|
51262
51222
|
}
|
|
51263
51223
|
get data() {
|
|
51264
|
-
return this.updateMatrixWorld(),
|
|
51224
|
+
return this.updateMatrixWorld(), ce(B({}, this.baseData), {
|
|
51265
51225
|
points: oi(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
51266
51226
|
style: {
|
|
51267
51227
|
color: this.areaMesh.color.getHex(),
|
|
@@ -51321,19 +51281,19 @@ function Ou(n, t, e) {
|
|
|
51321
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);
|
|
51322
51282
|
const u = new Fs(n.style);
|
|
51323
51283
|
r == null || r.add(u);
|
|
51324
|
-
const f = new Fs(
|
|
51284
|
+
const f = new Fs(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
51325
51285
|
r == null || r.add(f);
|
|
51326
51286
|
let m = [];
|
|
51327
51287
|
function p() {
|
|
51328
|
-
var
|
|
51288
|
+
var le, Se;
|
|
51329
51289
|
m.forEach((ue) => {
|
|
51330
51290
|
var Te;
|
|
51331
51291
|
return (Te = ue.parent) == null ? void 0 : Te.remove(ue);
|
|
51332
51292
|
});
|
|
51333
|
-
const te = (Se = (
|
|
51293
|
+
const te = (Se = (le = n.line) == null ? void 0 : le.style) != null ? Se : n.style;
|
|
51334
51294
|
m = v.map((ue, Te) => {
|
|
51335
51295
|
var he;
|
|
51336
|
-
const fe = new Cn(
|
|
51296
|
+
const fe = new Cn(ce(B({}, te), {
|
|
51337
51297
|
color: (he = te.pointColor) != null ? he : te.lineColor,
|
|
51338
51298
|
tip: void 0,
|
|
51339
51299
|
point: ue
|
|
@@ -51343,8 +51303,8 @@ function Ou(n, t, e) {
|
|
|
51343
51303
|
}
|
|
51344
51304
|
function g() {
|
|
51345
51305
|
m.forEach((te) => {
|
|
51346
|
-
var
|
|
51347
|
-
return (
|
|
51306
|
+
var le;
|
|
51307
|
+
return (le = te.parent) == null ? void 0 : le.remove(te);
|
|
51348
51308
|
}), m = [];
|
|
51349
51309
|
}
|
|
51350
51310
|
t.enable(), l && t.setAdherePoints([]);
|
|
@@ -51359,18 +51319,18 @@ function Ou(n, t, e) {
|
|
|
51359
51319
|
}, b = (te) => {
|
|
51360
51320
|
var Se;
|
|
51361
51321
|
L.length = 0;
|
|
51362
|
-
let
|
|
51363
|
-
l && (
|
|
51322
|
+
let le = v.length === 0 ? te.point : A.clone();
|
|
51323
|
+
l && (le = le.clone().setY(h)), v.push(le), n.setPoints(v, { closed: !1 }), p(), (Se = e == null ? void 0 : e.onPointPlaced) == null || Se.call(e, v), E && (I(), s());
|
|
51364
51324
|
}, C = (te) => {
|
|
51365
|
-
const
|
|
51325
|
+
const le = () => {
|
|
51366
51326
|
u.setPoints([]), f.setPoints([]), n.setPoints(v), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render();
|
|
51367
51327
|
};
|
|
51368
51328
|
if (!te) {
|
|
51369
|
-
|
|
51329
|
+
le(), p();
|
|
51370
51330
|
return;
|
|
51371
51331
|
}
|
|
51372
51332
|
if (k = te, !(v != null && v.length))
|
|
51373
|
-
return
|
|
51333
|
+
return le();
|
|
51374
51334
|
const Se = v.at(-1).clone();
|
|
51375
51335
|
if (v.length < 3 && (l ? (A = te.point.clone().setY(h), u.setPoints([Se, A]), f.setPoints([])) : a === "none" ? (A = te.point, u.setPoints([Se, A]), f.setPoints([])) : a === "xoz" ? (w = w != null ? w : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), v[0]), t.plane = w, A = w.projectPoint(te.point, new P.Vector3()), u.setPoints([Se, A]), f.setPoints([A, te.point])) : a === "y" && (v.length === 1 ? (A = te.point, u.setPoints([Se, A]), f.setPoints([])) : (w = w != null ? w : new P.Plane().setFromCoplanarPoints(v[0], v[1], new P.Vector3(0, 1, 0).add(v[0])), t.plane = w, A = w.projectPoint(te.point, new P.Vector3()), u.setPoints([Se, A]), f.setPoints([A, te.point])))), v.length >= 3) {
|
|
51376
51336
|
l ? A = te.point.clone().setY(h) : A = n.projectPoint(te.point);
|
|
@@ -51413,7 +51373,7 @@ function Vx(n) {
|
|
|
51413
51373
|
}
|
|
51414
51374
|
function Hx(n) {
|
|
51415
51375
|
const t = n.map((i) => new P.Vector3(i[0], i[1], i[2]));
|
|
51416
|
-
return
|
|
51376
|
+
return h1(t);
|
|
51417
51377
|
}
|
|
51418
51378
|
class Fx extends P.BufferGeometry {
|
|
51419
51379
|
constructor(e) {
|
|
@@ -51523,7 +51483,7 @@ class zs extends fi {
|
|
|
51523
51483
|
}
|
|
51524
51484
|
let o = 0, r = new P.Vector3();
|
|
51525
51485
|
for (const [c, h, u] of s) {
|
|
51526
|
-
const f = lu(c, h, u), m =
|
|
51486
|
+
const f = lu(c, h, u), m = p1(c, h, u, f);
|
|
51527
51487
|
o += f, r.add(m);
|
|
51528
51488
|
}
|
|
51529
51489
|
r = r.divideScalar(o);
|
|
@@ -51682,7 +51642,7 @@ class zs extends fi {
|
|
|
51682
51642
|
};
|
|
51683
51643
|
const w = 3e3;
|
|
51684
51644
|
let E = 0;
|
|
51685
|
-
const k =
|
|
51645
|
+
const k = Nv.shared.add((L, D) => {
|
|
51686
51646
|
E += D;
|
|
51687
51647
|
let j = E / w;
|
|
51688
51648
|
j > 1 && (j = 1);
|
|
@@ -51732,7 +51692,7 @@ class zs extends fi {
|
|
|
51732
51692
|
this.prismMesh.visible = !0, this.edgeMesh.visible = !0, this.prismMesh.setStyle({ opacity: this.prismMesh.style.opacity }), this.edgeMesh.setStyle({ lineOpacity: 1 });
|
|
51733
51693
|
}
|
|
51734
51694
|
}
|
|
51735
|
-
class
|
|
51695
|
+
class Iv extends $r {
|
|
51736
51696
|
constructor(t) {
|
|
51737
51697
|
super(t, () => ({
|
|
51738
51698
|
positionFrom: () => t.worldCenter,
|
|
@@ -51779,10 +51739,10 @@ class bm extends Fi {
|
|
|
51779
51739
|
e && (this.prismMesh = new zs(B(B({}, e.style), e)), this.add(this.prismMesh));
|
|
51780
51740
|
}
|
|
51781
51741
|
get editor() {
|
|
51782
|
-
return this._editor || (this._editor = new
|
|
51742
|
+
return this._editor || (this._editor = new Iv(this.prismMesh)), this._editor;
|
|
51783
51743
|
}
|
|
51784
51744
|
get data() {
|
|
51785
|
-
return
|
|
51745
|
+
return ce(B({}, this.baseData), {
|
|
51786
51746
|
points: oi(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
51787
51747
|
heightPoint: oi(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
51788
51748
|
style: {
|
|
@@ -51808,11 +51768,11 @@ class bm extends Fi {
|
|
|
51808
51768
|
}
|
|
51809
51769
|
create(e) {
|
|
51810
51770
|
return ie(this, null, function* () {
|
|
51811
|
-
this.prismMesh = new zs(e), this.add(this.prismMesh), yield
|
|
51771
|
+
this.prismMesh = new zs(e), this.add(this.prismMesh), yield Ev(this.prismMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
51812
51772
|
});
|
|
51813
51773
|
}
|
|
51814
51774
|
}
|
|
51815
|
-
function
|
|
51775
|
+
function Ev(n, t) {
|
|
51816
51776
|
return ie(this, null, function* () {
|
|
51817
51777
|
const e = n.parent, i = new fh(n.style);
|
|
51818
51778
|
e.add(i), yield Ou(i, t).finished, e.remove(i), n.setPoints({ points: i.points });
|
|
@@ -51839,7 +51799,7 @@ function E1(n, t) {
|
|
|
51839
51799
|
});
|
|
51840
51800
|
});
|
|
51841
51801
|
}
|
|
51842
|
-
class
|
|
51802
|
+
class Mv extends $r {
|
|
51843
51803
|
constructor(t) {
|
|
51844
51804
|
super(t, () => ({
|
|
51845
51805
|
yAxis: () => {
|
|
@@ -51972,7 +51932,7 @@ class hl extends ju {
|
|
|
51972
51932
|
super.unhighlight(), this.line.unhighlight();
|
|
51973
51933
|
}
|
|
51974
51934
|
}
|
|
51975
|
-
function
|
|
51935
|
+
function kv(n, t) {
|
|
51976
51936
|
const e = fs(n), i = si(...n), s = t.clone().sub(i);
|
|
51977
51937
|
return e.dot(s) >= 0 ? n : n.slice().reverse();
|
|
51978
51938
|
}
|
|
@@ -51985,10 +51945,10 @@ class ym extends Fi {
|
|
|
51985
51945
|
e && (this.rectangleMesh = new hl(B(B({}, e.style), e)), this.add(this.rectangleMesh));
|
|
51986
51946
|
}
|
|
51987
51947
|
get editor() {
|
|
51988
|
-
return this._editor || (this._editor = new
|
|
51948
|
+
return this._editor || (this._editor = new Mv(this.rectangleMesh)), this._editor;
|
|
51989
51949
|
}
|
|
51990
51950
|
get data() {
|
|
51991
|
-
return
|
|
51951
|
+
return ce(B({}, this.baseData), {
|
|
51992
51952
|
points: oi(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
51993
51953
|
style: {
|
|
51994
51954
|
color: this.rectangleMesh.color.getHex(),
|
|
@@ -52039,7 +51999,7 @@ function Wx(n, t, e) {
|
|
|
52039
51999
|
const { promise: i, reject: s, resolve: o } = Gs(), r = n.parent;
|
|
52040
52000
|
if (!r)
|
|
52041
52001
|
return s(new Error("No container"));
|
|
52042
|
-
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(
|
|
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 }));
|
|
52043
52003
|
r.add(l, h, c), t.enable();
|
|
52044
52004
|
const u = [];
|
|
52045
52005
|
let f = new P.Vector3(), m = new P.Vector3();
|
|
@@ -52072,7 +52032,7 @@ function Wx(n, t, e) {
|
|
|
52072
52032
|
r.remove(l);
|
|
52073
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();
|
|
52074
52034
|
f = new P.Vector3().addVectors(b, C.multiplyScalar(V));
|
|
52075
|
-
const I = [u[0], f, u[1]], M =
|
|
52035
|
+
const I = [u[0], f, u[1]], M = kv(I, lt.modules.five.camera.position);
|
|
52076
52036
|
n.setPoints(M);
|
|
52077
52037
|
return;
|
|
52078
52038
|
}
|
|
@@ -52088,7 +52048,7 @@ function Ux(n, t, e) {
|
|
|
52088
52048
|
const { promise: i, reject: s, resolve: o } = Gs(), r = n.parent;
|
|
52089
52049
|
if (!r)
|
|
52090
52050
|
return s(new Error("No container"));
|
|
52091
|
-
const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(
|
|
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 }));
|
|
52092
52052
|
r.add(l, h, c), t.enable(), t.setAdherePoints(Gx(t.five, { excludes: [n] }));
|
|
52093
52053
|
const u = [];
|
|
52094
52054
|
let f = new P.Vector3(), m = new P.Vector3();
|
|
@@ -52122,7 +52082,7 @@ function Ux(n, t, e) {
|
|
|
52122
52082
|
c.setPoints([(V = k.originalPoint) != null ? V : k.point, k.point]);
|
|
52123
52083
|
const b = new P.Vector3().crossVectors(u[0].clone().sub(u[1]), p.normal).normalize();
|
|
52124
52084
|
f = new P.Line3(u[1].clone().add(b), u[1].clone().sub(b)).closestPointToPoint(k.point, !1, new P.Vector3());
|
|
52125
|
-
const I = [u[0], u[1], f], M =
|
|
52085
|
+
const I = [u[0], u[1], f], M = kv(I, lt.modules.five.camera.position);
|
|
52126
52086
|
n.setPoints(M);
|
|
52127
52087
|
return;
|
|
52128
52088
|
}
|
|
@@ -52133,15 +52093,15 @@ function Ux(n, t, e) {
|
|
|
52133
52093
|
};
|
|
52134
52094
|
return t.on("select", g), t.on("intersectionUpdate", v), t.on("disable", w), i;
|
|
52135
52095
|
}
|
|
52136
|
-
class
|
|
52096
|
+
class xv extends $r {
|
|
52137
52097
|
constructor(t) {
|
|
52138
52098
|
super(t, () => ({ yAxis: () => t.normal }));
|
|
52139
52099
|
}
|
|
52140
52100
|
}
|
|
52141
|
-
function
|
|
52101
|
+
function Sv(n) {
|
|
52142
52102
|
return Math.max(32, Math.min(128, Math.floor(n * 40)));
|
|
52143
52103
|
}
|
|
52144
|
-
class
|
|
52104
|
+
class Dv extends zl {
|
|
52145
52105
|
constructor(e) {
|
|
52146
52106
|
super(e);
|
|
52147
52107
|
d(this, "_normal");
|
|
@@ -52165,13 +52125,13 @@ class D1 extends zl {
|
|
|
52165
52125
|
setPoints(e) {
|
|
52166
52126
|
var i, s, o;
|
|
52167
52127
|
if (this._center = (i = Ue(e.center)) != null ? i : this._center, this._normal = ((s = Ue(e.normal)) != null ? s : this._normal).normalize(), this._radius = (o = e.radius) != null ? o : this._radius, Fe(this._radius) && this._radius !== this.radius) {
|
|
52168
|
-
const r =
|
|
52128
|
+
const r = Sv(this._radius);
|
|
52169
52129
|
this.geometry = new P.CircleGeometry(this._radius, r);
|
|
52170
52130
|
}
|
|
52171
52131
|
this._center && this.position.copy(this._center), this._normal && (this.lookAt(this._normal.clone().add(this._center)), this.normal = this._normal.clone()), this.needsRender = !0;
|
|
52172
52132
|
}
|
|
52173
52133
|
}
|
|
52174
|
-
class Nr extends
|
|
52134
|
+
class Nr extends Dv {
|
|
52175
52135
|
constructor(e) {
|
|
52176
52136
|
const a = e != null ? e : {}, { normal: i, radius: s, center: o } = a, r = Nn(a, ["normal", "radius", "center"]);
|
|
52177
52137
|
super(r);
|
|
@@ -52202,10 +52162,10 @@ class wm extends Fi {
|
|
|
52202
52162
|
e && (this.circleMesh = new Nr(B(B({}, e.style), e)), this.add(this.circleMesh));
|
|
52203
52163
|
}
|
|
52204
52164
|
get editor() {
|
|
52205
|
-
return this._editor || (this._editor = new
|
|
52165
|
+
return this._editor || (this._editor = new xv(this.circleMesh)), this._editor;
|
|
52206
52166
|
}
|
|
52207
52167
|
get data() {
|
|
52208
|
-
return
|
|
52168
|
+
return ce(B({}, this.baseData), {
|
|
52209
52169
|
center: oi(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
52210
52170
|
normal: oi(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
52211
52171
|
radius: this.circleMesh.radius,
|
|
@@ -52334,7 +52294,7 @@ class ph extends fi {
|
|
|
52334
52294
|
this.radius,
|
|
52335
52295
|
this.radius,
|
|
52336
52296
|
e.distanceTo(i),
|
|
52337
|
-
|
|
52297
|
+
Sv(this.radius),
|
|
52338
52298
|
1,
|
|
52339
52299
|
!0
|
|
52340
52300
|
);
|
|
@@ -52342,7 +52302,7 @@ class ph extends fi {
|
|
|
52342
52302
|
this.edgeMesh.position.copy(new P.Vector3().lerpVectors(i, e, 0.5)), this.edgeMesh.quaternion.copy(s);
|
|
52343
52303
|
}
|
|
52344
52304
|
}
|
|
52345
|
-
class
|
|
52305
|
+
class Tv extends $r {
|
|
52346
52306
|
constructor(t) {
|
|
52347
52307
|
super(t, () => {
|
|
52348
52308
|
const e = () => {
|
|
@@ -52387,10 +52347,10 @@ class Pm extends Fi {
|
|
|
52387
52347
|
e && (this.cylinderMesh = new ph(B(B({}, e.style), e)), this.add(this.cylinderMesh));
|
|
52388
52348
|
}
|
|
52389
52349
|
get editor() {
|
|
52390
|
-
return this._editor || (this._editor = new
|
|
52350
|
+
return this._editor || (this._editor = new Tv(this.cylinderMesh)), this._editor;
|
|
52391
52351
|
}
|
|
52392
52352
|
get data() {
|
|
52393
|
-
return
|
|
52353
|
+
return ce(B({}, this.baseData), {
|
|
52394
52354
|
bottomCenter: oi(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
52395
52355
|
topCenter: oi(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
52396
52356
|
radius: this.cylinderMesh.radius,
|
|
@@ -52415,11 +52375,11 @@ class Pm extends Fi {
|
|
|
52415
52375
|
}
|
|
52416
52376
|
create(e) {
|
|
52417
52377
|
return ie(this, null, function* () {
|
|
52418
|
-
this.cylinderMesh = new ph(e), this.add(this.cylinderMesh), yield
|
|
52378
|
+
this.cylinderMesh = new ph(e), this.add(this.cylinderMesh), yield Lv(this.cylinderMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
52419
52379
|
});
|
|
52420
52380
|
}
|
|
52421
52381
|
}
|
|
52422
|
-
function
|
|
52382
|
+
function Lv(n, t) {
|
|
52423
52383
|
return ie(this, null, function* () {
|
|
52424
52384
|
const e = n.parent;
|
|
52425
52385
|
yield _u(n.bottomCircle, t);
|
|
@@ -52446,7 +52406,7 @@ function L1(n, t) {
|
|
|
52446
52406
|
});
|
|
52447
52407
|
});
|
|
52448
52408
|
}
|
|
52449
|
-
class
|
|
52409
|
+
class zv extends $r {
|
|
52450
52410
|
constructor(t) {
|
|
52451
52411
|
super(t, () => ({
|
|
52452
52412
|
positionFrom: () => t.worldCenter,
|
|
@@ -52567,10 +52527,10 @@ class Cm extends Fi {
|
|
|
52567
52527
|
e && (this.boxMesh = new gh(B(B({}, e.style), e)), this.add(this.boxMesh));
|
|
52568
52528
|
}
|
|
52569
52529
|
get editor() {
|
|
52570
|
-
return this._editor || (this._editor = new
|
|
52530
|
+
return this._editor || (this._editor = new zv(this.boxMesh)), this._editor;
|
|
52571
52531
|
}
|
|
52572
52532
|
get data() {
|
|
52573
|
-
return
|
|
52533
|
+
return ce(B({}, this.baseData), {
|
|
52574
52534
|
points: oi(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
52575
52535
|
heightPoint: oi(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
52576
52536
|
style: {
|
|
@@ -52597,11 +52557,11 @@ class Cm extends Fi {
|
|
|
52597
52557
|
}
|
|
52598
52558
|
create(e) {
|
|
52599
52559
|
return ie(this, null, function* () {
|
|
52600
|
-
this.removeChildren(), this.boxMesh = new gh(e), this.add(this.boxMesh), yield
|
|
52560
|
+
this.removeChildren(), this.boxMesh = new gh(e), this.add(this.boxMesh), yield Ov(this.boxMesh, this.pointSelector, e), this.config.defaultAction && this.editor.enable();
|
|
52601
52561
|
});
|
|
52602
52562
|
}
|
|
52603
52563
|
}
|
|
52604
|
-
function
|
|
52564
|
+
function Ov(n, t, e) {
|
|
52605
52565
|
return ie(this, null, function* () {
|
|
52606
52566
|
return new Promise((i, s) => ie(this, null, function* () {
|
|
52607
52567
|
const o = n.parent;
|
|
@@ -52652,7 +52612,7 @@ class Im extends Fi {
|
|
|
52652
52612
|
return this._editor || (this._editor = new Ox(this)), this._editor;
|
|
52653
52613
|
}
|
|
52654
52614
|
get data() {
|
|
52655
|
-
return
|
|
52615
|
+
return ce(B({}, this.baseData), {
|
|
52656
52616
|
points: oi(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
52657
52617
|
style: {
|
|
52658
52618
|
lineColor: new P.Color(this.lineMesh.color).getHex(),
|
|
@@ -52692,18 +52652,18 @@ class Im extends Fi {
|
|
|
52692
52652
|
return ie(this, null, function* () {
|
|
52693
52653
|
this.removeChildren();
|
|
52694
52654
|
const i = new _r(e);
|
|
52695
|
-
this.lineMesh = i, this.add(this.lineMesh), this.creatingObject =
|
|
52655
|
+
this.lineMesh = i, this.add(this.lineMesh), this.creatingObject = jv(i, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
52696
52656
|
});
|
|
52697
52657
|
}
|
|
52698
52658
|
}
|
|
52699
|
-
function
|
|
52659
|
+
function jv(n, t, e) {
|
|
52700
52660
|
var j;
|
|
52701
52661
|
const i = n.parent;
|
|
52702
52662
|
if (!i)
|
|
52703
52663
|
return;
|
|
52704
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);
|
|
52705
52665
|
i.add(l);
|
|
52706
|
-
const c = new wi(
|
|
52666
|
+
const c = new wi(ce(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
52707
52667
|
i.add(c), t.enable();
|
|
52708
52668
|
const h = [];
|
|
52709
52669
|
let u, f, m;
|
|
@@ -52769,7 +52729,7 @@ const vo = class extends Ct {
|
|
|
52769
52729
|
magnifier: { width: 190, height: 190, scale: 2, dragEnabled: !0 }
|
|
52770
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 }) => {
|
|
52771
52731
|
var l;
|
|
52772
|
-
const a =
|
|
52732
|
+
const a = wv((l = o == null ? void 0 : o[0]) == null ? void 0 : l.object, (c) => c.isSculptObject);
|
|
52773
52733
|
return a && !a.editing ? this.emit("click", r, a) : !1;
|
|
52774
52734
|
}), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = vo.modules;
|
|
52775
52735
|
}
|
|
@@ -52795,7 +52755,7 @@ const vo = class extends Ct {
|
|
|
52795
52755
|
this.clear();
|
|
52796
52756
|
const s = (o = e == null ? void 0 : e.items) == null ? void 0 : o.map((r) => {
|
|
52797
52757
|
var l;
|
|
52798
|
-
const a =
|
|
52758
|
+
const a = ce(B({}, r), {
|
|
52799
52759
|
style: B(B({}, (l = this.theme) == null ? void 0 : l[r.type.toLowerCase()]), r.style)
|
|
52800
52760
|
});
|
|
52801
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;
|
|
@@ -52933,7 +52893,7 @@ const vo = class extends Ct {
|
|
|
52933
52893
|
}
|
|
52934
52894
|
};
|
|
52935
52895
|
let lt = vo;
|
|
52936
|
-
d(lt, "modules",
|
|
52896
|
+
d(lt, "modules", yv);
|
|
52937
52897
|
const MD = (n, t, e) => {
|
|
52938
52898
|
if (t && typeof t == "object" && ("theme" in t || "config" in t)) {
|
|
52939
52899
|
const i = t;
|
|
@@ -53093,7 +53053,7 @@ const km = (n, t) => {
|
|
|
53093
53053
|
}, Kx = (n, t, e) => {
|
|
53094
53054
|
var a;
|
|
53095
53055
|
let i = Wo();
|
|
53096
|
-
const s = new
|
|
53056
|
+
const s = new bv({
|
|
53097
53057
|
target: n,
|
|
53098
53058
|
props: { content: (a = t.rawData) == null ? void 0 : a.name, five: e, fontSize: i }
|
|
53099
53059
|
}), o = Yr();
|
|
@@ -53111,7 +53071,7 @@ const km = (n, t) => {
|
|
|
53111
53071
|
class Dc extends Bu {
|
|
53112
53072
|
constructor(...e) {
|
|
53113
53073
|
const i = e[0], s = Ns(i.model), o = new P.Vector3().lerpVectors(Yn(s, 0), Yn(s, 5), 0.5);
|
|
53114
|
-
super(
|
|
53074
|
+
super(ce(B({}, i), { position: o }));
|
|
53115
53075
|
d(this, "onModelShownFloorChange", (e) => {
|
|
53116
53076
|
this.updateFiveCurrentFloorState(e), this.updateVisible();
|
|
53117
53077
|
});
|
|
@@ -53191,7 +53151,7 @@ class eS extends kn {
|
|
|
53191
53151
|
if (this.five.state.mode === "Panorama")
|
|
53192
53152
|
return;
|
|
53193
53153
|
const e = this.items.filter((l) => l instanceof Dc).map((l) => l.tag), i = e.filter((l) => l.position && l.visible && l.enabled);
|
|
53194
|
-
yield
|
|
53154
|
+
yield pv(0);
|
|
53195
53155
|
const s = this.five.camera.position.clone(), o = i.sort((l, c) => s.distanceTo(l.position) - s.distanceTo(c.position)), r = [], a = (l, c) => !(l.right < c.left || l.left > c.right || l.bottom < c.top || l.top > c.bottom);
|
|
53196
53156
|
e.forEach((l) => {
|
|
53197
53157
|
l.visibles[2] = void 0;
|
|
@@ -53464,27 +53424,27 @@ const xD = (...n) => new eS(...n), tS = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
53464
53424
|
__proto__: null,
|
|
53465
53425
|
BaseEditor: Vl,
|
|
53466
53426
|
BoxMesh: gh,
|
|
53467
|
-
BoxMeshEditor:
|
|
53468
|
-
CircleMesh:
|
|
53469
|
-
CircleMeshEditor:
|
|
53427
|
+
BoxMeshEditor: zv,
|
|
53428
|
+
CircleMesh: Dv,
|
|
53429
|
+
CircleMeshEditor: xv,
|
|
53470
53430
|
CircleWithEdgeMesh: Nr,
|
|
53471
53431
|
CylinderMesh: ph,
|
|
53472
|
-
CylinderMeshEditor:
|
|
53432
|
+
CylinderMeshEditor: Tv,
|
|
53473
53433
|
LineMesh: wi,
|
|
53474
53434
|
PointMesh: Cn,
|
|
53475
53435
|
PolygonMesh: Uo,
|
|
53476
53436
|
PrismMesh: zs,
|
|
53477
|
-
PrismMeshEditor:
|
|
53437
|
+
PrismMeshEditor: Iv,
|
|
53478
53438
|
RectangleMesh: ju,
|
|
53479
|
-
RectangleMeshEditor:
|
|
53439
|
+
RectangleMeshEditor: Mv,
|
|
53480
53440
|
RectangleWithEdgeMesh: hl,
|
|
53481
|
-
createBox:
|
|
53441
|
+
createBox: Ov,
|
|
53482
53442
|
createCircle: _u,
|
|
53483
|
-
createCylinder:
|
|
53484
|
-
createLine:
|
|
53485
|
-
createPoint:
|
|
53443
|
+
createCylinder: Lv,
|
|
53444
|
+
createLine: jv,
|
|
53445
|
+
createPoint: Cv,
|
|
53486
53446
|
createPolygon: Ou,
|
|
53487
|
-
createPrism:
|
|
53447
|
+
createPrism: Ev,
|
|
53488
53448
|
createRectangle: Ru
|
|
53489
53449
|
}, Symbol.toStringTag, { value: "Module" })), SD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
53490
53450
|
__proto__: null,
|
|
@@ -53573,7 +53533,7 @@ export {
|
|
|
53573
53533
|
TS as FLOOR_TYPE_MAP,
|
|
53574
53534
|
dD as GuideLineItem,
|
|
53575
53535
|
hD as GuideLineModeItem,
|
|
53576
|
-
|
|
53536
|
+
mv as GuideLinePlugin,
|
|
53577
53537
|
po as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
53578
53538
|
$S as ItemLabelPlugin,
|
|
53579
53539
|
yh as Magnifier,
|
|
@@ -53587,9 +53547,9 @@ export {
|
|
|
53587
53547
|
gS as ModelRoomLabelPlugin,
|
|
53588
53548
|
JS as ModelTVVideoPlugin,
|
|
53589
53549
|
fS as ModelViewPlugin,
|
|
53590
|
-
|
|
53550
|
+
fv as MoveController,
|
|
53591
53551
|
mD as MovePlugin,
|
|
53592
|
-
|
|
53552
|
+
vv as Object3DHelperController,
|
|
53593
53553
|
AD as Object3DHelperPlugin,
|
|
53594
53554
|
Lu as PLUGIN,
|
|
53595
53555
|
cS as PaintBrush,
|
|
@@ -53600,7 +53560,7 @@ export {
|
|
|
53600
53560
|
SS as PanoFloorplanRadarPlugin,
|
|
53601
53561
|
GS as PanoMeasurePlugin,
|
|
53602
53562
|
Oo as PanoMeasurePluginLine,
|
|
53603
|
-
|
|
53563
|
+
g1 as PanoMeasurePluginModel,
|
|
53604
53564
|
xi as PanoMeasurePluginPoint,
|
|
53605
53565
|
jo as PanoMeasurePluginPolyline,
|
|
53606
53566
|
RS as PanoRulerPlugin,
|
|
@@ -53621,16 +53581,16 @@ export {
|
|
|
53621
53581
|
kS as TopviewFloorplanPlugin,
|
|
53622
53582
|
SD as Util,
|
|
53623
53583
|
xu as WalkController,
|
|
53624
|
-
|
|
53584
|
+
Ov as createBox,
|
|
53625
53585
|
_u as createCircle,
|
|
53626
|
-
|
|
53627
|
-
|
|
53628
|
-
|
|
53586
|
+
Lv as createCylinder,
|
|
53587
|
+
jv as createLine,
|
|
53588
|
+
Cv as createPoint,
|
|
53629
53589
|
Ou as createPolygon,
|
|
53630
53590
|
Rx as createPolyline,
|
|
53631
|
-
|
|
53591
|
+
Ev as createPrism,
|
|
53632
53592
|
Ru as createRectangle,
|
|
53633
|
-
|
|
53593
|
+
V1 as defaultGlobalConfig,
|
|
53634
53594
|
eD as itemLabelPluginServerParams,
|
|
53635
53595
|
qS as modelItemLabelPluginServerParams,
|
|
53636
53596
|
mS as modelRoomLabelPluginServerParams,
|