@realsee/dnalogel 3.69.4 → 3.69.5-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +5 -0
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +323 -311
- package/dist/index.umd.js +21 -21
- 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/PanoTagPlugin/Components/TagItem.js +14 -14
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +29 -29
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +5 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +40 -29
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/url/replace-static-prefix.js +17 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var Nn = (n, t) => {
|
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
22
|
var d = (n, t, e) => (Gl(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
23
|
-
var
|
|
23
|
+
var te = (n, t, e) => new Promise((i, s) => {
|
|
24
24
|
var o = (l) => {
|
|
25
25
|
try {
|
|
26
26
|
a(e.next(l));
|
|
@@ -43,7 +43,7 @@ import { LineGeometry as bA, LineMaterial as yA, THREE_Line2 as wA, Line as PA }
|
|
|
43
43
|
import { GLTFLoader as CA } from "@realsee/five/gltf-loader";
|
|
44
44
|
function IA() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.69.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.69.5-dev.2",
|
|
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",
|
|
@@ -1514,7 +1514,7 @@ class Gr {
|
|
|
1514
1514
|
* @description 启用标签
|
|
1515
1515
|
*/
|
|
1516
1516
|
enable() {
|
|
1517
|
-
return
|
|
1517
|
+
return te(this, null, function* () {
|
|
1518
1518
|
var i, s, o, r;
|
|
1519
1519
|
if (this.enabled || (this.enabled = !0, yield yi(this.five), !this.enabled))
|
|
1520
1520
|
return;
|
|
@@ -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),
|
|
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), ie = "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) {
|
|
@@ -1898,7 +1898,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1898
1898
|
pointercancel: $,
|
|
1899
1899
|
pointerout: $
|
|
1900
1900
|
}, Dn = {
|
|
1901
|
-
2:
|
|
1901
|
+
2: ie,
|
|
1902
1902
|
3: le,
|
|
1903
1903
|
4: Se,
|
|
1904
1904
|
5: ue
|
|
@@ -1914,7 +1914,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1914
1914
|
* @param {Object} ev
|
|
1915
1915
|
*/
|
|
1916
1916
|
handler: function(G) {
|
|
1917
|
-
var Z = this.store, ne = !1, be = G.type.toLowerCase().replace("ms", ""), Oe = gi[be], Qe = Dn[G.pointerType] || G.pointerType, bt = Qe ==
|
|
1917
|
+
var Z = this.store, ne = !1, be = G.type.toLowerCase().replace("ms", ""), Oe = gi[be], Qe = Dn[G.pointerType] || G.pointerType, bt = Qe == ie, Pt = C(Z, G.pointerId, "pointerId");
|
|
1918
1918
|
Oe & fe && (G.button === 0 || bt) ? Pt < 0 && (Z.push(G), Pt = Z.length - 1) : Oe & (Le | $) && (ne = !0), !(Pt < 0) && (Z[Pt] = G, this.callback(this.manager, Oe, {
|
|
1919
1919
|
pointers: Z,
|
|
1920
1920
|
changedPointers: [G],
|
|
@@ -1940,7 +1940,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1940
1940
|
Z & (Le | $) && ne[0].length - ne[1].length === 0 && (this.started = !1), this.callback(this.manager, Z, {
|
|
1941
1941
|
pointers: ne[0],
|
|
1942
1942
|
changedPointers: ne[1],
|
|
1943
|
-
pointerType:
|
|
1943
|
+
pointerType: ie,
|
|
1944
1944
|
srcEvent: G
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
@@ -1965,7 +1965,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1965
1965
|
ne && this.callback(this.manager, Z, {
|
|
1966
1966
|
pointers: ne[0],
|
|
1967
1967
|
changedPointers: ne[1],
|
|
1968
|
-
pointerType:
|
|
1968
|
+
pointerType: ie,
|
|
1969
1969
|
srcEvent: G
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
@@ -2003,7 +2003,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2003
2003
|
* @param {Object} inputData
|
|
2004
2004
|
*/
|
|
2005
2005
|
handler: function(G, Z, ne) {
|
|
2006
|
-
var be = ne.pointerType ==
|
|
2006
|
+
var be = ne.pointerType == ie, Oe = ne.pointerType == Se;
|
|
2007
2007
|
if (!(Oe && ne.sourceCapabilities && ne.sourceCapabilities.firesTouchEvents)) {
|
|
2008
2008
|
if (be)
|
|
2009
2009
|
Mt.call(this, Z, ne);
|
|
@@ -3196,7 +3196,7 @@ class Ha extends KA {
|
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
3198
|
function yi(n) {
|
|
3199
|
-
return
|
|
3199
|
+
return te(this, null, function* () {
|
|
3200
3200
|
return new Promise((t) => {
|
|
3201
3201
|
if (Bm(n))
|
|
3202
3202
|
t();
|
|
@@ -5753,12 +5753,12 @@ function ut(n) {
|
|
|
5753
5753
|
var ee = void 0, K = b.to.numbers[q], se = b.from.numbers[q] || 0;
|
|
5754
5754
|
b.isPath ? ee = Kb(b.value, I * K, b.isPathTargetInsideSVG) : ee = se + I * (K - se), S && (b.isColor && q > 2 || (ee = Math.round(ee * S) / S)), T.push(ee);
|
|
5755
5755
|
}
|
|
5756
|
-
var
|
|
5757
|
-
if (!
|
|
5756
|
+
var ie = M.length;
|
|
5757
|
+
if (!ie)
|
|
5758
5758
|
_ = T[0];
|
|
5759
5759
|
else {
|
|
5760
5760
|
_ = M[0];
|
|
5761
|
-
for (var le = 0; le <
|
|
5761
|
+
for (var le = 0; le < ie; le++) {
|
|
5762
5762
|
M[le];
|
|
5763
5763
|
var Se = M[le + 1], ue = T[le];
|
|
5764
5764
|
isNaN(ue) || (Se ? _ += ue + Se : _ += ue + " ");
|
|
@@ -6226,14 +6226,14 @@ class Sr {
|
|
|
6226
6226
|
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
6227
6227
|
}
|
|
6228
6228
|
show() {
|
|
6229
|
-
return
|
|
6229
|
+
return te(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
6230
6230
|
if (this.state.disposed)
|
|
6231
6231
|
return so();
|
|
6232
6232
|
this.setState({ visible: !0 }, { userAction: t }), this.hooks.emit("show", { userAction: t });
|
|
6233
6233
|
});
|
|
6234
6234
|
}
|
|
6235
6235
|
hide() {
|
|
6236
|
-
return
|
|
6236
|
+
return te(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
|
|
6237
6237
|
if (this.state.disposed)
|
|
6238
6238
|
return so();
|
|
6239
6239
|
this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
|
|
@@ -6305,13 +6305,13 @@ class Sr {
|
|
|
6305
6305
|
}
|
|
6306
6306
|
}
|
|
6307
6307
|
handleShow() {
|
|
6308
|
-
return
|
|
6308
|
+
return te(this, null, function* () {
|
|
6309
6309
|
var t;
|
|
6310
6310
|
this.store.frontModeGroup.setVisible(!0), (t = this.store.behindModeGroup) == null || t.setVisible(!0);
|
|
6311
6311
|
});
|
|
6312
6312
|
}
|
|
6313
6313
|
handleHide() {
|
|
6314
|
-
return
|
|
6314
|
+
return te(this, null, function* () {
|
|
6315
6315
|
var t;
|
|
6316
6316
|
this.store.frontModeGroup.setVisible(!1), (t = this.store.behindModeGroup) == null || t.setVisible(!1);
|
|
6317
6317
|
});
|
|
@@ -6564,7 +6564,7 @@ function Qr(n) {
|
|
|
6564
6564
|
};
|
|
6565
6565
|
}
|
|
6566
6566
|
function Sy(n, t, e) {
|
|
6567
|
-
return
|
|
6567
|
+
return te(this, null, function* () {
|
|
6568
6568
|
var w, E, k;
|
|
6569
6569
|
if (!t)
|
|
6570
6570
|
return;
|
|
@@ -6606,7 +6606,7 @@ function Sy(n, t, e) {
|
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
6608
|
function b0(n, t, e) {
|
|
6609
|
-
return
|
|
6609
|
+
return te(this, null, function* () {
|
|
6610
6610
|
var g, v;
|
|
6611
6611
|
if (!t)
|
|
6612
6612
|
return;
|
|
@@ -6910,6 +6910,7 @@ function Kn(n = wl, t) {
|
|
|
6910
6910
|
return t || "";
|
|
6911
6911
|
if (!n || typeof n != "string")
|
|
6912
6912
|
return t;
|
|
6913
|
+
n.startsWith("//") && (n = "http:" + n);
|
|
6913
6914
|
try {
|
|
6914
6915
|
if (!Ly(t))
|
|
6915
6916
|
return t;
|
|
@@ -6954,7 +6955,7 @@ function Xr(n, t = 0) {
|
|
|
6954
6955
|
t <= 0 ? So(n) : So(() => Xr(n, t - 1));
|
|
6955
6956
|
}
|
|
6956
6957
|
function Oy() {
|
|
6957
|
-
return
|
|
6958
|
+
return te(this, null, function* () {
|
|
6958
6959
|
return new Promise((n) => {
|
|
6959
6960
|
So(() => n());
|
|
6960
6961
|
});
|
|
@@ -7096,7 +7097,7 @@ const dS = (n, t) => {
|
|
|
7096
7097
|
c.add(M);
|
|
7097
7098
|
}
|
|
7098
7099
|
c.add(u);
|
|
7099
|
-
const p = () =>
|
|
7100
|
+
const p = () => te(void 0, null, function* () {
|
|
7100
7101
|
var _, q, ee, K, se;
|
|
7101
7102
|
if (s || !((q = (_ = n.work) == null ? void 0 : _.model) != null && q.file))
|
|
7102
7103
|
return;
|
|
@@ -7105,8 +7106,8 @@ const dS = (n, t) => {
|
|
|
7105
7106
|
textureArray: (ee = n.work.model) == null ? void 0 : ee.textures,
|
|
7106
7107
|
textureBaseUri: (K = n.work.model) == null ? void 0 : K.textureBase,
|
|
7107
7108
|
fetcher: (se = l.fetcher) != null ? se : void 0
|
|
7108
|
-
}).then((
|
|
7109
|
-
const le =
|
|
7109
|
+
}).then((ie) => {
|
|
7110
|
+
const le = ie.scene;
|
|
7110
7111
|
return le.rotateX(-Math.PI / 2), le;
|
|
7111
7112
|
});
|
|
7112
7113
|
const M = Ns(u), S = new P.Box3();
|
|
@@ -8741,7 +8742,7 @@ const pS = (n) => new Lw(n), gS = {
|
|
|
8741
8742
|
};
|
|
8742
8743
|
var xs = /* @__PURE__ */ ((n) => (n[n.FLOOR = 1] = "FLOOR", n[n.CEILING = 2] = "CEILING", n[n.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", n))(xs || {});
|
|
8743
8744
|
function js(n) {
|
|
8744
|
-
return
|
|
8745
|
+
return te(this, null, function* () {
|
|
8745
8746
|
try {
|
|
8746
8747
|
return [null, yield n];
|
|
8747
8748
|
} catch (t) {
|
|
@@ -9576,14 +9577,14 @@ function o2(n, t, e) {
|
|
|
9576
9577
|
};
|
|
9577
9578
|
}
|
|
9578
9579
|
const N = z.roomLabel, _ = N.positionInImage.x * 100 + "%", q = N.positionInImage.y * 100 + "%";
|
|
9579
|
-
let ee = 0, K = 0, se = 0,
|
|
9580
|
+
let ee = 0, K = 0, se = 0, ie = 0, le = !1;
|
|
9580
9581
|
V.subscribe(function(Le) {
|
|
9581
9582
|
e(27, le = !!Le && Le.id === z.id);
|
|
9582
9583
|
});
|
|
9583
9584
|
const Se = (he) => {
|
|
9584
9585
|
e(8, se = he.detail);
|
|
9585
9586
|
}, ue = (he) => {
|
|
9586
|
-
e(9,
|
|
9587
|
+
e(9, ie = he.detail);
|
|
9587
9588
|
}, Te = (he) => {
|
|
9588
9589
|
e(6, ee = he.detail);
|
|
9589
9590
|
}, fe = (he) => {
|
|
@@ -9598,7 +9599,7 @@ function o2(n, t, e) {
|
|
|
9598
9599
|
48 && e(18, s = I == null ? void 0 : I(z)), n.$$.dirty[0] & /*room, getRoomAreaText*/
|
|
9599
9600
|
8388624 && e(17, o = z.size ? b(z.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
|
|
9600
9601
|
16777232 && e(16, r = z != null && z.dimension ? C((he = z.dimension) == null ? void 0 : he.width, (Le = z.dimension) == null ? void 0 : Le.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
|
|
9601
|
-
768 && e(34, a = { width: se, height:
|
|
9602
|
+
768 && e(34, a = { width: se, height: ie }), n.$$.dirty[0] & /*room*/
|
|
9602
9603
|
16 | n.$$.dirty[1] & /*labelElementSize*/
|
|
9603
9604
|
8 && e(33, l = a ? T(z, a) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
|
|
9604
9605
|
35651584 | n.$$.dirty[1] & /*isLabelInRoom*/
|
|
@@ -9627,7 +9628,7 @@ function o2(n, t, e) {
|
|
|
9627
9628
|
ee,
|
|
9628
9629
|
K,
|
|
9629
9630
|
se,
|
|
9630
|
-
|
|
9631
|
+
ie,
|
|
9631
9632
|
w,
|
|
9632
9633
|
A,
|
|
9633
9634
|
v,
|
|
@@ -12637,9 +12638,9 @@ let tu = class extends Ee {
|
|
|
12637
12638
|
};
|
|
12638
12639
|
const v3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";
|
|
12639
12640
|
function A3(n) {
|
|
12640
|
-
return
|
|
12641
|
+
return te(this, null, function* () {
|
|
12641
12642
|
const t = new Headers({ "Content-Type": "text/plain" }), e = function(s) {
|
|
12642
|
-
return
|
|
12643
|
+
return te(this, null, function* () {
|
|
12643
12644
|
const o = {
|
|
12644
12645
|
index: s.index,
|
|
12645
12646
|
url: s.url,
|
|
@@ -12700,7 +12701,7 @@ function P3(n) {
|
|
|
12700
12701
|
};
|
|
12701
12702
|
}
|
|
12702
12703
|
function rs(n) {
|
|
12703
|
-
return
|
|
12704
|
+
return te(this, null, function* () {
|
|
12704
12705
|
const t = yield A3(n.outlines), e = n.computed_data.bounding, i = n.computed_data.floor_datas.map(y3), s = n.computed_data.entrance ? P3(n.computed_data.entrance) : null;
|
|
12705
12706
|
return {
|
|
12706
12707
|
outlines: t,
|
|
@@ -12747,7 +12748,7 @@ let us = class {
|
|
|
12747
12748
|
/**
|
|
12748
12749
|
* @realsee/dnalogel 版本号
|
|
12749
12750
|
*/
|
|
12750
|
-
d(this, "VERSION", "3.69.
|
|
12751
|
+
d(this, "VERSION", "3.69.5-dev.2");
|
|
12751
12752
|
d(this, "NAME");
|
|
12752
12753
|
d(this, "five");
|
|
12753
12754
|
d(this, "workUtil");
|
|
@@ -12795,7 +12796,7 @@ function Jd(n) {
|
|
|
12795
12796
|
return M3(n) && !!n.isVector3;
|
|
12796
12797
|
}
|
|
12797
12798
|
function su(n, t) {
|
|
12798
|
-
return
|
|
12799
|
+
return te(this, null, function* () {
|
|
12799
12800
|
const [e] = yield js(n.changeMode(...t));
|
|
12800
12801
|
if (e)
|
|
12801
12802
|
throw new Error("change mode canceled");
|
|
@@ -12825,7 +12826,7 @@ function x3(n, t) {
|
|
|
12825
12826
|
return !(!Ss(e, r, 2) || !Ss(i, a, 2) || o !== void 0 && o.distanceTo(l) > 0.01 || !Ss(s, c, 2));
|
|
12826
12827
|
}
|
|
12827
12828
|
function U0(n, t, e = !0) {
|
|
12828
|
-
return
|
|
12829
|
+
return te(this, null, function* () {
|
|
12829
12830
|
if (x3(n, t) === !0)
|
|
12830
12831
|
return;
|
|
12831
12832
|
const s = n.getCurrentState();
|
|
@@ -12925,14 +12926,14 @@ let T3 = class extends kn {
|
|
|
12925
12926
|
* @param opts.isAutoShow 是否是自动展示
|
|
12926
12927
|
* @param opts.userAction 是否是用户行为
|
|
12927
12928
|
*/
|
|
12928
|
-
d(this, "show", (...i) =>
|
|
12929
|
+
d(this, "show", (...i) => te(this, [...i], function* (e = {}) {
|
|
12929
12930
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
12930
12931
|
return;
|
|
12931
12932
|
const s = e.userAction !== void 0 ? e.userAction : !0;
|
|
12932
12933
|
this.updateState({ visible: !0 }, s), this._show(e);
|
|
12933
12934
|
}));
|
|
12934
12935
|
/** 隐藏户型图 */
|
|
12935
|
-
d(this, "hide", (...i) =>
|
|
12936
|
+
d(this, "hide", (...i) => te(this, [...i], function* (e = {}) {
|
|
12936
12937
|
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
12937
12938
|
}));
|
|
12938
12939
|
/** 更新户型图大小 */
|
|
@@ -12957,7 +12958,7 @@ let T3 = class extends kn {
|
|
|
12957
12958
|
const { userAction: i } = e;
|
|
12958
12959
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
|
|
12959
12960
|
});
|
|
12960
|
-
d(this, "_show", (e) =>
|
|
12961
|
+
d(this, "_show", (e) => te(this, null, function* () {
|
|
12961
12962
|
var r;
|
|
12962
12963
|
if (!this.state.enabled)
|
|
12963
12964
|
return;
|
|
@@ -12973,7 +12974,7 @@ let T3 = class extends kn {
|
|
|
12973
12974
|
immediately: !1,
|
|
12974
12975
|
isAutoShow: !1,
|
|
12975
12976
|
userAction: !0
|
|
12976
|
-
}, s = B(B({}, i), e), o = () =>
|
|
12977
|
+
}, s = B(B({}, i), e), o = () => te(this, null, function* () {
|
|
12977
12978
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
12978
12979
|
let a = !1, l;
|
|
12979
12980
|
this.showRejection = (u) => {
|
|
@@ -13113,7 +13114,7 @@ let T3 = class extends kn {
|
|
|
13113
13114
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
|
|
13114
13115
|
}
|
|
13115
13116
|
load(e, i, s = !0) {
|
|
13116
|
-
return
|
|
13117
|
+
return te(this, null, function* () {
|
|
13117
13118
|
function o(h) {
|
|
13118
13119
|
return Object.prototype.hasOwnProperty.apply(h, ["version"]);
|
|
13119
13120
|
}
|
|
@@ -13155,7 +13156,7 @@ let T3 = class extends kn {
|
|
|
13155
13156
|
this.updateState({ config: e }, i), this.render();
|
|
13156
13157
|
}
|
|
13157
13158
|
formatData(e) {
|
|
13158
|
-
return
|
|
13159
|
+
return te(this, null, function* () {
|
|
13159
13160
|
return yield rs(e.data);
|
|
13160
13161
|
});
|
|
13161
13162
|
}
|
|
@@ -15936,14 +15937,14 @@ let j3 = class extends kn {
|
|
|
15936
15937
|
* @param opts.isAutoShow 是否是自动展示
|
|
15937
15938
|
* @param opts.userAction 是否是用户行为
|
|
15938
15939
|
*/
|
|
15939
|
-
d(this, "show", (...i) =>
|
|
15940
|
+
d(this, "show", (...i) => te(this, [...i], function* (e = {}) {
|
|
15940
15941
|
if (!this.state.enabled || !this.showPromise && this.state.visible)
|
|
15941
15942
|
return;
|
|
15942
15943
|
const s = e.userAction !== void 0 ? e.userAction : !0;
|
|
15943
15944
|
this.updateState({ visible: !0 }, s), this._show(e);
|
|
15944
15945
|
}));
|
|
15945
15946
|
/** 隐藏户型图 */
|
|
15946
|
-
d(this, "hide", (...i) =>
|
|
15947
|
+
d(this, "hide", (...i) => te(this, [...i], function* (e = {}) {
|
|
15947
15948
|
this.state.enabled && (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
|
|
15948
15949
|
}));
|
|
15949
15950
|
/** 更新户型图大小 */
|
|
@@ -15968,7 +15969,7 @@ let j3 = class extends kn {
|
|
|
15968
15969
|
const { userAction: i } = e;
|
|
15969
15970
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: i }), this.state.visible && this._show({ userAction: i }));
|
|
15970
15971
|
});
|
|
15971
|
-
d(this, "_show", (e) =>
|
|
15972
|
+
d(this, "_show", (e) => te(this, null, function* () {
|
|
15972
15973
|
var r;
|
|
15973
15974
|
if (!this.state.enabled)
|
|
15974
15975
|
return;
|
|
@@ -15984,7 +15985,7 @@ let j3 = class extends kn {
|
|
|
15984
15985
|
immediately: !1,
|
|
15985
15986
|
isAutoShow: !1,
|
|
15986
15987
|
userAction: !0
|
|
15987
|
-
}, s = B(B({}, i), e), o = () =>
|
|
15988
|
+
}, s = B(B({}, i), e), o = () => te(this, null, function* () {
|
|
15988
15989
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
15989
15990
|
let a = !1, l;
|
|
15990
15991
|
this.showRejection = (u) => {
|
|
@@ -16119,7 +16120,7 @@ let j3 = class extends kn {
|
|
|
16119
16120
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), yi(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
16120
16121
|
}
|
|
16121
16122
|
load(e, i, s = !0) {
|
|
16122
|
-
return
|
|
16123
|
+
return te(this, null, function* () {
|
|
16123
16124
|
function o(h) {
|
|
16124
16125
|
return Object.prototype.hasOwnProperty.apply(h, ["version"]);
|
|
16125
16126
|
}
|
|
@@ -16188,7 +16189,7 @@ let j3 = class extends kn {
|
|
|
16188
16189
|
this.container.style.left = o * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
16189
16190
|
}
|
|
16190
16191
|
formatData(e) {
|
|
16191
|
-
return
|
|
16192
|
+
return te(this, null, function* () {
|
|
16192
16193
|
return yield rs(e.data);
|
|
16193
16194
|
});
|
|
16194
16195
|
}
|
|
@@ -16370,7 +16371,7 @@ let R3 = class extends kn {
|
|
|
16370
16371
|
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();
|
|
16371
16372
|
}
|
|
16372
16373
|
load(e, i, s = !0) {
|
|
16373
|
-
return
|
|
16374
|
+
return te(this, null, function* () {
|
|
16374
16375
|
function o(h) {
|
|
16375
16376
|
return Object.prototype.hasOwnProperty.apply(h, ["version"]);
|
|
16376
16377
|
}
|
|
@@ -16395,7 +16396,7 @@ let R3 = class extends kn {
|
|
|
16395
16396
|
return e.appendChild(this.container), this.render(), this;
|
|
16396
16397
|
}
|
|
16397
16398
|
show() {
|
|
16398
|
-
return
|
|
16399
|
+
return te(this, arguments, function* (e = {}) {
|
|
16399
16400
|
if (this.state.visible)
|
|
16400
16401
|
return;
|
|
16401
16402
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -16403,7 +16404,7 @@ let R3 = class extends kn {
|
|
|
16403
16404
|
});
|
|
16404
16405
|
}
|
|
16405
16406
|
hide() {
|
|
16406
|
-
return
|
|
16407
|
+
return te(this, arguments, function* (e = {}) {
|
|
16407
16408
|
if (this.isHiddenByHideFunc = !0, !this.state.visible)
|
|
16408
16409
|
return;
|
|
16409
16410
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -16438,12 +16439,12 @@ let R3 = class extends kn {
|
|
|
16438
16439
|
this.updateState({ config: e }, i), this.render();
|
|
16439
16440
|
}
|
|
16440
16441
|
formatData(e) {
|
|
16441
|
-
return
|
|
16442
|
+
return te(this, null, function* () {
|
|
16442
16443
|
return yield rs(e.data);
|
|
16443
16444
|
});
|
|
16444
16445
|
}
|
|
16445
16446
|
_show(e) {
|
|
16446
|
-
return
|
|
16447
|
+
return te(this, null, function* () {
|
|
16447
16448
|
if (!this.state.enabled)
|
|
16448
16449
|
return;
|
|
16449
16450
|
this.isHiddenByHideFunc = !1;
|
|
@@ -16454,7 +16455,7 @@ let R3 = class extends kn {
|
|
|
16454
16455
|
});
|
|
16455
16456
|
}
|
|
16456
16457
|
_hide(e) {
|
|
16457
|
-
return
|
|
16458
|
+
return te(this, null, function* () {
|
|
16458
16459
|
if (!this.state.enabled)
|
|
16459
16460
|
return;
|
|
16460
16461
|
const { userAction: i } = e;
|
|
@@ -17325,7 +17326,7 @@ let i5 = class extends kn {
|
|
|
17325
17326
|
this.state = { enabled: !0, visible: !0, config: o }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose);
|
|
17326
17327
|
}
|
|
17327
17328
|
load(e, i, s = !0) {
|
|
17328
|
-
return
|
|
17329
|
+
return te(this, null, function* () {
|
|
17329
17330
|
function o(c) {
|
|
17330
17331
|
return Object.prototype.hasOwnProperty.apply(c, ["version"]);
|
|
17331
17332
|
}
|
|
@@ -17334,7 +17335,7 @@ let i5 = class extends kn {
|
|
|
17334
17335
|
});
|
|
17335
17336
|
}
|
|
17336
17337
|
show() {
|
|
17337
|
-
return
|
|
17338
|
+
return te(this, arguments, function* (e = {}) {
|
|
17338
17339
|
if (this.state.visible)
|
|
17339
17340
|
return;
|
|
17340
17341
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -17342,7 +17343,7 @@ let i5 = class extends kn {
|
|
|
17342
17343
|
});
|
|
17343
17344
|
}
|
|
17344
17345
|
hide() {
|
|
17345
|
-
return
|
|
17346
|
+
return te(this, arguments, function* (e = {}) {
|
|
17346
17347
|
if (!this.state.visible)
|
|
17347
17348
|
return;
|
|
17348
17349
|
const i = e.userAction !== void 0 ? e.userAction : !0;
|
|
@@ -17384,7 +17385,7 @@ let i5 = class extends kn {
|
|
|
17384
17385
|
this.data && (this.extraObjects = C3(e, this.five, this.data), this.render());
|
|
17385
17386
|
}
|
|
17386
17387
|
formatData(e) {
|
|
17387
|
-
return
|
|
17388
|
+
return te(this, null, function* () {
|
|
17388
17389
|
return yield rs(e.data);
|
|
17389
17390
|
});
|
|
17390
17391
|
}
|
|
@@ -18432,8 +18433,8 @@ var J0 = function() {
|
|
|
18432
18433
|
createCamera: function(b) {
|
|
18433
18434
|
var C, I;
|
|
18434
18435
|
if (b.children.forEach(function(se) {
|
|
18435
|
-
var
|
|
18436
|
-
|
|
18436
|
+
var ie = n.Objects.NodeAttribute[se.ID];
|
|
18437
|
+
ie !== void 0 && (I = ie);
|
|
18437
18438
|
}), I === void 0)
|
|
18438
18439
|
C = new Ao();
|
|
18439
18440
|
else {
|
|
@@ -18658,7 +18659,7 @@ var J0 = function() {
|
|
|
18658
18659
|
if (N.materialIndex.forEach(function(Se, ue) {
|
|
18659
18660
|
Se !== K && (S.addGroup(se, ue - se, K), K = Se, se = ue);
|
|
18660
18661
|
}), S.groups.length > 0) {
|
|
18661
|
-
var
|
|
18662
|
+
var ie = S.groups[S.groups.length - 1], le = ie.start + ie.count;
|
|
18662
18663
|
le !== N.materialIndex.length && S.addGroup(le, N.materialIndex.length - le, K);
|
|
18663
18664
|
}
|
|
18664
18665
|
S.groups.length === 0 && S.addGroup(0, N.materialIndex.length, N.materialIndex[0]);
|
|
@@ -18691,16 +18692,16 @@ var J0 = function() {
|
|
|
18691
18692
|
vertexWeights: [],
|
|
18692
18693
|
weightsIndices: []
|
|
18693
18694
|
}, I = 0, M = 0, S = !1, T = [], N = [], _ = [], q = [], ee = [], K = [], se = this;
|
|
18694
|
-
return b.vertexIndices.forEach(function(
|
|
18695
|
+
return b.vertexIndices.forEach(function(ie, le) {
|
|
18695
18696
|
var Se = !1;
|
|
18696
|
-
|
|
18697
|
+
ie < 0 && (ie = ie ^ -1, Se = !0);
|
|
18697
18698
|
var ue = [], Te = [];
|
|
18698
|
-
if (T.push(
|
|
18699
|
-
var fe = v(le, I,
|
|
18699
|
+
if (T.push(ie * 3, ie * 3 + 1, ie * 3 + 2), b.color) {
|
|
18700
|
+
var fe = v(le, I, ie, b.color);
|
|
18700
18701
|
_.push(fe[0], fe[1], fe[2]);
|
|
18701
18702
|
}
|
|
18702
18703
|
if (b.skeleton) {
|
|
18703
|
-
if (b.weightTable[
|
|
18704
|
+
if (b.weightTable[ie] !== void 0 && b.weightTable[ie].forEach(function(Re) {
|
|
18704
18705
|
Te.push(Re.weight), ue.push(Re.id);
|
|
18705
18706
|
}), Te.length > 4) {
|
|
18706
18707
|
S || (console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."), S = !0);
|
|
@@ -18722,13 +18723,13 @@ var J0 = function() {
|
|
|
18722
18723
|
ee.push(Te[$]), K.push(ue[$]);
|
|
18723
18724
|
}
|
|
18724
18725
|
if (b.normal) {
|
|
18725
|
-
var fe = v(le, I,
|
|
18726
|
+
var fe = v(le, I, ie, b.normal);
|
|
18726
18727
|
N.push(fe[0], fe[1], fe[2]);
|
|
18727
18728
|
}
|
|
18728
18729
|
if (b.material && b.material.mappingType !== "AllSame")
|
|
18729
|
-
var Me = v(le, I,
|
|
18730
|
+
var Me = v(le, I, ie, b.material)[0];
|
|
18730
18731
|
b.uv && b.uv.forEach(function(Re, ve) {
|
|
18731
|
-
var Be = v(le, I,
|
|
18732
|
+
var Be = v(le, I, ie, Re);
|
|
18732
18733
|
q[ve] === void 0 && (q[ve] = []), q[ve].push(Be[0]), q[ve].push(Be[1]);
|
|
18733
18734
|
}), M++, Se && (se.genFace(
|
|
18734
18735
|
C,
|
|
@@ -18747,8 +18748,8 @@ var J0 = function() {
|
|
|
18747
18748
|
// Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
|
|
18748
18749
|
genFace: function(b, C, I, M, S, T, N, _, q, ee) {
|
|
18749
18750
|
for (var K = 2; K < ee; K++)
|
|
18750
|
-
b.vertex.push(C.vertexPositions[I[0]]), b.vertex.push(C.vertexPositions[I[1]]), b.vertex.push(C.vertexPositions[I[2]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[I[K * 3]]), b.vertex.push(C.vertexPositions[I[K * 3 + 1]]), b.vertex.push(C.vertexPositions[I[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(_[0]), b.vertexWeights.push(_[1]), b.vertexWeights.push(_[2]), b.vertexWeights.push(_[3]), b.vertexWeights.push(_[(K - 1) * 4]), b.vertexWeights.push(_[(K - 1) * 4 + 1]), b.vertexWeights.push(_[(K - 1) * 4 + 2]), b.vertexWeights.push(_[(K - 1) * 4 + 3]), b.vertexWeights.push(_[K * 4]), b.vertexWeights.push(_[K * 4 + 1]), b.vertexWeights.push(_[K * 4 + 2]), b.vertexWeights.push(_[K * 4 + 3]), b.weightsIndices.push(q[0]), b.weightsIndices.push(q[1]), b.weightsIndices.push(q[2]), b.weightsIndices.push(q[3]), b.weightsIndices.push(q[(K - 1) * 4]), b.weightsIndices.push(q[(K - 1) * 4 + 1]), b.weightsIndices.push(q[(K - 1) * 4 + 2]), b.weightsIndices.push(q[(K - 1) * 4 + 3]), b.weightsIndices.push(q[K * 4]), b.weightsIndices.push(q[K * 4 + 1]), b.weightsIndices.push(q[K * 4 + 2]), b.weightsIndices.push(q[K * 4 + 3])), C.color && (b.colors.push(T[0]), b.colors.push(T[1]), b.colors.push(T[2]), b.colors.push(T[(K - 1) * 3]), b.colors.push(T[(K - 1) * 3 + 1]), b.colors.push(T[(K - 1) * 3 + 2]), b.colors.push(T[K * 3]), b.colors.push(T[K * 3 + 1]), b.colors.push(T[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(M), b.materialIndex.push(M), b.materialIndex.push(M)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(se,
|
|
18751
|
-
b.uvs[
|
|
18751
|
+
b.vertex.push(C.vertexPositions[I[0]]), b.vertex.push(C.vertexPositions[I[1]]), b.vertex.push(C.vertexPositions[I[2]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[I[K * 3]]), b.vertex.push(C.vertexPositions[I[K * 3 + 1]]), b.vertex.push(C.vertexPositions[I[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(_[0]), b.vertexWeights.push(_[1]), b.vertexWeights.push(_[2]), b.vertexWeights.push(_[3]), b.vertexWeights.push(_[(K - 1) * 4]), b.vertexWeights.push(_[(K - 1) * 4 + 1]), b.vertexWeights.push(_[(K - 1) * 4 + 2]), b.vertexWeights.push(_[(K - 1) * 4 + 3]), b.vertexWeights.push(_[K * 4]), b.vertexWeights.push(_[K * 4 + 1]), b.vertexWeights.push(_[K * 4 + 2]), b.vertexWeights.push(_[K * 4 + 3]), b.weightsIndices.push(q[0]), b.weightsIndices.push(q[1]), b.weightsIndices.push(q[2]), b.weightsIndices.push(q[3]), b.weightsIndices.push(q[(K - 1) * 4]), b.weightsIndices.push(q[(K - 1) * 4 + 1]), b.weightsIndices.push(q[(K - 1) * 4 + 2]), b.weightsIndices.push(q[(K - 1) * 4 + 3]), b.weightsIndices.push(q[K * 4]), b.weightsIndices.push(q[K * 4 + 1]), b.weightsIndices.push(q[K * 4 + 2]), b.weightsIndices.push(q[K * 4 + 3])), C.color && (b.colors.push(T[0]), b.colors.push(T[1]), b.colors.push(T[2]), b.colors.push(T[(K - 1) * 3]), b.colors.push(T[(K - 1) * 3 + 1]), b.colors.push(T[(K - 1) * 3 + 2]), b.colors.push(T[K * 3]), b.colors.push(T[K * 3 + 1]), b.colors.push(T[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(M), b.materialIndex.push(M), b.materialIndex.push(M)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(se, ie) {
|
|
18752
|
+
b.uvs[ie] === void 0 && (b.uvs[ie] = []), b.uvs[ie].push(N[ie][0]), b.uvs[ie].push(N[ie][1]), b.uvs[ie].push(N[ie][(K - 1) * 2]), b.uvs[ie].push(N[ie][(K - 1) * 2 + 1]), b.uvs[ie].push(N[ie][K * 2]), b.uvs[ie].push(N[ie][K * 2 + 1]);
|
|
18752
18753
|
});
|
|
18753
18754
|
},
|
|
18754
18755
|
addMorphTargets: function(b, C, I, M) {
|
|
@@ -18772,10 +18773,10 @@ var J0 = function() {
|
|
|
18772
18773
|
var se = _[K] * 3;
|
|
18773
18774
|
ee[se] = N[K * 3], ee[se + 1] = N[K * 3 + 1], ee[se + 2] = N[K * 3 + 2];
|
|
18774
18775
|
}
|
|
18775
|
-
var
|
|
18776
|
+
var ie = {
|
|
18776
18777
|
vertexIndices: T,
|
|
18777
18778
|
vertexPositions: ee
|
|
18778
|
-
}, le = this.genBuffers(
|
|
18779
|
+
}, le = this.genBuffers(ie), Se = new io(le.vertex, 3);
|
|
18779
18780
|
Se.name = S || I.attrName, Se.applyMatrix4(M), b.morphAttributes.position.push(Se);
|
|
18780
18781
|
},
|
|
18781
18782
|
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
|
|
@@ -18851,12 +18852,12 @@ var J0 = function() {
|
|
|
18851
18852
|
for (var N = 0; N < I; ++N)
|
|
18852
18853
|
S.push(S[N]);
|
|
18853
18854
|
}
|
|
18854
|
-
var K = new Rs(I, M, S, q, ee), se = K.getPoints(S.length * 7),
|
|
18855
|
+
var K = new Rs(I, M, S, q, ee), se = K.getPoints(S.length * 7), ie = new Float32Array(se.length * 3);
|
|
18855
18856
|
se.forEach(function(Se, ue) {
|
|
18856
|
-
Se.toArray(
|
|
18857
|
+
Se.toArray(ie, ue * 3);
|
|
18857
18858
|
});
|
|
18858
18859
|
var le = new ca();
|
|
18859
|
-
return le.setAttribute("position", new nA(
|
|
18860
|
+
return le.setAttribute("position", new nA(ie, 3)), le;
|
|
18860
18861
|
}
|
|
18861
18862
|
};
|
|
18862
18863
|
function r() {
|
|
@@ -18939,7 +18940,7 @@ var J0 = function() {
|
|
|
18939
18940
|
console.warn("THREE.FBXLoader: Encountered a unused curve.", _);
|
|
18940
18941
|
return;
|
|
18941
18942
|
}
|
|
18942
|
-
var
|
|
18943
|
+
var ie = {
|
|
18943
18944
|
modelName: se.attrName ? la.sanitizeNodeName(se.attrName) : "",
|
|
18944
18945
|
ID: se.id,
|
|
18945
18946
|
initialPosition: [0, 0, 0],
|
|
@@ -18947,8 +18948,8 @@ var J0 = function() {
|
|
|
18947
18948
|
initialScale: [1, 1, 1]
|
|
18948
18949
|
};
|
|
18949
18950
|
e.traverse(function(Te) {
|
|
18950
|
-
Te.ID === se.id && (
|
|
18951
|
-
}),
|
|
18951
|
+
Te.ID === se.id && (ie.transform = Te.matrix, Te.userData.transformData && (ie.eulerOrder = Te.userData.transformData.eulerOrder));
|
|
18952
|
+
}), ie.transform || (ie.transform = new nt()), "PreRotation" in se && (ie.preRotation = se.PreRotation.value), "PostRotation" in se && (ie.postRotation = se.PostRotation.value), S[q] = ie;
|
|
18952
18953
|
}
|
|
18953
18954
|
}
|
|
18954
18955
|
S[q] && (S[q][ee.attr] = ee);
|
|
@@ -18956,11 +18957,11 @@ var J0 = function() {
|
|
|
18956
18957
|
if (S[q] === void 0) {
|
|
18957
18958
|
var le = t.get(_.ID).parents.filter(function(Le) {
|
|
18958
18959
|
return Le.relationship !== void 0;
|
|
18959
|
-
})[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],
|
|
18960
|
+
})[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], ie = {
|
|
18960
18961
|
modelName: se.attrName ? la.sanitizeNodeName(se.attrName) : "",
|
|
18961
18962
|
morphName: n.Objects.Deformer[le].attrName
|
|
18962
18963
|
};
|
|
18963
|
-
S[q] =
|
|
18964
|
+
S[q] = ie;
|
|
18964
18965
|
}
|
|
18965
18966
|
S[q][ee.attr] = ee;
|
|
18966
18967
|
}
|
|
@@ -19075,9 +19076,9 @@ var J0 = function() {
|
|
|
19075
19076
|
for (var C = 1; C < b.values.length; C++) {
|
|
19076
19077
|
var I = b.values[C - 1], M = b.values[C] - I, S = Math.abs(M);
|
|
19077
19078
|
if (S >= 180) {
|
|
19078
|
-
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,
|
|
19079
|
-
|
|
19080
|
-
b.times = V(b.times, C,
|
|
19079
|
+
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, ie = [], le = []; se < b.times[C]; )
|
|
19080
|
+
ie.push(se), se += K, le.push(_), _ += N;
|
|
19081
|
+
b.times = V(b.times, C, ie), b.values = V(b.values, C, le);
|
|
19081
19082
|
}
|
|
19082
19083
|
}
|
|
19083
19084
|
}
|
|
@@ -19209,8 +19210,8 @@ var J0 = function() {
|
|
|
19209
19210
|
_.push(this.parseProperty(b));
|
|
19210
19211
|
var ee = _.length > 0 ? _[0] : "", K = _.length > 1 ? _[1] : "", se = _.length > 2 ? _[2] : "";
|
|
19211
19212
|
for (I.singleProperty = S === 1 && b.getOffset() === M; M > b.getOffset(); ) {
|
|
19212
|
-
var
|
|
19213
|
-
|
|
19213
|
+
var ie = this.parseNode(b, C);
|
|
19214
|
+
ie !== null && this.parseSubNode(N, I, ie);
|
|
19214
19215
|
}
|
|
19215
19216
|
return I.propertyList = _, typeof ee == "number" && (I.id = ee), K !== "" && (I.attrName = K), se !== "" && (I.attrType = se), N !== "" && (I.name = N), I;
|
|
19216
19217
|
},
|
|
@@ -19220,8 +19221,8 @@ var J0 = function() {
|
|
|
19220
19221
|
Array.isArray(M) ? (C[I.name] = I, I.a = M) : C[I.name] = M;
|
|
19221
19222
|
} else if (b === "Connections" && I.name === "C") {
|
|
19222
19223
|
var S = [];
|
|
19223
|
-
I.propertyList.forEach(function(se,
|
|
19224
|
-
|
|
19224
|
+
I.propertyList.forEach(function(se, ie) {
|
|
19225
|
+
ie !== 0 && S.push(se);
|
|
19225
19226
|
}), C.connections === void 0 && (C.connections = []), C.connections.push(S);
|
|
19226
19227
|
} else if (I.name === "Properties70") {
|
|
19227
19228
|
var T = Object.keys(I);
|
|
@@ -19458,7 +19459,7 @@ var J0 = function() {
|
|
|
19458
19459
|
}
|
|
19459
19460
|
var A = new Xn(), w = new Ae();
|
|
19460
19461
|
function E(b) {
|
|
19461
|
-
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(),
|
|
19462
|
+
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(), ie = b.inheritType ? b.inheritType : 0;
|
|
19462
19463
|
if (b.translation && C.setPosition(w.fromArray(b.translation)), b.preRotation) {
|
|
19463
19464
|
var le = b.preRotation.map(Yi.degToRad);
|
|
19464
19465
|
le.push(b.eulerOrder), I.makeRotationFromEuler(A.fromArray(le));
|
|
@@ -19479,9 +19480,9 @@ var J0 = function() {
|
|
|
19479
19480
|
var fe = new nt();
|
|
19480
19481
|
fe.getInverse(ue).multiply(K);
|
|
19481
19482
|
var he = new nt();
|
|
19482
|
-
if (
|
|
19483
|
+
if (ie === 0)
|
|
19483
19484
|
he.copy(ue).multiply(Se).multiply(fe).multiply(T);
|
|
19484
|
-
else if (
|
|
19485
|
+
else if (ie === 1)
|
|
19485
19486
|
he.copy(ue).multiply(fe).multiply(Se).multiply(T);
|
|
19486
19487
|
else {
|
|
19487
19488
|
var Le = new nt().getInverse(T), $ = new nt().multiply(fe).multiply(Le);
|
|
@@ -19539,7 +19540,7 @@ const LS = (n, t) => {
|
|
|
19539
19540
|
const e = (t == null ? void 0 : t.fbx_url) || Vh, i = (g = t == null ? void 0 : t.north_rad) != null ? g : void 0, s = {};
|
|
19540
19541
|
let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
|
|
19541
19542
|
n.on("modelLoaded", p);
|
|
19542
|
-
const c = (v) =>
|
|
19543
|
+
const c = (v) => te(void 0, null, function* () {
|
|
19543
19544
|
var k;
|
|
19544
19545
|
const A = (v == null ? void 0 : v.fbx_url) || e;
|
|
19545
19546
|
if (l = (k = v == null ? void 0 : v.north_rad) != null ? k : i, typeof l != "number")
|
|
@@ -19592,7 +19593,7 @@ function a5(n, t) {
|
|
|
19592
19593
|
}
|
|
19593
19594
|
const l5 = ({ x: n, y: t, z: e }) => new Ae(n, t, e), zS = (n, t) => {
|
|
19594
19595
|
var g, v, A;
|
|
19595
|
-
const e = {}, i = (g = t == null ? void 0 : t.animationEnabled) != null ? g : !0, s = (v = t == null ? void 0 : t.position) != null ? v : void 0, o = (A = t == null ? void 0 : t.rad) != null ? A : void 0, r = (t == null ? void 0 : t.fbx_url) || Fh, a = [], l = (w) =>
|
|
19596
|
+
const e = {}, i = (g = t == null ? void 0 : t.animationEnabled) != null ? g : !0, s = (v = t == null ? void 0 : t.position) != null ? v : void 0, o = (A = t == null ? void 0 : t.rad) != null ? A : void 0, r = (t == null ? void 0 : t.fbx_url) || Fh, a = [], l = (w) => te(void 0, null, function* () {
|
|
19596
19597
|
var b, C, I, M, S, T, N, _;
|
|
19597
19598
|
const E = (b = w == null ? void 0 : w.position) != null ? b : s;
|
|
19598
19599
|
if (!E)
|
|
@@ -19683,7 +19684,7 @@ const Uc = (n, t, e) => {
|
|
|
19683
19684
|
let o = mf(n), r = mf(t);
|
|
19684
19685
|
return e === gn.Anticlockwise && o < r && (o += s), e === gn.Clockwise && r < o && (r += s), e === gn.Loop && r - o > i ? Uc(o, r, gn.Anticlockwise) : e === gn.Loop && o - r > i ? Uc(o, r, gn.Clockwise) : { from: o, to: r };
|
|
19685
19686
|
}, OS = (n) => {
|
|
19686
|
-
const t = {}, e = (l, c, ...h) =>
|
|
19687
|
+
const t = {}, e = (l, c, ...h) => te(void 0, [l, c, ...h], function* (o, r, a = { preload: !0 }) {
|
|
19687
19688
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), o.mode && o.mode !== n.currentMode && (yield n.changeMode(o.mode)), a.preload && o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (yield n.preloadPano(o.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0 ? !0 : yield new Promise((u, f) => {
|
|
19688
19689
|
const m = o.panoIndex !== void 0 ? o.panoIndex : n.panoIndex;
|
|
19689
19690
|
m !== void 0 ? n.moveToPano(m, B({
|
|
@@ -19707,7 +19708,7 @@ const Uc = (n, t, e) => {
|
|
|
19707
19708
|
};
|
|
19708
19709
|
return {
|
|
19709
19710
|
move: e,
|
|
19710
|
-
rotate: (l, c, ...h) =>
|
|
19711
|
+
rotate: (l, c, ...h) => te(void 0, [l, c, ...h], function* (o, r, a = {}) {
|
|
19711
19712
|
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), n.currentMode !== Vt.Mode.Panorama && (yield n.changeMode(Vt.Mode.Panorama)), o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (a.preload && (yield n.preloadPano(o.panoIndex)), yield new Promise((m, p) => {
|
|
19712
19713
|
if (!o.panoIndex) {
|
|
19713
19714
|
m(!0);
|
|
@@ -19939,13 +19940,13 @@ const g5 = `<style type="text/css">
|
|
|
19939
19940
|
b.forEach((K) => {
|
|
19940
19941
|
if (!w.observers[K])
|
|
19941
19942
|
return;
|
|
19942
|
-
const { standingPosition: se } = w.observers[K],
|
|
19943
|
+
const { standingPosition: se } = w.observers[K], ie = {
|
|
19943
19944
|
index: K,
|
|
19944
19945
|
x: se.x,
|
|
19945
19946
|
y: se.y,
|
|
19946
19947
|
z: se.z
|
|
19947
|
-
}, le = m5({ x: z, z: V },
|
|
19948
|
-
I ? le < M && Math.abs(
|
|
19948
|
+
}, le = m5({ x: z, z: V }, ie);
|
|
19949
|
+
I ? le < M && Math.abs(ie.y - I) < 0.3 && (M = le, S = ie) : le < M && (M = le, S = ie);
|
|
19949
19950
|
});
|
|
19950
19951
|
const T = new Ae(z, S.y, V);
|
|
19951
19952
|
Object.assign(T, { observers: b });
|
|
@@ -19970,7 +19971,7 @@ const g5 = `<style type="text/css">
|
|
|
19970
19971
|
}
|
|
19971
19972
|
}
|
|
19972
19973
|
return e.loaded = !0, !0;
|
|
19973
|
-
}, l = (g, v, A) =>
|
|
19974
|
+
}, l = (g, v, A) => te(void 0, null, function* () {
|
|
19974
19975
|
const w = g || t.roomInfo, E = v || t.roomRules;
|
|
19975
19976
|
if (!w || !E)
|
|
19976
19977
|
throw new Error("标尺数据依赖不齐全!");
|
|
@@ -20067,10 +20068,10 @@ const g5 = `<style type="text/css">
|
|
|
20067
20068
|
I.style.display = "none";
|
|
20068
20069
|
continue;
|
|
20069
20070
|
}
|
|
20070
|
-
const se = M.clone().project(A),
|
|
20071
|
+
const se = M.clone().project(A), ie = (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 - ie, 2) + Math.pow(Te - le, 2));
|
|
20071
20072
|
let he = fe, Le = 50;
|
|
20072
20073
|
const $ = c(
|
|
20073
|
-
{ x: ~~
|
|
20074
|
+
{ x: ~~ie, y: ~~le },
|
|
20074
20075
|
{
|
|
20075
20076
|
x: ~~ue,
|
|
20076
20077
|
y: ~~Te
|
|
@@ -20078,15 +20079,15 @@ const g5 = `<style type="text/css">
|
|
|
20078
20079
|
D,
|
|
20079
20080
|
j
|
|
20080
20081
|
);
|
|
20081
|
-
if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x -
|
|
20082
|
+
if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x - ie, 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) {
|
|
20082
20083
|
const de = {
|
|
20083
20084
|
x: ($[0].x + $[1].x) / 2,
|
|
20084
20085
|
y: ($[0].y + $[1].y) / 2
|
|
20085
20086
|
};
|
|
20086
|
-
Le = Math.sqrt(Math.pow(de.x -
|
|
20087
|
+
Le = Math.sqrt(Math.pow(de.x - ie, 2) + Math.pow(de.y - le, 2)) / fe * 100;
|
|
20087
20088
|
}
|
|
20088
|
-
const Re = (Math.PI / 2 - Math.atan2(ue -
|
|
20089
|
-
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 =
|
|
20089
|
+
const Re = (Math.PI / 2 - Math.atan2(ue - ie, le - Te)) / Math.PI * 180, ve = T.querySelector(".PanoRulerPlugin-rule-label"), Be = ve.children[0].clientWidth;
|
|
20090
|
+
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 = ie + "px", T.style.top = le + "px", T.style.transform = `rotate(${-Re}deg)`, ve.style.left = `${Le}%`);
|
|
20090
20091
|
}
|
|
20091
20092
|
}, u = () => e1(h), f = () => {
|
|
20092
20093
|
var g, v;
|
|
@@ -20432,9 +20433,9 @@ function E5(n, t, e) {
|
|
|
20432
20433
|
const D = i.camera.position, j = i.camera.getWorldDirection(new Ae()), z = E.clone().sub(D).normalize().angleTo(j), V = k.clone().sub(D).normalize().angleTo(j), b = E.distanceTo(k), I = k.clone().sub(k.clone().sub(E).divide(new Ae(2, 2, 2))).distanceTo(D), { startLeft: M, startTop: S, endLeft: T, endTop: N, distance: _ } = h(E, k), ee = -((Math.PI / 2 - Math.atan2(T - M, S - N)) / Math.PI) * 180;
|
|
20433
20434
|
let K = !0;
|
|
20434
20435
|
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);
|
|
20435
|
-
let se = 50,
|
|
20436
|
+
let se = 50, ie = _;
|
|
20436
20437
|
const le = c({ x: ~~M, y: ~~S }, { x: ~~T, y: ~~N });
|
|
20437
|
-
if (le && le.length === 1 && (qt(E, L) ? (
|
|
20438
|
+
if (le && le.length === 1 && (qt(E, L) ? (ie = Math.sqrt(Math.pow(le[0].x - M, 2) + Math.pow(le[0].y - S, 2)), se = ie / _ * 50) : qt(k, L) && (ie = Math.sqrt(Math.pow(le[0].x - T, 2) + Math.pow(le[0].y - N, 2)), se = 100 - ie / _ * 50)), le && le.length === 2) {
|
|
20438
20439
|
const Se = {
|
|
20439
20440
|
x: (le[0].x + le[1].x) / 2,
|
|
20440
20441
|
y: (le[0].y + le[1].y) / 2
|
|
@@ -20460,9 +20461,9 @@ function E5(n, t, e) {
|
|
|
20460
20461
|
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));
|
|
20461
20462
|
return M - S;
|
|
20462
20463
|
}), b = k.lines.map((C) => {
|
|
20463
|
-
var
|
|
20464
|
+
var ie, le;
|
|
20464
20465
|
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 = [];
|
|
20465
|
-
return C.children && ((
|
|
20466
|
+
return C.children && ((ie = C.children) == null ? void 0 : ie.length) > 0 && ((le = C.children) == null || le.forEach((Se) => {
|
|
20466
20467
|
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]));
|
|
20467
20468
|
se.push({ width: fe, state: Se.state });
|
|
20468
20469
|
})), {
|
|
@@ -20510,13 +20511,13 @@ let k5 = class {
|
|
|
20510
20511
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
20511
20512
|
"style",
|
|
20512
20513
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
20513
|
-
), e && (e.data && this.load(e.data), this.state.options = B(B({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () =>
|
|
20514
|
+
), e && (e.data && this.load(e.data), this.state.options = B(B({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => te(this, null, function* () {
|
|
20514
20515
|
var o, r;
|
|
20515
20516
|
(r = (o = this.five.getElement()) == null ? void 0 : o.parentNode) == null || r.append(this.container);
|
|
20516
20517
|
})), this.five.once("dispose", () => this.dispose());
|
|
20517
20518
|
}
|
|
20518
20519
|
load(t) {
|
|
20519
|
-
return
|
|
20520
|
+
return te(this, null, function* () {
|
|
20520
20521
|
if (!this.five.work)
|
|
20521
20522
|
return;
|
|
20522
20523
|
const e = t.data;
|
|
@@ -20532,7 +20533,7 @@ let k5 = class {
|
|
|
20532
20533
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
20533
20534
|
}
|
|
20534
20535
|
render() {
|
|
20535
|
-
return
|
|
20536
|
+
return te(this, null, function* () {
|
|
20536
20537
|
var t;
|
|
20537
20538
|
if (this.state.enabled) {
|
|
20538
20539
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -20577,14 +20578,14 @@ function S5() {
|
|
|
20577
20578
|
}
|
|
20578
20579
|
const D5 = new P.TextureLoader();
|
|
20579
20580
|
function Ds(n) {
|
|
20580
|
-
return
|
|
20581
|
+
return te(this, null, function* () {
|
|
20581
20582
|
return new Promise((t, e) => {
|
|
20582
20583
|
D5.load(n, t, void 0, e);
|
|
20583
20584
|
}).then((t) => (t.encoding = P.sRGBEncoding, t.minFilter = P.NearestFilter, t.magFilter = P.NearestFilter, t));
|
|
20584
20585
|
});
|
|
20585
20586
|
}
|
|
20586
20587
|
function t1(n) {
|
|
20587
|
-
return
|
|
20588
|
+
return te(this, null, function* () {
|
|
20588
20589
|
return Ds(n).then((t) => {
|
|
20589
20590
|
const e = n.startsWith("data:") ? n.includes("png") : new URL(n, location.href).pathname.toLowerCase().endsWith(".png");
|
|
20590
20591
|
return { texture: t, transparent: e };
|
|
@@ -20778,7 +20779,7 @@ class T5 extends kn {
|
|
|
20778
20779
|
}), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", i)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", i)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", i)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", i)), e.config && this.init();
|
|
20779
20780
|
}
|
|
20780
20781
|
load(e, i, s = !0) {
|
|
20781
|
-
return
|
|
20782
|
+
return te(this, null, function* () {
|
|
20782
20783
|
const o = yield this.formatData(e);
|
|
20783
20784
|
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = B({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
|
|
20784
20785
|
});
|
|
@@ -20791,7 +20792,7 @@ class T5 extends kn {
|
|
|
20791
20792
|
* @todo 逻辑需要细分
|
|
20792
20793
|
*/
|
|
20793
20794
|
init() {
|
|
20794
|
-
return
|
|
20795
|
+
return te(this, null, function* () {
|
|
20795
20796
|
var s, o, r, a;
|
|
20796
20797
|
const e = (o = (s = this.data) == null ? void 0 : s.north_rad) != null ? o : null;
|
|
20797
20798
|
this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh && (this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh))), this._clearLogoIfNeed(), this.logoMesh = yield this.loadLogoMesh(), this.logoMesh && (this.logoMesh.rotateX(-Math.PI / 2), this.group.add(this.logoMesh));
|
|
@@ -20800,7 +20801,7 @@ class T5 extends kn {
|
|
|
20800
20801
|
});
|
|
20801
20802
|
}
|
|
20802
20803
|
loadCompassMesh() {
|
|
20803
|
-
return
|
|
20804
|
+
return te(this, null, function* () {
|
|
20804
20805
|
const e = this.state.config.compassImageUrl, i = yield Ds(e), s = new P.CircleGeometry(0.7, 32), o = new P.MeshBasicMaterial({
|
|
20805
20806
|
map: i,
|
|
20806
20807
|
transparent: !0,
|
|
@@ -20811,7 +20812,7 @@ class T5 extends kn {
|
|
|
20811
20812
|
});
|
|
20812
20813
|
}
|
|
20813
20814
|
loadLogoMesh() {
|
|
20814
|
-
return
|
|
20815
|
+
return te(this, null, function* () {
|
|
20815
20816
|
if (!this.state.config.logoURL)
|
|
20816
20817
|
return;
|
|
20817
20818
|
const e = this.state.config.logoURL, i = yield Ds(e);
|
|
@@ -20826,7 +20827,7 @@ class T5 extends kn {
|
|
|
20826
20827
|
});
|
|
20827
20828
|
}
|
|
20828
20829
|
loadEntryDoorMesh() {
|
|
20829
|
-
return
|
|
20830
|
+
return te(this, null, function* () {
|
|
20830
20831
|
const e = this.state.config.entryDoorImageUrl, i = yield Ds(e), s = new P.PlaneGeometry(0.2, 0.16), o = new P.MeshBasicMaterial({
|
|
20831
20832
|
map: i,
|
|
20832
20833
|
transparent: !0,
|
|
@@ -26999,9 +27000,9 @@ class KC {
|
|
|
26999
27000
|
}
|
|
27000
27001
|
}
|
|
27001
27002
|
const hc = 1e-3, rp = 0.01, ap = _h, US = (n, t) => {
|
|
27002
|
-
var ee, K, se,
|
|
27003
|
+
var ee, K, se, ie, le, Se, ue, Te;
|
|
27003
27004
|
let e = t == null ? void 0 : t.container, i = 1.4;
|
|
27004
|
-
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 = (
|
|
27005
|
+
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 = (ie = t == null ? void 0 : t.nearTolerance) != null ? ie : 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");
|
|
27005
27006
|
f.classList.add("PanoSpatialTagPlugin"), Object.assign(f.style, YC);
|
|
27006
27007
|
const m = new Vo();
|
|
27007
27008
|
let p = new Image();
|
|
@@ -27509,13 +27510,13 @@ function a4(n, t, e) {
|
|
|
27509
27510
|
}
|
|
27510
27511
|
const L = (M, S) => {
|
|
27511
27512
|
const T = S.map((_) => {
|
|
27512
|
-
const q = A(M, _), ee = _.name.length * r4, K = k(_.modelPosition[1], c),
|
|
27513
|
-
if (!
|
|
27514
|
-
return ce(B({}, _), { visible:
|
|
27513
|
+
const q = A(M, _), ee = _.name.length * r4, K = k(_.modelPosition[1], c), ie = (r ? v(M, _) : !0) && !E([q[0], q[1] + K], ee);
|
|
27514
|
+
if (!ie)
|
|
27515
|
+
return ce(B({}, _), { visible: ie });
|
|
27515
27516
|
p.push(q);
|
|
27516
27517
|
const le = w(q);
|
|
27517
27518
|
return ce(B({}, _), {
|
|
27518
|
-
visible:
|
|
27519
|
+
visible: ie,
|
|
27519
27520
|
transform: le,
|
|
27520
27521
|
strokeLength: K
|
|
27521
27522
|
});
|
|
@@ -27788,7 +27789,7 @@ const u4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
27788
27789
|
L(new Error("Video download Error: " + D.status));
|
|
27789
27790
|
}, D.onerror = (j) => L(j), D.open("GET", A), D.responseType = "blob", D.send();
|
|
27790
27791
|
});
|
|
27791
|
-
}, f = (A, w) =>
|
|
27792
|
+
}, f = (A, w) => te(void 0, null, function* () {
|
|
27792
27793
|
const { video_src: E, video_poster_src: k, points: L } = A;
|
|
27793
27794
|
e.videoSource = E, e.rectPoints = h4(L).map((D) => D.map(({ x: j, y: z, z: V }) => new P.Vector3(j, z, V))), e.imageTexture = h(k), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
27794
27795
|
}), m = (A) => {
|
|
@@ -28236,7 +28237,7 @@ function E4(n, t, e) {
|
|
|
28236
28237
|
return ce(B({}, q), { visible: !1 });
|
|
28237
28238
|
const ee = E(S, q);
|
|
28238
28239
|
q.name.length * I4;
|
|
28239
|
-
const K = y4(q.modelPosition[1], l), se = S.currentMode === Vt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0,
|
|
28240
|
+
const K = y4(q.modelPosition[1], l), se = S.currentMode === Vt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, ie = o ? A(S, q) : !1, le = se && !ie;
|
|
28240
28241
|
if (!le)
|
|
28241
28242
|
return ce(B({}, q), { visible: le });
|
|
28242
28243
|
g.push(ee);
|
|
@@ -28885,8 +28886,8 @@ function s8(n) {
|
|
|
28885
28886
|
}, T = z1([C, I], [M, S]);
|
|
28886
28887
|
if (T && k.push(V), !T && k.length) {
|
|
28887
28888
|
k.push(V);
|
|
28888
|
-
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),
|
|
28889
|
-
for (let Te = se; Te <
|
|
28889
|
+
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), ie = k[0];
|
|
28890
|
+
for (let Te = se; Te < ie; Te++)
|
|
28890
28891
|
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] });
|
|
28891
28892
|
const le = k[k.length - 1], Se = Math.min(l - 1, k[k.length - 1] + e * q);
|
|
28892
28893
|
for (let Te = le; Te < Se; Te++)
|
|
@@ -29531,17 +29532,28 @@ class F1 extends H1 {
|
|
|
29531
29532
|
d(this, "buttonMesh");
|
|
29532
29533
|
d(this, "videoTextureMap");
|
|
29533
29534
|
d(this, "ImageTextureMap");
|
|
29534
|
-
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => a === "withText" ? pu : a === "withoutText" ? eh : typeof a == "string" ? a : eh)(), this.videoCoverSrc = o, this.objectFit = r, this.videoTextureMap = c, this.ImageTextureMap = h, this.domEvents = u, this.position.copy(si(...i)), this.
|
|
29535
|
-
l ? this.addButtonMesh() : this.play(!0);
|
|
29536
|
-
}), this.addEventListener("removed", () => {
|
|
29535
|
+
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => a === "withText" ? pu : a === "withoutText" ? eh : typeof a == "string" ? a : eh)(), this.videoCoverSrc = o, this.objectFit = r, this.videoTextureMap = c, this.ImageTextureMap = h, this.domEvents = u, this.position.copy(si(...i)), this.initializeContent(l), this.addEventListener("removed", () => {
|
|
29537
29536
|
this.remove(...this.children);
|
|
29538
29537
|
}), this.addEventListener("dispose", () => {
|
|
29539
29538
|
var f;
|
|
29540
29539
|
(f = this.disposers) == null || f.forEach((m) => m == null ? void 0 : m());
|
|
29541
29540
|
});
|
|
29542
29541
|
}
|
|
29542
|
+
/**
|
|
29543
|
+
* 初始化内容显示逻辑
|
|
29544
|
+
* 确保在视频加载期间始终有内容显示
|
|
29545
|
+
*/
|
|
29546
|
+
initializeContent(e) {
|
|
29547
|
+
return te(this, null, function* () {
|
|
29548
|
+
this.videoCoverSrc && this.addCoverMesh().then(() => {
|
|
29549
|
+
this.addButtonMesh();
|
|
29550
|
+
}), this.addVideoMesh().then(() => {
|
|
29551
|
+
e || this.play(!0);
|
|
29552
|
+
});
|
|
29553
|
+
});
|
|
29554
|
+
}
|
|
29543
29555
|
play(e = !1) {
|
|
29544
|
-
return
|
|
29556
|
+
return te(this, null, function* () {
|
|
29545
29557
|
this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((i) => {
|
|
29546
29558
|
this.pause(), console.error("play error", i);
|
|
29547
29559
|
}), this.videoInstance.muted = e, this.render();
|
|
@@ -29558,11 +29570,11 @@ class F1 extends H1 {
|
|
|
29558
29570
|
this.disposers.push(() => s);
|
|
29559
29571
|
}
|
|
29560
29572
|
showPlayUI() {
|
|
29561
|
-
this.coverMesh && (this.coverMesh
|
|
29573
|
+
this.coverMesh && this.remove(this.coverMesh), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
|
|
29562
29574
|
}
|
|
29563
29575
|
showPauseUI() {
|
|
29564
|
-
return
|
|
29565
|
-
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
|
|
29576
|
+
return te(this, null, function* () {
|
|
29577
|
+
this.coverMesh ? (this.children.includes(this.coverMesh) || this.add(this.coverMesh), this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
|
|
29566
29578
|
});
|
|
29567
29579
|
}
|
|
29568
29580
|
render() {
|
|
@@ -29570,26 +29582,26 @@ class F1 extends H1 {
|
|
|
29570
29582
|
this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
29571
29583
|
}
|
|
29572
29584
|
addCoverMesh() {
|
|
29573
|
-
return
|
|
29585
|
+
return te(this, null, function* () {
|
|
29574
29586
|
if (this.children.includes(this.coverMesh))
|
|
29575
29587
|
return;
|
|
29576
|
-
const e = yield (() =>
|
|
29588
|
+
const e = yield (() => te(this, null, function* () {
|
|
29577
29589
|
if (this.coverMesh)
|
|
29578
29590
|
return this.coverMesh;
|
|
29579
29591
|
if (!this.videoCoverSrc)
|
|
29580
29592
|
return;
|
|
29581
29593
|
const { texture: i, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), o = new P.MeshBasicMaterial({ transparent: !1, map: i }), r = mr(this.objectFit, this.cornerPoints, i.image.width / i.image.height), a = new dc(r, o);
|
|
29582
|
-
return a.position.copy(new Ae(0, 0, 0)), a.name = "videoCoverMesh", a;
|
|
29594
|
+
return a.position.copy(new Ae(0, 0, 0)), a.name = "videoCoverMesh", o.needsUpdate = !0, i.needsUpdate = !0, a;
|
|
29583
29595
|
}))();
|
|
29584
29596
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
29585
29597
|
});
|
|
29586
29598
|
}
|
|
29587
29599
|
addVideoMesh() {
|
|
29588
|
-
return
|
|
29600
|
+
return te(this, null, function* () {
|
|
29589
29601
|
var s;
|
|
29590
29602
|
if (this.children.includes(this.videoMesh))
|
|
29591
29603
|
return;
|
|
29592
|
-
const e = yield (() =>
|
|
29604
|
+
const e = yield (() => te(this, null, function* () {
|
|
29593
29605
|
if (this.videoMesh)
|
|
29594
29606
|
return this.videoMesh;
|
|
29595
29607
|
if (!this.src)
|
|
@@ -29621,10 +29633,10 @@ class F1 extends H1 {
|
|
|
29621
29633
|
});
|
|
29622
29634
|
}
|
|
29623
29635
|
addButtonMesh() {
|
|
29624
|
-
return
|
|
29636
|
+
return te(this, null, function* () {
|
|
29625
29637
|
if (this.children.includes(this.buttonMesh))
|
|
29626
29638
|
return;
|
|
29627
|
-
const e = yield (() =>
|
|
29639
|
+
const e = yield (() => te(this, null, function* () {
|
|
29628
29640
|
var m, p, g, v;
|
|
29629
29641
|
if (this.buttonMesh)
|
|
29630
29642
|
return this.buttonMesh;
|
|
@@ -29644,7 +29656,7 @@ class F1 extends H1 {
|
|
|
29644
29656
|
});
|
|
29645
29657
|
}
|
|
29646
29658
|
getImageTexture(e) {
|
|
29647
|
-
return
|
|
29659
|
+
return te(this, null, function* () {
|
|
29648
29660
|
var s, o;
|
|
29649
29661
|
if ((s = this.ImageTextureMap) != null && s.has(e))
|
|
29650
29662
|
return this.ImageTextureMap.get(e);
|
|
@@ -30199,7 +30211,7 @@ class vu {
|
|
|
30199
30211
|
* @description 找到标签
|
|
30200
30212
|
*/
|
|
30201
30213
|
find(t) {
|
|
30202
|
-
return
|
|
30214
|
+
return te(this, null, function* () {
|
|
30203
30215
|
var s;
|
|
30204
30216
|
const e = this.fiveState;
|
|
30205
30217
|
if (!this.fiveState)
|
|
@@ -30224,11 +30236,11 @@ class vu {
|
|
|
30224
30236
|
* @description 闪烁
|
|
30225
30237
|
*/
|
|
30226
30238
|
blink(t) {
|
|
30227
|
-
return
|
|
30239
|
+
return te(this, null, function* () {
|
|
30228
30240
|
var a, l, c, h;
|
|
30229
30241
|
yield this.ready();
|
|
30230
30242
|
const e = (a = this.enabled) != null ? a : !0, i = (l = this.state) == null ? void 0 : l.visible, s = e && i;
|
|
30231
|
-
s === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) =>
|
|
30243
|
+
s === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => te(this, null, function* () {
|
|
30232
30244
|
if (this.dom || this.contentDom) {
|
|
30233
30245
|
u();
|
|
30234
30246
|
return;
|
|
@@ -30236,7 +30248,7 @@ class vu {
|
|
|
30236
30248
|
const f = setInterval(() => {
|
|
30237
30249
|
(this.dom || this.contentDom) && (u(), clearInterval(f));
|
|
30238
30250
|
}, 16.7);
|
|
30239
|
-
})) : this.stickType === "Model" && !((c = this.model) != null && c.object) ? yield (h = this.model) == null ? void 0 : h.promise : this.stickType === "Plane" && (yield new Promise((u) =>
|
|
30251
|
+
})) : this.stickType === "Model" && !((c = this.model) != null && c.object) ? yield (h = this.model) == null ? void 0 : h.promise : this.stickType === "Plane" && (yield new Promise((u) => te(this, null, function* () {
|
|
30240
30252
|
if (this.mediaPlane) {
|
|
30241
30253
|
u();
|
|
30242
30254
|
return;
|
|
@@ -33625,7 +33637,7 @@ var ka = g9, ll = {}, m9 = {
|
|
|
33625
33637
|
(function(n, t) {
|
|
33626
33638
|
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 = {};
|
|
33627
33639
|
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;
|
|
33628
|
-
var se = typeof ki == "object" && ki && ki.Object === Object && ki,
|
|
33640
|
+
var se = typeof ki == "object" && ki && ki.Object === Object && ki, ie = typeof self == "object" && self && self.Object === Object && self, le = se || ie || Function("return this")(), Se = t && !t.nodeType && t, ue = Se && !0 && n && !n.nodeType && n, Te = ue && ue.exports === Se;
|
|
33629
33641
|
function fe(x, H) {
|
|
33630
33642
|
return x.set(H[0], H[1]), x;
|
|
33631
33643
|
}
|
|
@@ -34076,7 +34088,7 @@ var cl = {}, A9 = {
|
|
|
34076
34088
|
}
|
|
34077
34089
|
};
|
|
34078
34090
|
(function(n, t) {
|
|
34079
|
-
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]",
|
|
34091
|
+
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]", ie = /[\\^$.*+?()[\]{}|]/g, le = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, ue = {};
|
|
34080
34092
|
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;
|
|
34081
34093
|
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() {
|
|
34082
34094
|
try {
|
|
@@ -34139,7 +34151,7 @@ var cl = {}, A9 = {
|
|
|
34139
34151
|
var x = /[^.]+$/.exec(ai && ai.keys && ai.keys.IE_PROTO || "");
|
|
34140
34152
|
return x ? "Symbol(src)_1." + x : "";
|
|
34141
34153
|
}(), Gt = Ft.toString, Xo = RegExp(
|
|
34142
|
-
"^" + pi.call(rt).replace(
|
|
34154
|
+
"^" + pi.call(rt).replace(ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
34143
34155
|
), ps = Me ? he.Buffer : void 0, xn = he.Symbol, Us = he.Uint8Array, Sn = Ft.propertyIsEnumerable, Ci = zt.splice, gi = xn ? xn.toStringTag : void 0, Dn = Object.getOwnPropertySymbols, Tn = ps ? ps.isBuffer : void 0, Gi = st(Object.keys, Object), nn = Z(he, "DataView"), sn = Z(he, "Map"), gs = Z(he, "Promise"), ms = Z(he, "Set"), Ln = Z(he, "WeakMap"), Wi = Z(Object, "create"), Qs = ti(nn), Li = ti(sn), zn = ti(gs), Yo = ti(ms), Zo = ti(Ln), vs = xn ? xn.prototype : void 0, on = vs ? vs.valueOf : void 0;
|
|
34144
34156
|
function Mt(x) {
|
|
34145
34157
|
var H = -1, J = x == null ? 0 : x.length;
|
|
@@ -34687,7 +34699,7 @@ class D9 {
|
|
|
34687
34699
|
this.reset();
|
|
34688
34700
|
const i = Math.min(S9, Math.max(this._autoplayDuration, 1));
|
|
34689
34701
|
let s = -i;
|
|
34690
|
-
this._interval = x9(() =>
|
|
34702
|
+
this._interval = x9(() => te(this, null, function* () {
|
|
34691
34703
|
if (this._paused)
|
|
34692
34704
|
return;
|
|
34693
34705
|
s += i;
|
|
@@ -34850,17 +34862,17 @@ function T9(n) {
|
|
|
34850
34862
|
r.focused = !r.focused;
|
|
34851
34863
|
},
|
|
34852
34864
|
_applyAutoplayIfNeeded(l) {
|
|
34853
|
-
return
|
|
34865
|
+
return te(this, arguments, function* ({ data: r, methods: a }) {
|
|
34854
34866
|
if (!r.infinite && (r.autoplayDirection === as && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === Bo && r.currentParticleIndex === 0)) {
|
|
34855
34867
|
t.reset();
|
|
34856
34868
|
return;
|
|
34857
34869
|
}
|
|
34858
34870
|
if (r.autoplay) {
|
|
34859
34871
|
const c = () => rh({
|
|
34860
|
-
[as]: () =>
|
|
34872
|
+
[as]: () => te(this, null, function* () {
|
|
34861
34873
|
return a.showNextPage();
|
|
34862
34874
|
}),
|
|
34863
|
-
[Bo]: () =>
|
|
34875
|
+
[Bo]: () => te(this, null, function* () {
|
|
34864
34876
|
return a.showPrevPage();
|
|
34865
34877
|
})
|
|
34866
34878
|
})(r.autoplayDirection);
|
|
@@ -34870,7 +34882,7 @@ function T9(n) {
|
|
|
34870
34882
|
},
|
|
34871
34883
|
// makes delayed jump to 1st or last element
|
|
34872
34884
|
_jumpIfNeeded(l) {
|
|
34873
|
-
return
|
|
34885
|
+
return te(this, arguments, function* ({ data: r, methods: a }) {
|
|
34874
34886
|
let c = !1;
|
|
34875
34887
|
return r.infinite && (r.currentParticleIndex === 0 ? (yield a.showParticle(
|
|
34876
34888
|
r.particlesCount - r.clonesCountTotal,
|
|
@@ -34883,24 +34895,24 @@ function T9(n) {
|
|
|
34883
34895
|
});
|
|
34884
34896
|
},
|
|
34885
34897
|
changePage(h, u, f) {
|
|
34886
|
-
return
|
|
34898
|
+
return te(this, arguments, function* ({ data: r, methods: a }, l, c) {
|
|
34887
34899
|
if (t.reset(), r.disabled)
|
|
34888
34900
|
return;
|
|
34889
34901
|
r.disabled = !0, l(), yield a.offsetPage({ animated: Ir(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
|
|
34890
34902
|
});
|
|
34891
34903
|
},
|
|
34892
34904
|
showNextPage(c, h) {
|
|
34893
|
-
return
|
|
34905
|
+
return te(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
34894
34906
|
r.disabled || (yield a.changePage(a._next, l));
|
|
34895
34907
|
});
|
|
34896
34908
|
},
|
|
34897
34909
|
showPrevPage(c, h) {
|
|
34898
|
-
return
|
|
34910
|
+
return te(this, arguments, function* ({ data: r, methods: a }, l) {
|
|
34899
34911
|
r.disabled || (yield a.changePage(a._prev, l));
|
|
34900
34912
|
});
|
|
34901
34913
|
},
|
|
34902
34914
|
showParticle(c, h, u) {
|
|
34903
|
-
return
|
|
34915
|
+
return te(this, arguments, function* ({ methods: r }, a, l) {
|
|
34904
34916
|
yield r.changePage(
|
|
34905
34917
|
() => r._moveToParticle(a),
|
|
34906
34918
|
l
|
|
@@ -34919,7 +34931,7 @@ function T9(n) {
|
|
|
34919
34931
|
});
|
|
34920
34932
|
},
|
|
34921
34933
|
showPage(c, h, u) {
|
|
34922
|
-
return
|
|
34934
|
+
return te(this, arguments, function* ({ methods: r }, a, l) {
|
|
34923
34935
|
const f = r._getParticleIndexByPageIndex(a);
|
|
34924
34936
|
yield r.showParticle(f, l);
|
|
34925
34937
|
});
|
|
@@ -35506,7 +35518,7 @@ function F9(n, t, e) {
|
|
|
35506
35518
|
}), g = cs();
|
|
35507
35519
|
let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: k = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = as } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: b = !0 } = t, { swiping: C = !0 } = t, { particlesToShow: I = 1 } = t, { particlesToScroll: M = 1 } = t;
|
|
35508
35520
|
function S(de, ye) {
|
|
35509
|
-
return
|
|
35521
|
+
return te(this, null, function* () {
|
|
35510
35522
|
const ze = Ir(ye, "animated", !0);
|
|
35511
35523
|
if (typeof de != "number")
|
|
35512
35524
|
throw new Error("pageIndex should be a number");
|
|
@@ -35514,13 +35526,13 @@ function F9(n, t, e) {
|
|
|
35514
35526
|
});
|
|
35515
35527
|
}
|
|
35516
35528
|
function T(de) {
|
|
35517
|
-
return
|
|
35529
|
+
return te(this, null, function* () {
|
|
35518
35530
|
const ye = Ir(de, "animated", !0);
|
|
35519
35531
|
yield m.showPrevPage({ animated: ye });
|
|
35520
35532
|
});
|
|
35521
35533
|
}
|
|
35522
35534
|
function N(de) {
|
|
35523
|
-
return
|
|
35535
|
+
return te(this, null, function* () {
|
|
35524
35536
|
const ye = Ir(de, "animated", !0);
|
|
35525
35537
|
yield m.showNextPage({ animated: ye });
|
|
35526
35538
|
});
|
|
@@ -35545,14 +35557,14 @@ function F9(n, t, e) {
|
|
|
35545
35557
|
});
|
|
35546
35558
|
}
|
|
35547
35559
|
Lt(() => {
|
|
35548
|
-
|
|
35560
|
+
te(this, null, function* () {
|
|
35549
35561
|
yield pd(), ee && q && (u.particlesCountWithoutClones = ee.children.length, yield pd(), u.infinite && se(), u.particlesCount = ee.children.length, m.showPage(E, { animated: !1 }), K.observe(q));
|
|
35550
35562
|
});
|
|
35551
35563
|
}), ri(() => {
|
|
35552
35564
|
K.disconnect(), f.reset();
|
|
35553
35565
|
});
|
|
35554
|
-
function
|
|
35555
|
-
return
|
|
35566
|
+
function ie(de) {
|
|
35567
|
+
return te(this, null, function* () {
|
|
35556
35568
|
yield m.showPage(de, { animated: !0 });
|
|
35557
35569
|
});
|
|
35558
35570
|
}
|
|
@@ -35560,7 +35572,7 @@ function F9(n, t, e) {
|
|
|
35560
35572
|
C && (u.durationMs = 0);
|
|
35561
35573
|
}
|
|
35562
35574
|
function Se(de) {
|
|
35563
|
-
return
|
|
35575
|
+
return te(this, null, function* () {
|
|
35564
35576
|
C && (yield rh({
|
|
35565
35577
|
[as]: m.showNextPage,
|
|
35566
35578
|
[Bo]: m.showPrevPage
|
|
@@ -35574,7 +35586,7 @@ function F9(n, t, e) {
|
|
|
35574
35586
|
C && m.showParticle(u.currentParticleIndex);
|
|
35575
35587
|
}
|
|
35576
35588
|
function fe() {
|
|
35577
|
-
return
|
|
35589
|
+
return te(this, null, function* () {
|
|
35578
35590
|
C && (yield m.offsetPage({ animated: !0 }));
|
|
35579
35591
|
});
|
|
35580
35592
|
}
|
|
@@ -35598,7 +35610,7 @@ function F9(n, t, e) {
|
|
|
35598
35610
|
q = de, e(12, q);
|
|
35599
35611
|
});
|
|
35600
35612
|
}
|
|
35601
|
-
const Be = (de) =>
|
|
35613
|
+
const Be = (de) => ie(de.detail);
|
|
35602
35614
|
return n.$$set = (de) => {
|
|
35603
35615
|
"timingFunction" in de && e(0, v = de.timingFunction), "arrows" in de && e(1, A = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, E = de.initialPageIndex), "duration" in de && e(25, k = de.duration), "autoplay" in de && e(26, L = de.autoplay), "autoplayDuration" in de && e(27, D = de.autoplayDuration), "autoplayDirection" in de && e(28, j = de.autoplayDirection), "pauseOnFocus" in de && e(29, z = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3, V = de.autoplayProgressVisible), "dots" in de && e(4, b = de.dots), "swiping" in de && e(30, C = de.swiping), "particlesToShow" in de && e(31, I = de.particlesToShow), "particlesToScroll" in de && e(32, M = de.particlesToScroll), "$$scope" in de && e(36, s = de.$$scope);
|
|
35604
35616
|
}, n.$$.update = () => {
|
|
@@ -35628,7 +35640,7 @@ function F9(n, t, e) {
|
|
|
35628
35640
|
q,
|
|
35629
35641
|
ee,
|
|
35630
35642
|
m,
|
|
35631
|
-
|
|
35643
|
+
ie,
|
|
35632
35644
|
le,
|
|
35633
35645
|
Se,
|
|
35634
35646
|
ue,
|
|
@@ -37258,7 +37270,7 @@ class yg {
|
|
|
37258
37270
|
* 测试音频URL的可访问性
|
|
37259
37271
|
*/
|
|
37260
37272
|
static testAudioUrl(t) {
|
|
37261
|
-
return
|
|
37273
|
+
return te(this, null, function* () {
|
|
37262
37274
|
try {
|
|
37263
37275
|
const e = yield fetch(t, { method: "HEAD" });
|
|
37264
37276
|
return {
|
|
@@ -37279,7 +37291,7 @@ class yg {
|
|
|
37279
37291
|
* 尝试创建和测试音频元素
|
|
37280
37292
|
*/
|
|
37281
37293
|
static testAudioElement(t) {
|
|
37282
|
-
return
|
|
37294
|
+
return te(this, null, function* () {
|
|
37283
37295
|
return new Promise((e) => {
|
|
37284
37296
|
const i = new Audio();
|
|
37285
37297
|
let s = !1;
|
|
@@ -37323,7 +37335,7 @@ class yg {
|
|
|
37323
37335
|
* 完整的音频诊断
|
|
37324
37336
|
*/
|
|
37325
37337
|
static diagnoseAudio(t) {
|
|
37326
|
-
return
|
|
37338
|
+
return te(this, null, function* () {
|
|
37327
37339
|
var r;
|
|
37328
37340
|
console.group("🎵 音频诊断报告"), console.group("1. 浏览器支持检查");
|
|
37329
37341
|
const e = this.checkBrowserSupport();
|
|
@@ -37396,7 +37408,7 @@ class hM extends Audio {
|
|
|
37396
37408
|
return ((e = this.audioInstance) == null ? void 0 : e.duration) || 0;
|
|
37397
37409
|
}
|
|
37398
37410
|
play() {
|
|
37399
|
-
return
|
|
37411
|
+
return te(this, null, function* () {
|
|
37400
37412
|
var i, s, o;
|
|
37401
37413
|
if (this.tryplaying)
|
|
37402
37414
|
return;
|
|
@@ -38657,7 +38669,7 @@ class RM extends Ee {
|
|
|
38657
38669
|
}
|
|
38658
38670
|
const vc = /* @__PURE__ */ new Map();
|
|
38659
38671
|
function ov(n) {
|
|
38660
|
-
return
|
|
38672
|
+
return te(this, null, function* () {
|
|
38661
38673
|
return new Promise((t, e) => {
|
|
38662
38674
|
if (!n) {
|
|
38663
38675
|
e(Error("url is empty"));
|
|
@@ -38669,7 +38681,7 @@ function ov(n) {
|
|
|
38669
38681
|
});
|
|
38670
38682
|
}
|
|
38671
38683
|
function _M(n) {
|
|
38672
|
-
return
|
|
38684
|
+
return te(this, null, function* () {
|
|
38673
38685
|
const { url: t, ratio: e = 3 } = n, i = (() => {
|
|
38674
38686
|
if (vc.has(t))
|
|
38675
38687
|
return vc.get(t);
|
|
@@ -38683,7 +38695,7 @@ function _M(n) {
|
|
|
38683
38695
|
});
|
|
38684
38696
|
}
|
|
38685
38697
|
function BM(n) {
|
|
38686
|
-
return
|
|
38698
|
+
return te(this, null, function* () {
|
|
38687
38699
|
const { steps: t, url: e, ratio: i = 3, fps: s = 24 } = n;
|
|
38688
38700
|
if (!t)
|
|
38689
38701
|
throw new Error("KeyframeIcon requires steps");
|
|
@@ -39140,13 +39152,13 @@ function ZM(n, t, e) {
|
|
|
39140
39152
|
let i, s, o, r, a, l, c, h, u, f, m, { width: p = null } = t, { icon: g = null } = t, { shadow: v = !1 } = t;
|
|
39141
39153
|
const A = cs();
|
|
39142
39154
|
function w(L) {
|
|
39143
|
-
return
|
|
39155
|
+
return te(this, null, function* () {
|
|
39144
39156
|
const D = yield BM(L);
|
|
39145
39157
|
return A("iconLoaded", D), D;
|
|
39146
39158
|
});
|
|
39147
39159
|
}
|
|
39148
39160
|
function E(L) {
|
|
39149
|
-
return
|
|
39161
|
+
return te(this, null, function* () {
|
|
39150
39162
|
if (typeof m == "number")
|
|
39151
39163
|
return ce(B({}, L), { width: m });
|
|
39152
39164
|
const D = yield _M(L);
|
|
@@ -40295,12 +40307,12 @@ class av extends vu {
|
|
|
40295
40307
|
super(e, i);
|
|
40296
40308
|
d(this, "loading", !1);
|
|
40297
40309
|
/** 加载外部模型 */
|
|
40298
|
-
d(this, "loadModel", () =>
|
|
40310
|
+
d(this, "loadModel", () => te(this, null, function* () {
|
|
40299
40311
|
var r, a;
|
|
40300
40312
|
const e = this.data.modelUrl;
|
|
40301
40313
|
if (!e || (this.loading = !0, yield yi(this.five), !this.plugin.tags.includes(this)))
|
|
40302
40314
|
return;
|
|
40303
|
-
const i = B8(e).then((l) =>
|
|
40315
|
+
const i = B8(e).then((l) => te(this, null, function* () {
|
|
40304
40316
|
var u;
|
|
40305
40317
|
const c = Object.assign(l.scene, {
|
|
40306
40318
|
customID: this.id,
|
|
@@ -40402,7 +40414,7 @@ class D7 extends vu {
|
|
|
40402
40414
|
super.setData(...t), this.computeRenderType() === "Mesh" ? ((s = (i = this.data.mediaData) == null ? void 0 : i[0]) == null ? void 0 : s.type) === "Video" ? this.renderVideoPlane() : ((r = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : r.type) === "Image" && this.renderImagePlane() : (a = this.tag3DContentSvelte) == null || a.svelteApp.$set({ tag: this });
|
|
40403
40415
|
}
|
|
40404
40416
|
loadModel() {
|
|
40405
|
-
return
|
|
40417
|
+
return te(this, null, function* () {
|
|
40406
40418
|
var e, i, s, o, r, a;
|
|
40407
40419
|
if (yield yi(this.five), this.computeRenderType() === "Mesh")
|
|
40408
40420
|
((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((o = (s = this.data.mediaData) == null ? void 0 : s[0]) == null ? void 0 : o.type) === "Image" && this.renderImagePlane();
|
|
@@ -40468,7 +40480,7 @@ class D7 extends vu {
|
|
|
40468
40480
|
"click",
|
|
40469
40481
|
(u) => {
|
|
40470
40482
|
var f;
|
|
40471
|
-
!((f = c.videoInstance) != null && f.paused) && c.videoInstance.muted === !1 && this.plugin.hooks.emit("playStateChange", { event: u, state: "playing", tag: this, mediaInstance: c.videoInstance });
|
|
40483
|
+
c.videoInstance && !((f = c.videoInstance) != null && f.paused) && c.videoInstance.muted === !1 && this.plugin.hooks.emit("playStateChange", { event: u, state: "playing", tag: this, mediaInstance: c.videoInstance });
|
|
40472
40484
|
}
|
|
40473
40485
|
), c.onVideoReady = (u) => {
|
|
40474
40486
|
u.addEventListener("play", (f) => {
|
|
@@ -41034,16 +41046,16 @@ function N7(n, t, e) {
|
|
|
41034
41046
|
const se = (Se = (le = h.style) == null ? void 0 : le.point) == null ? void 0 : Se.width;
|
|
41035
41047
|
if (typeof se == "number")
|
|
41036
41048
|
return se;
|
|
41037
|
-
const
|
|
41038
|
-
if (typeof
|
|
41039
|
-
return
|
|
41040
|
-
if (
|
|
41049
|
+
const ie = (Te = (ue = h.style) == null ? void 0 : ue.point) == null ? void 0 : Te.size;
|
|
41050
|
+
if (typeof ie == "number")
|
|
41051
|
+
return ie;
|
|
41052
|
+
if (ie === "S")
|
|
41041
41053
|
return 18;
|
|
41042
|
-
if (
|
|
41054
|
+
if (ie === "M")
|
|
41043
41055
|
return 20;
|
|
41044
|
-
if (
|
|
41056
|
+
if (ie === "L")
|
|
41045
41057
|
return 24;
|
|
41046
|
-
if (
|
|
41058
|
+
if (ie === "XL")
|
|
41047
41059
|
return 28;
|
|
41048
41060
|
})()), n.$$.dirty & /*tag*/
|
|
41049
41061
|
2 && e(6, a = h.contentType === "Audio" && h.data.appearance === "plane");
|
|
@@ -42148,26 +42160,26 @@ function Pk(n) {
|
|
|
42148
42160
|
return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
|
|
42149
42161
|
}
|
|
42150
42162
|
function Ck(n, t, e) {
|
|
42151
|
-
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:
|
|
42163
|
+
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: ie = 0 } = t, le = 0, Se = "00:00", ue = null, Te = 0, fe = 0;
|
|
42152
42164
|
function he() {
|
|
42153
|
-
return
|
|
42165
|
+
return ie > 0 ? se / ie * 100 : 0;
|
|
42154
42166
|
}
|
|
42155
42167
|
function Le() {
|
|
42156
|
-
if (!K ||
|
|
42168
|
+
if (!K || ie <= 0) {
|
|
42157
42169
|
ue = null;
|
|
42158
42170
|
return;
|
|
42159
42171
|
}
|
|
42160
|
-
const Be = (Date.now() - Te) / 1e3, de = se + Be, ze = Math.min(de /
|
|
42172
|
+
const Be = (Date.now() - Te) / 1e3, de = se + Be, ze = Math.min(de / ie * 100, 100) - fe;
|
|
42161
42173
|
Math.abs(ze) > 0.05 && (fe += ze * 0.2), ue = requestAnimationFrame(Le);
|
|
42162
42174
|
}
|
|
42163
42175
|
function $() {
|
|
42164
42176
|
if (!s)
|
|
42165
42177
|
return;
|
|
42166
42178
|
const ve = he();
|
|
42167
|
-
|
|
42179
|
+
ie > 0 ? (K || (fe = ve), e(9, le = fe), e(10, Se = Pk(fe / 100 * ie)), Te = Date.now()) : (fe = 0, e(9, le = 0), e(10, Se = "00:00"));
|
|
42168
42180
|
}
|
|
42169
42181
|
function Me() {
|
|
42170
|
-
K &&
|
|
42182
|
+
K && ie > 0 ? ue || Le() : ue && (cancelAnimationFrame(ue), ue = null);
|
|
42171
42183
|
}
|
|
42172
42184
|
function Re() {
|
|
42173
42185
|
ee && (ee.paused ? ee.play() : ee.pause());
|
|
@@ -42175,7 +42187,7 @@ function Ck(n, t, e) {
|
|
|
42175
42187
|
return ri(() => {
|
|
42176
42188
|
ue && (cancelAnimationFrame(ue), ue = null);
|
|
42177
42189
|
}), n.$$set = (ve) => {
|
|
42178
|
-
"tag" in ve && e(2, T = ve.tag), "config" in ve && e(23, N = ve.config), "theme" in ve && e(24, _ = ve.theme), "placement" in ve && e(0, q = ve.placement), "audioInstance" in ve && e(25, ee = ve.audioInstance), "audioPlaying" in ve && e(1, K = ve.audioPlaying), "audioCurrentTime" in ve && e(26, se = ve.audioCurrentTime), "audioDuration" in ve && e(27,
|
|
42190
|
+
"tag" in ve && e(2, T = ve.tag), "config" in ve && e(23, N = ve.config), "theme" in ve && e(24, _ = ve.theme), "placement" in ve && e(0, q = ve.placement), "audioInstance" in ve && e(25, ee = ve.audioInstance), "audioPlaying" in ve && e(1, K = ve.audioPlaying), "audioCurrentTime" in ve && e(26, se = ve.audioCurrentTime), "audioDuration" in ve && e(27, ie = ve.audioDuration), "$$scope" in ve && e(37, S = ve.$$scope);
|
|
42179
42191
|
}, n.$$.update = () => {
|
|
42180
42192
|
var ve, Be, de, ye, ze, Xe;
|
|
42181
42193
|
n.$$.dirty[0] & /*tag*/
|
|
@@ -42267,7 +42279,7 @@ function Ck(n, t, e) {
|
|
|
42267
42279
|
_,
|
|
42268
42280
|
ee,
|
|
42269
42281
|
se,
|
|
42270
|
-
|
|
42282
|
+
ie,
|
|
42271
42283
|
V,
|
|
42272
42284
|
j,
|
|
42273
42285
|
D,
|
|
@@ -43340,16 +43352,16 @@ function Fk(n, t, e) {
|
|
|
43340
43352
|
}, se = ($) => {
|
|
43341
43353
|
f || ue(), $.stopPropagation(), m.emit("click", { event: $, target: "TagPopoverContent", tag: p });
|
|
43342
43354
|
};
|
|
43343
|
-
let
|
|
43355
|
+
let ie = null, le = !1;
|
|
43344
43356
|
function Se() {
|
|
43345
|
-
w &&
|
|
43357
|
+
w && ie && ie.parentNode !== w && w.appendChild(ie);
|
|
43346
43358
|
}
|
|
43347
43359
|
Lt(() => {
|
|
43348
43360
|
(!A || A === document.body) && console.warn("TagPopover 组件警告:禁止使用 document.body 作为 wrapperElement,请传入自定义容器元素。"), le = !0, Se(), A && A !== document.body && e(25, A.style.overflow = "hidden", A);
|
|
43349
43361
|
}), qh(() => {
|
|
43350
43362
|
le && Se();
|
|
43351
43363
|
}), ri(() => {
|
|
43352
|
-
|
|
43364
|
+
ie && ie.parentNode && ie.parentNode.removeChild(ie), A && A !== document.body && e(25, A.style.overflow = "", A);
|
|
43353
43365
|
});
|
|
43354
43366
|
function ue() {
|
|
43355
43367
|
typeof L == "function" && L(), b("close");
|
|
@@ -43367,7 +43379,7 @@ function Fk(n, t, e) {
|
|
|
43367
43379
|
}
|
|
43368
43380
|
function Le($) {
|
|
43369
43381
|
qe[$ ? "unshift" : "push"](() => {
|
|
43370
|
-
|
|
43382
|
+
ie = $, e(10, ie);
|
|
43371
43383
|
});
|
|
43372
43384
|
}
|
|
43373
43385
|
return n.$$set = ($) => {
|
|
@@ -43422,7 +43434,7 @@ function Fk(n, t, e) {
|
|
|
43422
43434
|
V,
|
|
43423
43435
|
S,
|
|
43424
43436
|
C,
|
|
43425
|
-
|
|
43437
|
+
ie,
|
|
43426
43438
|
f,
|
|
43427
43439
|
u,
|
|
43428
43440
|
h,
|
|
@@ -43976,7 +43988,7 @@ function Zk(n, t, e) {
|
|
|
43976
43988
|
);
|
|
43977
43989
|
}, se = () => {
|
|
43978
43990
|
C = !0, V && clearTimeout(V);
|
|
43979
|
-
},
|
|
43991
|
+
}, ie = () => {
|
|
43980
43992
|
C = !1, K(!1);
|
|
43981
43993
|
}, le = ($) => {
|
|
43982
43994
|
var Me, Re, ve, Be, de, ye;
|
|
@@ -44029,7 +44041,7 @@ function Zk(n, t, e) {
|
|
|
44029
44041
|
1025 && e(25, s = (() => !(p.isPopoverConfigEnabled() && p.contentType === "Panorama" || p.isPopoverConfigEnabled() && p.contentType === "ImageText" || p.isPopoverConfigEnabled() && p.contentType === "Text" || p.isPopoverConfigEnabled() && p.contentType === "Audio" || p.stickType !== "2DPoint" || p.entryFromModel && Ai(p.five.state.mode) && i))()), n.$$.dirty[0] & /*tag*/
|
|
44030
44042
|
1 && e(24, o = (() => {
|
|
44031
44043
|
var Be;
|
|
44032
|
-
return p.contentType === "Marketing" ? !!(p.data.title || p.data.name || p.data.description || p.data.tooltip || (Be = p.data.price) != null && Be.value || p.data.brandTags && p.data.brandTags.length > 0 || p.data.tags && p.data.tags.length > 0 || p.data.imageUrl || p.data.mediaUrl || p.data.mediaData && p.data.mediaData.length > 0) : !!(p.data.title || p.data.name || p.data.text || p.data.description || p.data.tooltip || p.data.imageUrl || p.data.mediaUrl || p.data.mediaData && p.data.mediaData.length > 0);
|
|
44044
|
+
return p.contentType === "Marketing" ? !!(p.data.title || p.data.name || p.data.description || p.data.tooltip || (Be = p.data.price) != null && Be.value || p.data.brandTags && p.data.brandTags.length > 0 || p.data.tags && p.data.tags.length > 0 || p.data.imageUrl || p.data.mediaUrl || p.data.mediaData && p.data.mediaData.length > 0) : !!(p.data.title || p.data.name || p.data.text || p.data.description || p.data.tooltip || p.data.imageUrl || p.data.mediaUrl || p.data.audioUrl || p.data.mediaData && p.data.mediaData.length > 0);
|
|
44033
44045
|
})()), n.$$.dirty[0] & /*tag*/
|
|
44034
44046
|
1 && e(23, r = p.id), n.$$.dirty[0] & /*tag*/
|
|
44035
44047
|
1 && e(9, a = p.screenPosition), n.$$.dirty[0] & /*tag*/
|
|
@@ -44069,7 +44081,7 @@ function Zk(n, t, e) {
|
|
|
44069
44081
|
D,
|
|
44070
44082
|
q,
|
|
44071
44083
|
se,
|
|
44072
|
-
|
|
44084
|
+
ie,
|
|
44073
44085
|
le,
|
|
44074
44086
|
Se,
|
|
44075
44087
|
ue,
|
|
@@ -44373,7 +44385,7 @@ class ah extends D8 {
|
|
|
44373
44385
|
/** 全局 hover 启用状态,默认 true */
|
|
44374
44386
|
d(this, "globalHoverEnabled", !0);
|
|
44375
44387
|
/** 更改 tag 模型 */
|
|
44376
|
-
d(this, "changeTagModel", (e, i) =>
|
|
44388
|
+
d(this, "changeTagModel", (e, i) => te(this, null, function* () {
|
|
44377
44389
|
var s;
|
|
44378
44390
|
e.data = et({}, e.data, i), yield (s = e.loadModel) == null ? void 0 : s.call(e);
|
|
44379
44391
|
}));
|
|
@@ -44409,7 +44421,7 @@ class ah extends D8 {
|
|
|
44409
44421
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
44410
44422
|
}, 1e3);
|
|
44411
44423
|
});
|
|
44412
|
-
d(this, "handleFivePanoArrived", () =>
|
|
44424
|
+
d(this, "handleFivePanoArrived", () => te(this, null, function* () {
|
|
44413
44425
|
this.filter2DPointTag.forEach((e) => {
|
|
44414
44426
|
e.state.visible = !1, e.applyVisible();
|
|
44415
44427
|
}), this.tagsDo(this.tags, (e) => {
|
|
@@ -44497,7 +44509,7 @@ class ah extends D8 {
|
|
|
44497
44509
|
* @description 加载数据
|
|
44498
44510
|
*/
|
|
44499
44511
|
load(e) {
|
|
44500
|
-
return
|
|
44512
|
+
return te(this, null, function* () {
|
|
44501
44513
|
var o, r;
|
|
44502
44514
|
this.clearTags();
|
|
44503
44515
|
try {
|
|
@@ -44530,7 +44542,7 @@ class ah extends D8 {
|
|
|
44530
44542
|
* @description 添加标签
|
|
44531
44543
|
*/
|
|
44532
44544
|
addTag(e) {
|
|
44533
|
-
return
|
|
44545
|
+
return te(this, null, function* () {
|
|
44534
44546
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
44535
44547
|
const r = gu(o);
|
|
44536
44548
|
if (r === "2DPoint" || r === "3DPoint")
|
|
@@ -44540,7 +44552,7 @@ class ah extends D8 {
|
|
|
44540
44552
|
if (r === "Plane")
|
|
44541
44553
|
return new D7(this, o);
|
|
44542
44554
|
});
|
|
44543
|
-
return s.forEach((o) => m8(o)), this.tags.push(...s), this.tagsLengthWillUpdate = !0, yi(this.five).then(() =>
|
|
44555
|
+
return s.forEach((o) => m8(o)), this.tags.push(...s), this.tagsLengthWillUpdate = !0, yi(this.five).then(() => te(this, null, function* () {
|
|
44544
44556
|
var o, r;
|
|
44545
44557
|
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.tagsDo(s, (a) => {
|
|
44546
44558
|
this.tags.includes(a) && (a.updateVisible(), a.updateZIndex());
|
|
@@ -44577,7 +44589,7 @@ class ah extends D8 {
|
|
|
44577
44589
|
});
|
|
44578
44590
|
}
|
|
44579
44591
|
show(e) {
|
|
44580
|
-
return
|
|
44592
|
+
return te(this, null, function* () {
|
|
44581
44593
|
if (this.checkDisposed())
|
|
44582
44594
|
return;
|
|
44583
44595
|
const { userAction: i = !0 } = e != null ? e : {};
|
|
@@ -44585,7 +44597,7 @@ class ah extends D8 {
|
|
|
44585
44597
|
});
|
|
44586
44598
|
}
|
|
44587
44599
|
hide(e) {
|
|
44588
|
-
return
|
|
44600
|
+
return te(this, null, function* () {
|
|
44589
44601
|
if (this.checkDisposed())
|
|
44590
44602
|
return;
|
|
44591
44603
|
const { userAction: i = !0 } = e != null ? e : {};
|
|
@@ -44626,7 +44638,7 @@ class ah extends D8 {
|
|
|
44626
44638
|
* @param {Partial<anime.AnimeParams>} animeConfig
|
|
44627
44639
|
*/
|
|
44628
44640
|
blinkTagById(e, i) {
|
|
44629
|
-
return
|
|
44641
|
+
return te(this, null, function* () {
|
|
44630
44642
|
var s;
|
|
44631
44643
|
return (s = this.getTagById(e)) == null ? void 0 : s.blink(i);
|
|
44632
44644
|
});
|
|
@@ -44715,7 +44727,7 @@ class ah extends D8 {
|
|
|
44715
44727
|
* @description 设置 unfolded
|
|
44716
44728
|
*/
|
|
44717
44729
|
setUnfolded() {
|
|
44718
|
-
return
|
|
44730
|
+
return te(this, null, function* () {
|
|
44719
44731
|
return new Promise((e) => {
|
|
44720
44732
|
setTimeout(() => {
|
|
44721
44733
|
this.setUnfoldedByCamera(), e();
|
|
@@ -45685,7 +45697,7 @@ class uv extends us {
|
|
|
45685
45697
|
* @description Show guide line
|
|
45686
45698
|
*/
|
|
45687
45699
|
show(e) {
|
|
45688
|
-
return
|
|
45700
|
+
return te(this, null, function* () {
|
|
45689
45701
|
this.setState({ visible: !0 }, e);
|
|
45690
45702
|
});
|
|
45691
45703
|
}
|
|
@@ -45693,7 +45705,7 @@ class uv extends us {
|
|
|
45693
45705
|
* @description Hide guide line
|
|
45694
45706
|
*/
|
|
45695
45707
|
hide(e) {
|
|
45696
|
-
return
|
|
45708
|
+
return te(this, null, function* () {
|
|
45697
45709
|
this.setState({ visible: !1 }, e);
|
|
45698
45710
|
});
|
|
45699
45711
|
}
|
|
@@ -45894,7 +45906,7 @@ let dv = class extends uv {
|
|
|
45894
45906
|
return i ? this.setState(i) : (this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed)), Promise.resolve();
|
|
45895
45907
|
}
|
|
45896
45908
|
handlePlay() {
|
|
45897
|
-
return new Promise((e, i) =>
|
|
45909
|
+
return new Promise((e, i) => te(this, null, function* () {
|
|
45898
45910
|
var l;
|
|
45899
45911
|
this.hooks.emit("play", { userAction: !0 });
|
|
45900
45912
|
const s = this.getPauseData();
|
|
@@ -45940,7 +45952,7 @@ function u6(n, t) {
|
|
|
45940
45952
|
const e = lm(n), i = lm(t);
|
|
45941
45953
|
return e.angleTo(i);
|
|
45942
45954
|
}
|
|
45943
|
-
const d6 = (n) =>
|
|
45955
|
+
const d6 = (n) => te(void 0, null, function* () {
|
|
45944
45956
|
try {
|
|
45945
45957
|
n().then(() => {
|
|
45946
45958
|
}, () => {
|
|
@@ -45957,7 +45969,7 @@ function fv(n) {
|
|
|
45957
45969
|
});
|
|
45958
45970
|
}
|
|
45959
45971
|
function f6(n) {
|
|
45960
|
-
return
|
|
45972
|
+
return te(this, null, function* () {
|
|
45961
45973
|
return new Promise((t) => {
|
|
45962
45974
|
if (n.work) {
|
|
45963
45975
|
t();
|
|
@@ -45998,7 +46010,7 @@ class xu extends uv {
|
|
|
45998
46010
|
* @description Load Data and State
|
|
45999
46011
|
*/
|
|
46000
46012
|
load(e, i, s) {
|
|
46001
|
-
return
|
|
46013
|
+
return te(this, null, function* () {
|
|
46002
46014
|
var h, u;
|
|
46003
46015
|
this.clear();
|
|
46004
46016
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
@@ -46042,7 +46054,7 @@ class xu extends uv {
|
|
|
46042
46054
|
* @description Format data
|
|
46043
46055
|
*/
|
|
46044
46056
|
formatData(e) {
|
|
46045
|
-
return
|
|
46057
|
+
return te(this, null, function* () {
|
|
46046
46058
|
this.five.work || (yield f6(this.five));
|
|
46047
46059
|
const i = (() => {
|
|
46048
46060
|
const s = e;
|
|
@@ -46094,7 +46106,7 @@ class xu extends uv {
|
|
|
46094
46106
|
*/
|
|
46095
46107
|
// eslint-disable-next-line complexity
|
|
46096
46108
|
handlePlay(e) {
|
|
46097
|
-
return
|
|
46109
|
+
return te(this, null, function* () {
|
|
46098
46110
|
var m;
|
|
46099
46111
|
const { data: i, state: s, privateState: o, hooks: r } = this;
|
|
46100
46112
|
if (o.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
|
|
@@ -46104,7 +46116,7 @@ class xu extends uv {
|
|
|
46104
46116
|
const l = i.keyframes, c = this.getPauseData();
|
|
46105
46117
|
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
|
|
46106
46118
|
let h = !1;
|
|
46107
|
-
const f = yield (() =>
|
|
46119
|
+
const f = yield (() => te(this, null, function* () {
|
|
46108
46120
|
var p, g;
|
|
46109
46121
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
46110
46122
|
return e.playFromIndex;
|
|
@@ -46193,7 +46205,7 @@ class xu extends uv {
|
|
|
46193
46205
|
* @description Play single keyframe
|
|
46194
46206
|
*/
|
|
46195
46207
|
playKeyframe(e, i) {
|
|
46196
|
-
return
|
|
46208
|
+
return te(this, null, function* () {
|
|
46197
46209
|
var o;
|
|
46198
46210
|
const { privateState: s } = this;
|
|
46199
46211
|
return ((o = this.privateState.currentPlayKeyframe) == null ? void 0 : o.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), s.currentPlayQueue.push(this.getPlayPromise(e, i)), this.actionPromiseQueue();
|
|
@@ -46203,7 +46215,7 @@ class xu extends uv {
|
|
|
46203
46215
|
* @description: getPlayPromise
|
|
46204
46216
|
*/
|
|
46205
46217
|
getPlayPromise(s) {
|
|
46206
|
-
return
|
|
46218
|
+
return te(this, arguments, function* (e, i = {}) {
|
|
46207
46219
|
var r;
|
|
46208
46220
|
const o = e.data;
|
|
46209
46221
|
if (i.duration = (r = i.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!o)
|
|
@@ -46238,7 +46250,7 @@ class xu extends uv {
|
|
|
46238
46250
|
* @description Action promise queue in sequence
|
|
46239
46251
|
*/
|
|
46240
46252
|
actionPromiseQueue() {
|
|
46241
|
-
return
|
|
46253
|
+
return te(this, null, function* () {
|
|
46242
46254
|
const { privateState: e } = this;
|
|
46243
46255
|
return new Promise((i, s) => {
|
|
46244
46256
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -46258,7 +46270,7 @@ class xu extends uv {
|
|
|
46258
46270
|
* @description Action move keyframe
|
|
46259
46271
|
*/
|
|
46260
46272
|
move(e, i) {
|
|
46261
|
-
return
|
|
46273
|
+
return te(this, null, function* () {
|
|
46262
46274
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
46263
46275
|
yield this.changeMode(e);
|
|
46264
46276
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -46271,7 +46283,7 @@ class xu extends uv {
|
|
|
46271
46283
|
* @description Action rotate keyframe
|
|
46272
46284
|
*/
|
|
46273
46285
|
rotate(e, i) {
|
|
46274
|
-
return
|
|
46286
|
+
return te(this, null, function* () {
|
|
46275
46287
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
46276
46288
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
46277
46289
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -46283,7 +46295,7 @@ class xu extends uv {
|
|
|
46283
46295
|
* @description Update five camera
|
|
46284
46296
|
*/
|
|
46285
46297
|
updateCamera(s) {
|
|
46286
|
-
return
|
|
46298
|
+
return te(this, arguments, function* (e, i = {}) {
|
|
46287
46299
|
const { five: o, privateState: r, state: a } = this, l = (() => {
|
|
46288
46300
|
var m, p;
|
|
46289
46301
|
const u = (m = a.config) == null ? void 0 : m.speedConfig, f = (p = e.rotateSpeed) != null ? p : u == null ? void 0 : u.rotateSpeed;
|
|
@@ -46311,7 +46323,7 @@ class xu extends uv {
|
|
|
46311
46323
|
* @description: Change five pano
|
|
46312
46324
|
*/
|
|
46313
46325
|
changePano(e, i) {
|
|
46314
|
-
return
|
|
46326
|
+
return te(this, null, function* () {
|
|
46315
46327
|
const { five: s, privateState: o, state: r } = this;
|
|
46316
46328
|
if (typeof e.panoIndex != "number" || e.panoIndex === s.panoIndex)
|
|
46317
46329
|
return;
|
|
@@ -46352,7 +46364,7 @@ class xu extends uv {
|
|
|
46352
46364
|
* @description Change five mode
|
|
46353
46365
|
*/
|
|
46354
46366
|
changeMode(e, i) {
|
|
46355
|
-
return
|
|
46367
|
+
return te(this, null, function* () {
|
|
46356
46368
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, i), this.privateState.modeChanging = !1);
|
|
46357
46369
|
});
|
|
46358
46370
|
}
|
|
@@ -46397,7 +46409,7 @@ class pv {
|
|
|
46397
46409
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
46398
46410
|
}
|
|
46399
46411
|
walk(t) {
|
|
46400
|
-
return
|
|
46412
|
+
return te(this, null, function* () {
|
|
46401
46413
|
if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
|
|
46402
46414
|
const e = B({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield js(g6(this.five, e));
|
|
46403
46415
|
if (i)
|
|
@@ -46412,13 +46424,13 @@ class pv {
|
|
|
46412
46424
|
}
|
|
46413
46425
|
}
|
|
46414
46426
|
function p6(n, t) {
|
|
46415
|
-
return
|
|
46427
|
+
return te(this, null, function* () {
|
|
46416
46428
|
const e = new dv(n);
|
|
46417
46429
|
yield e.load(t), e.playFromStart();
|
|
46418
46430
|
});
|
|
46419
46431
|
}
|
|
46420
46432
|
function g6(n, t) {
|
|
46421
|
-
return
|
|
46433
|
+
return te(this, null, function* () {
|
|
46422
46434
|
if (t.panoIndexList.length === 0)
|
|
46423
46435
|
return;
|
|
46424
46436
|
const e = n.getCurrentState();
|
|
@@ -46484,7 +46496,7 @@ let m6 = class extends kn {
|
|
|
46484
46496
|
return this._disposed;
|
|
46485
46497
|
}
|
|
46486
46498
|
load(e, i, s = !0) {
|
|
46487
|
-
return
|
|
46499
|
+
return te(this, null, function* () {
|
|
46488
46500
|
var p, g, v, A, w, E, k;
|
|
46489
46501
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
46490
46502
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
@@ -46508,19 +46520,19 @@ let m6 = class extends kn {
|
|
|
46508
46520
|
});
|
|
46509
46521
|
}
|
|
46510
46522
|
formatData(e) {
|
|
46511
|
-
return
|
|
46523
|
+
return te(this, null, function* () {
|
|
46512
46524
|
return this.getDataWithoutVersion(e);
|
|
46513
46525
|
});
|
|
46514
46526
|
}
|
|
46515
46527
|
/** 展示插件 */
|
|
46516
46528
|
show(e) {
|
|
46517
|
-
return
|
|
46529
|
+
return te(this, null, function* () {
|
|
46518
46530
|
this.setState({ visible: !0 }, e);
|
|
46519
46531
|
});
|
|
46520
46532
|
}
|
|
46521
46533
|
/** 隐藏插件 */
|
|
46522
46534
|
hide(e) {
|
|
46523
|
-
return
|
|
46535
|
+
return te(this, null, function* () {
|
|
46524
46536
|
this.setState({ visible: !1 }, e);
|
|
46525
46537
|
});
|
|
46526
46538
|
}
|
|
@@ -47668,7 +47680,7 @@ class U6 {
|
|
|
47668
47680
|
* @description Show guide line
|
|
47669
47681
|
*/
|
|
47670
47682
|
show(t) {
|
|
47671
|
-
return
|
|
47683
|
+
return te(this, null, function* () {
|
|
47672
47684
|
this.setState({ visible: !0 }, t);
|
|
47673
47685
|
});
|
|
47674
47686
|
}
|
|
@@ -47676,7 +47688,7 @@ class U6 {
|
|
|
47676
47688
|
* @description Hide guide line
|
|
47677
47689
|
*/
|
|
47678
47690
|
hide(t) {
|
|
47679
|
-
return
|
|
47691
|
+
return te(this, null, function* () {
|
|
47680
47692
|
this.setState({ visible: !1 }, t);
|
|
47681
47693
|
});
|
|
47682
47694
|
}
|
|
@@ -47960,12 +47972,12 @@ class X6 extends Kr {
|
|
|
47960
47972
|
if (T.equals(S))
|
|
47961
47973
|
return I;
|
|
47962
47974
|
if (C === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
47963
|
-
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0,
|
|
47964
|
-
this.startInfo.dragPointInCenterBottom = K || se ||
|
|
47975
|
+
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0, ie = ee.z < 0 && M.z >= 0;
|
|
47976
|
+
this.startInfo.dragPointInCenterBottom = K || se || ie;
|
|
47965
47977
|
}
|
|
47966
47978
|
if (C === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
47967
|
-
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0,
|
|
47968
|
-
this.startInfo.dragPointInCenterLeft = K || se ||
|
|
47979
|
+
const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0, ie = ee.z < 0 && M.z >= 0;
|
|
47980
|
+
this.startInfo.dragPointInCenterLeft = K || se || ie;
|
|
47969
47981
|
}
|
|
47970
47982
|
const _ = new Ae().subVectors(T, S), q = _.length();
|
|
47971
47983
|
return q > 0.3 ? (console.warn("offset.length() > 0.3, skipped", q), I) : _;
|
|
@@ -48339,7 +48351,7 @@ class mv extends us {
|
|
|
48339
48351
|
* @description Show guide line
|
|
48340
48352
|
*/
|
|
48341
48353
|
show(e) {
|
|
48342
|
-
return
|
|
48354
|
+
return te(this, null, function* () {
|
|
48343
48355
|
this.setState({ visible: !0 }, e);
|
|
48344
48356
|
});
|
|
48345
48357
|
}
|
|
@@ -48347,7 +48359,7 @@ class mv extends us {
|
|
|
48347
48359
|
* @description Hide guide line
|
|
48348
48360
|
*/
|
|
48349
48361
|
hide(e) {
|
|
48350
|
-
return
|
|
48362
|
+
return te(this, null, function* () {
|
|
48351
48363
|
this.setState({ visible: !1 }, e);
|
|
48352
48364
|
});
|
|
48353
48365
|
}
|
|
@@ -49182,7 +49194,7 @@ class mo extends P.Mesh {
|
|
|
49182
49194
|
return e.wrapS = P.RepeatWrapping, e.wrapT = P.RepeatWrapping, e;
|
|
49183
49195
|
}
|
|
49184
49196
|
hide(e) {
|
|
49185
|
-
return
|
|
49197
|
+
return te(this, null, function* () {
|
|
49186
49198
|
var o;
|
|
49187
49199
|
(o = this.opacityAnime) == null || o.dispose();
|
|
49188
49200
|
const i = 0;
|
|
@@ -49197,7 +49209,7 @@ class mo extends P.Mesh {
|
|
|
49197
49209
|
});
|
|
49198
49210
|
}
|
|
49199
49211
|
show(e) {
|
|
49200
|
-
return
|
|
49212
|
+
return te(this, null, function* () {
|
|
49201
49213
|
var o;
|
|
49202
49214
|
(o = this.opacityAnime) == null || o.dispose();
|
|
49203
49215
|
const i = 1;
|
|
@@ -49356,10 +49368,10 @@ let wx = class extends kn {
|
|
|
49356
49368
|
*/
|
|
49357
49369
|
// eslint-disable-next-line max-params
|
|
49358
49370
|
load(e, i, s, o) {
|
|
49359
|
-
return
|
|
49371
|
+
return te(this, null, function* () {
|
|
49360
49372
|
const r = this.data;
|
|
49361
49373
|
this.data = yield this.formatData(e, o), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
49362
|
-
this.data.pipes.filter((a) => !!(a != null && a.texture)).map((u) =>
|
|
49374
|
+
this.data.pipes.filter((a) => !!(a != null && a.texture)).map((u) => te(this, [u], function* ({ id: a, texture: l, path: c, radius: h }) {
|
|
49363
49375
|
const f = yield this.loadPipeTexture(l), m = { id: a, path: c, textureURL: l, texture: f, geometryConfig: { radius: h } };
|
|
49364
49376
|
return new yx(m);
|
|
49365
49377
|
}))
|
|
@@ -49423,7 +49435,7 @@ let wx = class extends kn {
|
|
|
49423
49435
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
49424
49436
|
*/
|
|
49425
49437
|
show() {
|
|
49426
|
-
return
|
|
49438
|
+
return te(this, arguments, function* (e = {}) {
|
|
49427
49439
|
if (this.state.visible)
|
|
49428
49440
|
return;
|
|
49429
49441
|
const i = B({
|
|
@@ -49440,7 +49452,7 @@ let wx = class extends kn {
|
|
|
49440
49452
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
49441
49453
|
*/
|
|
49442
49454
|
hide() {
|
|
49443
|
-
return
|
|
49455
|
+
return te(this, arguments, function* (e = {}) {
|
|
49444
49456
|
if (this.state.visible === !1)
|
|
49445
49457
|
return;
|
|
49446
49458
|
const i = B({
|
|
@@ -49461,7 +49473,7 @@ let wx = class extends kn {
|
|
|
49461
49473
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
49462
49474
|
* */
|
|
49463
49475
|
switchPipelines(e) {
|
|
49464
|
-
return
|
|
49476
|
+
return te(this, null, function* () {
|
|
49465
49477
|
var c, h, u, f, m, p;
|
|
49466
49478
|
if (!this.data)
|
|
49467
49479
|
return;
|
|
@@ -49502,7 +49514,7 @@ let wx = class extends kn {
|
|
|
49502
49514
|
this.updateState({ speed: i }, s), this._setSpeed(i);
|
|
49503
49515
|
}
|
|
49504
49516
|
formatData(e, i) {
|
|
49505
|
-
return
|
|
49517
|
+
return te(this, null, function* () {
|
|
49506
49518
|
return lx(e, i);
|
|
49507
49519
|
});
|
|
49508
49520
|
}
|
|
@@ -49513,7 +49525,7 @@ let wx = class extends kn {
|
|
|
49513
49525
|
this.hooks.emit("disable", { userAction: e.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
|
|
49514
49526
|
}
|
|
49515
49527
|
_show(e) {
|
|
49516
|
-
return
|
|
49528
|
+
return te(this, null, function* () {
|
|
49517
49529
|
var o;
|
|
49518
49530
|
this.hooks.emit("show", { userAction: e.userAction });
|
|
49519
49531
|
const i = (o = e == null ? void 0 : e.anime) != null ? o : { duration: 500 }, s = this.findPipeObjectWithTarget(this.state.target);
|
|
@@ -49521,7 +49533,7 @@ let wx = class extends kn {
|
|
|
49521
49533
|
});
|
|
49522
49534
|
}
|
|
49523
49535
|
_hide(e) {
|
|
49524
|
-
return
|
|
49536
|
+
return te(this, null, function* () {
|
|
49525
49537
|
var s;
|
|
49526
49538
|
this.hooks.emit("hide", { userAction: e.userAction });
|
|
49527
49539
|
const i = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 };
|
|
@@ -49529,7 +49541,7 @@ let wx = class extends kn {
|
|
|
49529
49541
|
});
|
|
49530
49542
|
}
|
|
49531
49543
|
_switchPipelines(e) {
|
|
49532
|
-
return
|
|
49544
|
+
return te(this, null, function* () {
|
|
49533
49545
|
if (!this.data)
|
|
49534
49546
|
return;
|
|
49535
49547
|
const i = this.findPipeObjectWithTarget(e.target), s = e.hideAnime;
|
|
@@ -49553,7 +49565,7 @@ let wx = class extends kn {
|
|
|
49553
49565
|
}
|
|
49554
49566
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
49555
49567
|
loadPipeTexture(e) {
|
|
49556
|
-
return
|
|
49568
|
+
return te(this, null, function* () {
|
|
49557
49569
|
const i = this.texturePromiseCache.get(e);
|
|
49558
49570
|
if (i)
|
|
49559
49571
|
return i;
|
|
@@ -50187,7 +50199,7 @@ let Sx = class extends kn {
|
|
|
50187
50199
|
}
|
|
50188
50200
|
/** 加载数据,重复调用会使用新数据覆盖旧数据 */
|
|
50189
50201
|
load(e) {
|
|
50190
|
-
return
|
|
50202
|
+
return te(this, null, function* () {
|
|
50191
50203
|
const i = this.data;
|
|
50192
50204
|
this.data = this.formatData(e), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.forEach((s) => s.unmount()), this.itemMap.clear(), this.childrenMountedState = !1, this.checkMsg.childrenMountedState = "", this.data.list.forEach((s) => {
|
|
50193
50205
|
const o = new kx(this, s);
|
|
@@ -50226,7 +50238,7 @@ let Sx = class extends kn {
|
|
|
50226
50238
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50227
50239
|
*/
|
|
50228
50240
|
show(e) {
|
|
50229
|
-
return
|
|
50241
|
+
return te(this, null, function* () {
|
|
50230
50242
|
if (this.state.visible)
|
|
50231
50243
|
return Promise.resolve();
|
|
50232
50244
|
if (this.disposed)
|
|
@@ -50240,7 +50252,7 @@ let Sx = class extends kn {
|
|
|
50240
50252
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50241
50253
|
*/
|
|
50242
50254
|
hide(e) {
|
|
50243
|
-
return
|
|
50255
|
+
return te(this, null, function* () {
|
|
50244
50256
|
if (this.state.visible === !1)
|
|
50245
50257
|
return;
|
|
50246
50258
|
const i = B({ userAction: !0 }, e);
|
|
@@ -50351,12 +50363,12 @@ let Sx = class extends kn {
|
|
|
50351
50363
|
this.hooks.emit("disable", { userAction: e.userAction }), this.five.scene.remove(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
50352
50364
|
}
|
|
50353
50365
|
_show(e) {
|
|
50354
|
-
return
|
|
50366
|
+
return te(this, null, function* () {
|
|
50355
50367
|
this.hooks.emit("show", e), this.five.needsRender = !0;
|
|
50356
50368
|
});
|
|
50357
50369
|
}
|
|
50358
50370
|
_hide(e) {
|
|
50359
|
-
return
|
|
50371
|
+
return te(this, null, function* () {
|
|
50360
50372
|
this.hooks.emit("hide", e), this.five.needsRender = !0;
|
|
50361
50373
|
});
|
|
50362
50374
|
}
|
|
@@ -50482,7 +50494,7 @@ class Dx extends us {
|
|
|
50482
50494
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50483
50495
|
*/
|
|
50484
50496
|
show(e) {
|
|
50485
|
-
return
|
|
50497
|
+
return te(this, null, function* () {
|
|
50486
50498
|
if (this.state.visible)
|
|
50487
50499
|
return Promise.resolve();
|
|
50488
50500
|
if (this.disposed)
|
|
@@ -50496,7 +50508,7 @@ class Dx extends us {
|
|
|
50496
50508
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
50497
50509
|
*/
|
|
50498
50510
|
hide(e) {
|
|
50499
|
-
return
|
|
50511
|
+
return te(this, null, function* () {
|
|
50500
50512
|
if (this.state.visible === !1)
|
|
50501
50513
|
return;
|
|
50502
50514
|
const i = B({ userAction: !0 }, e);
|
|
@@ -50559,7 +50571,7 @@ class Dx extends us {
|
|
|
50559
50571
|
}
|
|
50560
50572
|
/** 重新加载贴图,调用时会先清除已有的贴图 */
|
|
50561
50573
|
reloadTexture(e) {
|
|
50562
|
-
return
|
|
50574
|
+
return te(this, null, function* () {
|
|
50563
50575
|
if (this.mesh.material.map = null, e !== "") {
|
|
50564
50576
|
const i = Ds(e);
|
|
50565
50577
|
this.textureLoadingPromise = i;
|
|
@@ -51019,7 +51031,7 @@ class mm extends Fi {
|
|
|
51019
51031
|
(e = this.creatingObject) == null || e.redo();
|
|
51020
51032
|
}
|
|
51021
51033
|
create(e) {
|
|
51022
|
-
return
|
|
51034
|
+
return te(this, null, function* () {
|
|
51023
51035
|
this.removeChildren();
|
|
51024
51036
|
const i = new $n(e);
|
|
51025
51037
|
this.polyLineMesh = i, this.add(this.polyLineMesh), this.creatingObject = jx(i, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
@@ -51125,7 +51137,7 @@ class vm extends Fi {
|
|
|
51125
51137
|
* @description: 创建点
|
|
51126
51138
|
*/
|
|
51127
51139
|
create(e) {
|
|
51128
|
-
return
|
|
51140
|
+
return te(this, null, function* () {
|
|
51129
51141
|
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new Cn(e)), yield Pv(this.pointMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
51130
51142
|
});
|
|
51131
51143
|
}
|
|
@@ -51256,7 +51268,7 @@ class Am extends Fi {
|
|
|
51256
51268
|
return (i = (e = this.creatingObject) == null ? void 0 : e.redo) == null ? void 0 : i.call(e);
|
|
51257
51269
|
}
|
|
51258
51270
|
create(e) {
|
|
51259
|
-
return
|
|
51271
|
+
return te(this, null, function* () {
|
|
51260
51272
|
var s;
|
|
51261
51273
|
this.children.forEach((o) => {
|
|
51262
51274
|
o.parent === this && this.remove(o);
|
|
@@ -51288,11 +51300,11 @@ function Ou(n, t, e) {
|
|
|
51288
51300
|
var Te;
|
|
51289
51301
|
return (Te = ue.parent) == null ? void 0 : Te.remove(ue);
|
|
51290
51302
|
});
|
|
51291
|
-
const
|
|
51303
|
+
const ie = (Se = (le = n.line) == null ? void 0 : le.style) != null ? Se : n.style;
|
|
51292
51304
|
m = v.map((ue, Te) => {
|
|
51293
51305
|
var he;
|
|
51294
|
-
const fe = new Cn(ce(B({},
|
|
51295
|
-
color: (he =
|
|
51306
|
+
const fe = new Cn(ce(B({}, ie), {
|
|
51307
|
+
color: (he = ie.pointColor) != null ? he : ie.lineColor,
|
|
51296
51308
|
tip: void 0,
|
|
51297
51309
|
point: ue
|
|
51298
51310
|
}));
|
|
@@ -51300,38 +51312,38 @@ function Ou(n, t, e) {
|
|
|
51300
51312
|
});
|
|
51301
51313
|
}
|
|
51302
51314
|
function g() {
|
|
51303
|
-
m.forEach((
|
|
51315
|
+
m.forEach((ie) => {
|
|
51304
51316
|
var le;
|
|
51305
|
-
return (le =
|
|
51317
|
+
return (le = ie.parent) == null ? void 0 : le.remove(ie);
|
|
51306
51318
|
}), m = [];
|
|
51307
51319
|
}
|
|
51308
51320
|
t.enable(), l && t.setAdherePoints([]);
|
|
51309
51321
|
const v = [];
|
|
51310
51322
|
let A, w, E = !1, k;
|
|
51311
51323
|
const L = [], D = () => v.length > 0, j = () => L.length > 0, z = () => {
|
|
51312
|
-
var
|
|
51313
|
-
D() && (L.push(v.pop()), C(k), p(), (
|
|
51324
|
+
var ie;
|
|
51325
|
+
D() && (L.push(v.pop()), C(k), p(), (ie = e == null ? void 0 : e.onUndo) == null || ie.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
51314
51326
|
}, V = () => {
|
|
51315
|
-
var
|
|
51316
|
-
j() && (v.push(L.pop()), C(k), p(), (
|
|
51317
|
-
}, b = (
|
|
51327
|
+
var ie;
|
|
51328
|
+
j() && (v.push(L.pop()), C(k), p(), (ie = e == null ? void 0 : e.onRedo) == null || ie.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
51329
|
+
}, b = (ie) => {
|
|
51318
51330
|
var Se;
|
|
51319
51331
|
L.length = 0;
|
|
51320
|
-
let le = v.length === 0 ?
|
|
51332
|
+
let le = v.length === 0 ? ie.point : A.clone();
|
|
51321
51333
|
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());
|
|
51322
|
-
}, C = (
|
|
51334
|
+
}, C = (ie) => {
|
|
51323
51335
|
const le = () => {
|
|
51324
51336
|
u.setPoints([]), f.setPoints([]), n.setPoints(v), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render();
|
|
51325
51337
|
};
|
|
51326
|
-
if (!
|
|
51338
|
+
if (!ie) {
|
|
51327
51339
|
le(), p();
|
|
51328
51340
|
return;
|
|
51329
51341
|
}
|
|
51330
|
-
if (k =
|
|
51342
|
+
if (k = ie, !(v != null && v.length))
|
|
51331
51343
|
return le();
|
|
51332
51344
|
const Se = v.at(-1).clone();
|
|
51333
|
-
if (v.length < 3 && (l ? (A =
|
|
51334
|
-
l ? A =
|
|
51345
|
+
if (v.length < 3 && (l ? (A = ie.point.clone().setY(h), u.setPoints([Se, A]), f.setPoints([])) : a === "none" ? (A = ie.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(ie.point, new P.Vector3()), u.setPoints([Se, A]), f.setPoints([A, ie.point])) : a === "y" && (v.length === 1 ? (A = ie.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(ie.point, new P.Vector3()), u.setPoints([Se, A]), f.setPoints([A, ie.point])))), v.length >= 3) {
|
|
51346
|
+
l ? A = ie.point.clone().setY(h) : A = n.projectPoint(ie.point);
|
|
51335
51347
|
const ue = v[0];
|
|
51336
51348
|
let Te = !1;
|
|
51337
51349
|
if (typeof (e == null ? void 0 : e.autoClosePixelDistance) == "number") {
|
|
@@ -51342,12 +51354,12 @@ function Ou(n, t, e) {
|
|
|
51342
51354
|
x: (ze.x * 0.5 + 0.5) * he,
|
|
51343
51355
|
y: (1 - (ze.y * 0.5 + 0.5)) * Le
|
|
51344
51356
|
};
|
|
51345
|
-
}, Me = $(ue), Re = $(A), ve = $(
|
|
51357
|
+
}, Me = $(ue), Re = $(A), ve = $(ie.point), Be = Math.sqrt(Fn(Me.x - Re.x, 2) + Fn(Me.y - Re.y, 2)), de = Math.sqrt(Fn(Me.x - ve.x, 2) + Fn(Me.y - ve.y, 2));
|
|
51346
51358
|
(Be < e.autoClosePixelDistance || de < e.autoClosePixelDistance) && (Te = !0);
|
|
51347
51359
|
}
|
|
51348
51360
|
} else
|
|
51349
|
-
(ue.distanceTo(A) < 0.2 || ue.distanceTo(
|
|
51350
|
-
Te ? (A = ue,
|
|
51361
|
+
(ue.distanceTo(A) < 0.2 || ue.distanceTo(ie.point) < 0.2) && (Te = !0);
|
|
51362
|
+
Te ? (A = ue, ie.point.copy(ue), t.pointSelectorHelper.updateWithIntersect(ie, { emitEvent: !1 }), E = !0) : E = !1, u.setPoints([Se, A]), f.setPoints([A, ie.point]);
|
|
51351
51363
|
}
|
|
51352
51364
|
v.length >= 2 ? (n.setPoints([...v, A], { closed: !1 }), n.line.setPoints(n.points.slice(0, -1)), n.isBlank ? (t.cursorError = !0, u.setStyle({ lineColor: 16734553 }), f.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, u.setStyle({ lineColor: n.lineColor }), f.setStyle({ lineColor: n.lineColor }))) : n.setPoints([]), p();
|
|
51353
51365
|
}, I = () => {
|
|
@@ -51765,13 +51777,13 @@ class bm extends Fi {
|
|
|
51765
51777
|
(e = this.prismMesh) == null || e.unhighlight();
|
|
51766
51778
|
}
|
|
51767
51779
|
create(e) {
|
|
51768
|
-
return
|
|
51780
|
+
return te(this, null, function* () {
|
|
51769
51781
|
this.prismMesh = new zs(e), this.add(this.prismMesh), yield Iv(this.prismMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
51770
51782
|
});
|
|
51771
51783
|
}
|
|
51772
51784
|
}
|
|
51773
51785
|
function Iv(n, t) {
|
|
51774
|
-
return
|
|
51786
|
+
return te(this, null, function* () {
|
|
51775
51787
|
const e = n.parent, i = new fh(n.style);
|
|
51776
51788
|
e.add(i), yield Ou(i, t).finished, e.remove(i), n.setPoints({ points: i.points });
|
|
51777
51789
|
const s = new wi();
|
|
@@ -51968,7 +51980,7 @@ class ym extends Fi {
|
|
|
51968
51980
|
(e = this.rectangleMesh) == null || e.unhighlight();
|
|
51969
51981
|
}
|
|
51970
51982
|
create(e) {
|
|
51971
|
-
return
|
|
51983
|
+
return te(this, null, function* () {
|
|
51972
51984
|
this.removeChildren();
|
|
51973
51985
|
const i = new hl(e);
|
|
51974
51986
|
this.rectangleMesh = i, this.add(this.rectangleMesh), yield Ru(this.rectangleMesh, this.pointSelector, e), this.config.defaultAction && this.editor.enable();
|
|
@@ -52188,7 +52200,7 @@ class wm extends Fi {
|
|
|
52188
52200
|
(e = this.circleMesh) == null || e.unhighlight();
|
|
52189
52201
|
}
|
|
52190
52202
|
create(e) {
|
|
52191
|
-
return
|
|
52203
|
+
return te(this, null, function* () {
|
|
52192
52204
|
this.children.forEach((s) => {
|
|
52193
52205
|
s.parent === this && this.remove(s);
|
|
52194
52206
|
}), this.children.length = 0;
|
|
@@ -52372,13 +52384,13 @@ class Pm extends Fi {
|
|
|
52372
52384
|
(e = this.cylinderMesh) == null || e.unhighlight();
|
|
52373
52385
|
}
|
|
52374
52386
|
create(e) {
|
|
52375
|
-
return
|
|
52387
|
+
return te(this, null, function* () {
|
|
52376
52388
|
this.cylinderMesh = new ph(e), this.add(this.cylinderMesh), yield Tv(this.cylinderMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
52377
52389
|
});
|
|
52378
52390
|
}
|
|
52379
52391
|
}
|
|
52380
52392
|
function Tv(n, t) {
|
|
52381
|
-
return
|
|
52393
|
+
return te(this, null, function* () {
|
|
52382
52394
|
const e = n.parent;
|
|
52383
52395
|
yield _u(n.bottomCircle, t);
|
|
52384
52396
|
const i = new wi();
|
|
@@ -52554,14 +52566,14 @@ class Cm extends Fi {
|
|
|
52554
52566
|
(e = this.boxMesh) == null || e.unhighlight();
|
|
52555
52567
|
}
|
|
52556
52568
|
create(e) {
|
|
52557
|
-
return
|
|
52569
|
+
return te(this, null, function* () {
|
|
52558
52570
|
this.removeChildren(), this.boxMesh = new gh(e), this.add(this.boxMesh), yield zv(this.boxMesh, this.pointSelector, e), this.config.defaultAction && this.editor.enable();
|
|
52559
52571
|
});
|
|
52560
52572
|
}
|
|
52561
52573
|
}
|
|
52562
52574
|
function zv(n, t, e) {
|
|
52563
|
-
return
|
|
52564
|
-
return new Promise((i, s) =>
|
|
52575
|
+
return te(this, null, function* () {
|
|
52576
|
+
return new Promise((i, s) => te(this, null, function* () {
|
|
52565
52577
|
const o = n.parent;
|
|
52566
52578
|
if (!o) {
|
|
52567
52579
|
s(new Error("No container"));
|
|
@@ -52647,7 +52659,7 @@ class Im extends Fi {
|
|
|
52647
52659
|
(e = this.creatingObject) == null || e.redo();
|
|
52648
52660
|
}
|
|
52649
52661
|
create(e) {
|
|
52650
|
-
return
|
|
52662
|
+
return te(this, null, function* () {
|
|
52651
52663
|
this.removeChildren();
|
|
52652
52664
|
const i = new _r(e);
|
|
52653
52665
|
this.lineMesh = i, this.add(this.lineMesh), this.creatingObject = Ov(i, this.pointSelector, e), yield this.creatingObject.finished, this.config.defaultAction && this.editor.enable();
|
|
@@ -52779,7 +52791,7 @@ const vo = class extends Ct {
|
|
|
52779
52791
|
* @description: 开始绘制点
|
|
52780
52792
|
*/
|
|
52781
52793
|
createPoint(...e) {
|
|
52782
|
-
return
|
|
52794
|
+
return te(this, null, function* () {
|
|
52783
52795
|
var i, s;
|
|
52784
52796
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.point, e[0]), this.createItem(vm, ...e);
|
|
52785
52797
|
});
|
|
@@ -52788,7 +52800,7 @@ const vo = class extends Ct {
|
|
|
52788
52800
|
* @description: 开始绘制线段
|
|
52789
52801
|
*/
|
|
52790
52802
|
createLine(...e) {
|
|
52791
|
-
return
|
|
52803
|
+
return te(this, null, function* () {
|
|
52792
52804
|
var i, s;
|
|
52793
52805
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.line, e[0]), this.createItem(Im, ...e);
|
|
52794
52806
|
});
|
|
@@ -52797,7 +52809,7 @@ const vo = class extends Ct {
|
|
|
52797
52809
|
* @deprecated use createLine instead
|
|
52798
52810
|
*/
|
|
52799
52811
|
createline(...e) {
|
|
52800
|
-
return
|
|
52812
|
+
return te(this, null, function* () {
|
|
52801
52813
|
this.createLine(...e);
|
|
52802
52814
|
});
|
|
52803
52815
|
}
|
|
@@ -52805,7 +52817,7 @@ const vo = class extends Ct {
|
|
|
52805
52817
|
* @description: 开始绘制空间折线
|
|
52806
52818
|
*/
|
|
52807
52819
|
createPolyline(...e) {
|
|
52808
|
-
return
|
|
52820
|
+
return te(this, null, function* () {
|
|
52809
52821
|
var i, s;
|
|
52810
52822
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.polyline, e[0]), this.createItem(mm, ...e);
|
|
52811
52823
|
});
|
|
@@ -52814,7 +52826,7 @@ const vo = class extends Ct {
|
|
|
52814
52826
|
* @description: 开始绘制平面多边形
|
|
52815
52827
|
*/
|
|
52816
52828
|
createPolygon(...e) {
|
|
52817
|
-
return
|
|
52829
|
+
return te(this, null, function* () {
|
|
52818
52830
|
var i, s;
|
|
52819
52831
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.polygon, e[0]), this.createItem(Am, ...e);
|
|
52820
52832
|
});
|
|
@@ -52823,7 +52835,7 @@ const vo = class extends Ct {
|
|
|
52823
52835
|
* @description: 开始绘制多棱柱
|
|
52824
52836
|
*/
|
|
52825
52837
|
createPrism(...e) {
|
|
52826
|
-
return
|
|
52838
|
+
return te(this, null, function* () {
|
|
52827
52839
|
var i, s;
|
|
52828
52840
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.prism, e[0]), this.createItem(bm, ...e);
|
|
52829
52841
|
});
|
|
@@ -52832,7 +52844,7 @@ const vo = class extends Ct {
|
|
|
52832
52844
|
* @description: 开始绘制矩形
|
|
52833
52845
|
*/
|
|
52834
52846
|
createRectangle(...e) {
|
|
52835
|
-
return
|
|
52847
|
+
return te(this, null, function* () {
|
|
52836
52848
|
var i, s;
|
|
52837
52849
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.rectangle, e[0]), this.createItem(ym, ...e);
|
|
52838
52850
|
});
|
|
@@ -52841,7 +52853,7 @@ const vo = class extends Ct {
|
|
|
52841
52853
|
* @description: 开始绘制圆形
|
|
52842
52854
|
*/
|
|
52843
52855
|
createCircle(...e) {
|
|
52844
|
-
return
|
|
52856
|
+
return te(this, null, function* () {
|
|
52845
52857
|
var i, s;
|
|
52846
52858
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.circle, e[0]), this.createItem(wm, ...e);
|
|
52847
52859
|
});
|
|
@@ -52850,7 +52862,7 @@ const vo = class extends Ct {
|
|
|
52850
52862
|
* @description: 开始绘制圆柱
|
|
52851
52863
|
*/
|
|
52852
52864
|
createCylinder(...e) {
|
|
52853
|
-
return
|
|
52865
|
+
return te(this, null, function* () {
|
|
52854
52866
|
var i, s;
|
|
52855
52867
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.cylinder, e[0]), this.createItem(Pm, ...e);
|
|
52856
52868
|
});
|
|
@@ -52859,7 +52871,7 @@ const vo = class extends Ct {
|
|
|
52859
52871
|
* @description: 开始绘制 Box
|
|
52860
52872
|
*/
|
|
52861
52873
|
createBox(...e) {
|
|
52862
|
-
return
|
|
52874
|
+
return te(this, null, function* () {
|
|
52863
52875
|
var i, s;
|
|
52864
52876
|
return Object.assign((i = e[0]) != null ? i : {}, (s = this.theme) == null ? void 0 : s.box, e[0]), this.createItem(Cm, ...e);
|
|
52865
52877
|
});
|
|
@@ -52879,7 +52891,7 @@ const vo = class extends Ct {
|
|
|
52879
52891
|
Ux(this.items, (e) => e.delete()), this.five.needsRender = !0;
|
|
52880
52892
|
}
|
|
52881
52893
|
createItem(e, ...i) {
|
|
52882
|
-
return
|
|
52894
|
+
return te(this, null, function* () {
|
|
52883
52895
|
this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
|
|
52884
52896
|
const s = new e();
|
|
52885
52897
|
this.creatingItem = s, this.group.add(s);
|
|
@@ -53145,7 +53157,7 @@ class $x extends kn {
|
|
|
53145
53157
|
d(this, "handleDisable", () => {
|
|
53146
53158
|
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
|
|
53147
53159
|
});
|
|
53148
|
-
d(this, "onFiveEveryReady", () =>
|
|
53160
|
+
d(this, "onFiveEveryReady", () => te(this, null, function* () {
|
|
53149
53161
|
if (this.five.state.mode === "Panorama")
|
|
53150
53162
|
return;
|
|
53151
53163
|
const e = this.items.filter((l) => l instanceof Dc).map((l) => l.tag), i = e.filter((l) => l.position && l.visible && l.enabled);
|
|
@@ -53177,7 +53189,7 @@ class $x extends kn {
|
|
|
53177
53189
|
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
53178
53190
|
}
|
|
53179
53191
|
load(e) {
|
|
53180
|
-
return
|
|
53192
|
+
return te(this, null, function* () {
|
|
53181
53193
|
if (this.clear(), this.data = e, this.originalOpacities.clear(), yield yi(this.five), this.data !== e)
|
|
53182
53194
|
return;
|
|
53183
53195
|
this.clear();
|