@realsee/dnalogel 3.60.0 → 3.60.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/components/index.js +112 -109
- package/dist/ItemLabelPlugin/typings.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -0
- package/dist/components/PaintBrush/Controller.d.ts +1 -1
- package/dist/index.cjs.js +62 -64
- package/dist/index.js +5977 -6060
- package/dist/index.umd.js +62 -64
- package/dist/shared-utils/CSS3DRender/CSS3DObject.d.ts +0 -7
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
- package/docs/classes/ModelMakerPluginInstance.html +15 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- 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 +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +23 -23
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +3 -3
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +14 -14
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +11 -11
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +5 -5
- package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- 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 +3 -3
- package/docs/enums/Rotation.html +3 -3
- 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/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/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- 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.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.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.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 +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +8 -8
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.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.EventMap.html +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- 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 +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- 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 +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- 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 +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +7 -7
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- 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 +4 -4
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +4 -4
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- 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/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/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/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 +1 -1
- 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/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/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.ActionIfNoModelUnderMouse.html +1 -1
- 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.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/ItemLabelPlugin/ItemLabelItem.js +98 -100
- package/libs/ItemLabelPlugin/Plugin.js +15 -14
- package/libs/ItemLabelPlugin/index.js +5 -4
- package/libs/ItemLabelPlugin/typings.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +25 -24
- package/libs/ModelItemLabelPlugin/index.js +5 -4
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +54 -49
- package/libs/PanoSpatialTagPlugin/Plugin.js +14 -14
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +13 -13
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +54 -58
- package/libs/base/BasePlugin.js +5 -5
- package/libs/components/PaintBrush/Controller.d.ts +1 -1
- package/libs/components/PaintBrush/Controller.js +6 -6
- package/libs/index.js +144 -145
- package/libs/shared-utils/CSS3DRender/CSS3DObject.d.ts +0 -7
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +18 -19
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +7 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/FBXLoader/index.js +100 -100
- package/package.json +1 -1
- package/dist/components/PaintBrush/Subscribe.d.ts +0 -76
- package/libs/components/PaintBrush/Subscribe.d.ts +0 -76
- package/libs/components/PaintBrush/Subscribe.js +0 -84
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Loader as oe, LoaderUtils as J, FileLoader as Le, TextureLoader as Ie, RepeatWrapping as ue, ClampToEdgeWrapping as
|
|
1
|
+
import { Loader as oe, LoaderUtils as J, FileLoader as Le, TextureLoader as Ie, RepeatWrapping as ue, ClampToEdgeWrapping as fe, Texture as le, MeshPhongMaterial as N, MeshLambertMaterial as Pe, Color as F, sRGBEncoding as U, EquirectangularReflectionMapping as Fe, Matrix4 as m, Group as pe, Bone as ce, PropertyBinding as X, Object3D as ee, OrthographicCamera as Me, PerspectiveCamera as Se, PointLight as ve, MathUtils as x, SpotLight as Re, DirectionalLight as Oe, SkinnedMesh as Be, Mesh as be, LineBasicMaterial as ke, Line as De, Vector3 as G, Skeleton as Ce, AmbientLight as Ue, BufferGeometry as V, Float32BufferAttribute as O, Uint16BufferAttribute as Xe, Matrix3 as Ge, Vector4 as Ve, BufferAttribute as je, AnimationClip as ze, Quaternion as j, Euler as B, VectorKeyframeTrack as He, QuaternionKeyframeTrack as _e, NumberKeyframeTrack as Ke } from "three";
|
|
2
2
|
import { Zlib as he } from "../libs/inflate.js";
|
|
3
3
|
import { NURBSCurve as me } from "../libs/NURBSCurve.js";
|
|
4
4
|
var qe = function() {
|
|
@@ -15,8 +15,8 @@ var qe = function() {
|
|
|
15
15
|
function(o) {
|
|
16
16
|
try {
|
|
17
17
|
t(a.parse(o, i));
|
|
18
|
-
} catch (
|
|
19
|
-
n ? n(
|
|
18
|
+
} catch (f) {
|
|
19
|
+
n ? n(f) : console.error(f), a.manager.itemError(e);
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
r,
|
|
@@ -83,15 +83,15 @@ var qe = function() {
|
|
|
83
83
|
if (e[i] = a.RelativeFilename || a.Filename, "Content" in a) {
|
|
84
84
|
var s = a.Content instanceof ArrayBuffer && a.Content.byteLength > 0, o = typeof a.Content == "string" && a.Content !== "";
|
|
85
85
|
if (s || o) {
|
|
86
|
-
var
|
|
87
|
-
t[a.RelativeFilename || a.Filename] =
|
|
86
|
+
var f = this.parseImage(r[n]);
|
|
87
|
+
t[a.RelativeFilename || a.Filename] = f;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
for (var i in e) {
|
|
93
|
-
var
|
|
94
|
-
t[
|
|
93
|
+
var l = e[i];
|
|
94
|
+
t[l] !== void 0 ? e[i] = t[l] : e[i] = e[i].split("\\").pop();
|
|
95
95
|
}
|
|
96
96
|
return e;
|
|
97
97
|
},
|
|
@@ -143,7 +143,7 @@ var qe = function() {
|
|
|
143
143
|
var r = this.loadTexture(e, t);
|
|
144
144
|
r.ID = e.id, r.name = e.attrName;
|
|
145
145
|
var n = e.WrapModeU, a = e.WrapModeV, i = n !== void 0 ? n.value : 0, s = a !== void 0 ? a.value : 0;
|
|
146
|
-
if (r.wrapS = i === 0 ? ue :
|
|
146
|
+
if (r.wrapS = i === 0 ? ue : fe, r.wrapT = s === 0 ? ue : fe, "Scaling" in e) {
|
|
147
147
|
var o = e.Scaling.value;
|
|
148
148
|
r.repeat.x = o[0], r.repeat.y = o[1];
|
|
149
149
|
}
|
|
@@ -156,9 +156,9 @@ var qe = function() {
|
|
|
156
156
|
var i, s = e.FileName.slice(-3).toLowerCase();
|
|
157
157
|
if (s === "tga") {
|
|
158
158
|
var o = this.manager.getHandler(".tga");
|
|
159
|
-
o === null ? (console.warn("FBXLoader: TGA loader not found, creating placeholder texture for", e.RelativeFilename), i = new
|
|
159
|
+
o === null ? (console.warn("FBXLoader: TGA loader not found, creating placeholder texture for", e.RelativeFilename), i = new le()) : i = o.load(r);
|
|
160
160
|
} else
|
|
161
|
-
s === "psd" ? (console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for", e.RelativeFilename), i = new
|
|
161
|
+
s === "psd" ? (console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for", e.RelativeFilename), i = new le()) : i = this.textureLoader.load(r);
|
|
162
162
|
return this.textureLoader.setPath(n), i;
|
|
163
163
|
},
|
|
164
164
|
// Parse nodes in FBXTree.Objects.Material
|
|
@@ -317,18 +317,18 @@ var qe = function() {
|
|
|
317
317
|
T = new pe();
|
|
318
318
|
var n = this.parseModels(e.skeletons, t, r), a = v.Objects.Model, i = this;
|
|
319
319
|
n.forEach(function(o) {
|
|
320
|
-
var
|
|
321
|
-
i.setLookAtProperties(o,
|
|
322
|
-
var
|
|
323
|
-
|
|
320
|
+
var f = a[o.ID];
|
|
321
|
+
i.setLookAtProperties(o, f);
|
|
322
|
+
var l = y.get(o.ID).parents;
|
|
323
|
+
l.forEach(function(u) {
|
|
324
324
|
var p = n.get(u.ID);
|
|
325
325
|
p !== void 0 && p.add(o);
|
|
326
326
|
}), o.parent === null && T.add(o);
|
|
327
327
|
}), this.bindSkeleton(e.skeletons, t, n), this.createAmbientLight(), this.setupMorphMaterials(), T.traverse(function(o) {
|
|
328
328
|
if (o.userData.transformData) {
|
|
329
329
|
o.parent && (o.userData.transformData.parentMatrixWorld = o.parent.matrix);
|
|
330
|
-
var
|
|
331
|
-
o.applyMatrix4(
|
|
330
|
+
var f = re(o.userData.transformData);
|
|
331
|
+
o.applyMatrix4(f);
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
334
|
var s = new K().parse();
|
|
@@ -338,33 +338,33 @@ var qe = function() {
|
|
|
338
338
|
parseModels: function(e, t, r) {
|
|
339
339
|
var n = /* @__PURE__ */ new Map(), a = v.Objects.Model;
|
|
340
340
|
for (var i in a) {
|
|
341
|
-
var s = parseInt(i), o = a[i],
|
|
342
|
-
if (!
|
|
341
|
+
var s = parseInt(i), o = a[i], f = y.get(s), l = this.buildSkeleton(f, e, s, o.attrName);
|
|
342
|
+
if (!l) {
|
|
343
343
|
switch (o.attrType) {
|
|
344
344
|
case "Camera":
|
|
345
|
-
|
|
345
|
+
l = this.createCamera(f);
|
|
346
346
|
break;
|
|
347
347
|
case "Light":
|
|
348
|
-
|
|
348
|
+
l = this.createLight(f);
|
|
349
349
|
break;
|
|
350
350
|
case "Mesh":
|
|
351
|
-
|
|
351
|
+
l = this.createMesh(f, t, r);
|
|
352
352
|
break;
|
|
353
353
|
case "NurbsCurve":
|
|
354
|
-
|
|
354
|
+
l = this.createCurve(f, t);
|
|
355
355
|
break;
|
|
356
356
|
case "LimbNode":
|
|
357
357
|
case "Root":
|
|
358
|
-
|
|
358
|
+
l = new ce();
|
|
359
359
|
break;
|
|
360
360
|
case "Null":
|
|
361
361
|
default:
|
|
362
|
-
|
|
362
|
+
l = new pe();
|
|
363
363
|
break;
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
l.name = o.attrName ? X.sanitizeNodeName(o.attrName) : "", l.ID = s;
|
|
366
366
|
}
|
|
367
|
-
this.getTransformData(
|
|
367
|
+
this.getTransformData(l, o), n.set(s, l);
|
|
368
368
|
}
|
|
369
369
|
return n;
|
|
370
370
|
},
|
|
@@ -373,10 +373,10 @@ var qe = function() {
|
|
|
373
373
|
return e.parents.forEach(function(i) {
|
|
374
374
|
for (var s in t) {
|
|
375
375
|
var o = t[s];
|
|
376
|
-
o.rawBones.forEach(function(
|
|
377
|
-
if (
|
|
376
|
+
o.rawBones.forEach(function(f, l) {
|
|
377
|
+
if (f.ID === i.ID) {
|
|
378
378
|
var u = a;
|
|
379
|
-
a = new ce(), a.matrixWorld.copy(
|
|
379
|
+
a = new ce(), a.matrixWorld.copy(f.transformLink), a.name = n ? X.sanitizeNodeName(n) : "", a.ID = r, o.bones[l] = a, u !== null && a.add(u);
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
}
|
|
@@ -399,12 +399,12 @@ var qe = function() {
|
|
|
399
399
|
r.FarPlane !== void 0 && (i = r.FarPlane.value / 1e3);
|
|
400
400
|
var s = window.innerWidth, o = window.innerHeight;
|
|
401
401
|
r.AspectWidth !== void 0 && r.AspectHeight !== void 0 && (s = r.AspectWidth.value, o = r.AspectHeight.value);
|
|
402
|
-
var
|
|
403
|
-
r.FieldOfView !== void 0 && (
|
|
402
|
+
var f = s / o, l = 45;
|
|
403
|
+
r.FieldOfView !== void 0 && (l = r.FieldOfView.value);
|
|
404
404
|
var u = r.FocalLength ? r.FocalLength.value : null;
|
|
405
405
|
switch (n) {
|
|
406
406
|
case 0:
|
|
407
|
-
t = new Se(
|
|
407
|
+
t = new Se(l, f, a, i), u !== null && t.setFocalLength(u);
|
|
408
408
|
break;
|
|
409
409
|
case 1:
|
|
410
410
|
t = new Me(-s / 2, s / 2, o / 2, -o / 2, a, i);
|
|
@@ -442,10 +442,10 @@ var qe = function() {
|
|
|
442
442
|
t = new Oe(a, i);
|
|
443
443
|
break;
|
|
444
444
|
case 2:
|
|
445
|
-
var
|
|
446
|
-
r.InnerAngle !== void 0 && (
|
|
447
|
-
var
|
|
448
|
-
r.OuterAngle !== void 0 && (
|
|
445
|
+
var f = Math.PI / 3;
|
|
446
|
+
r.InnerAngle !== void 0 && (f = x.degToRad(r.InnerAngle.value));
|
|
447
|
+
var l = 0;
|
|
448
|
+
r.OuterAngle !== void 0 && (l = x.degToRad(r.OuterAngle.value), l = Math.max(l, 1)), t = new Re(a, i, s, f, l, o);
|
|
449
449
|
break;
|
|
450
450
|
default:
|
|
451
451
|
console.warn("THREE.FBXLoader: Unknown light type " + r.LightType.value + ", defaulting to a PointLight."), t = new ve(a, i);
|
|
@@ -496,8 +496,8 @@ var qe = function() {
|
|
|
496
496
|
var i = e[a], s = y.get(parseInt(i.ID)).parents;
|
|
497
497
|
s.forEach(function(o) {
|
|
498
498
|
if (t.has(o.ID)) {
|
|
499
|
-
var
|
|
500
|
-
|
|
499
|
+
var f = o.ID, l = y.get(f);
|
|
500
|
+
l.parents.forEach(function(u) {
|
|
501
501
|
if (r.has(u.ID)) {
|
|
502
502
|
var p = r.get(u.ID);
|
|
503
503
|
p.bind(new Ce(i.bones), n[u.ID]);
|
|
@@ -542,8 +542,8 @@ var qe = function() {
|
|
|
542
542
|
setupMorphMaterial: function(e, t, r) {
|
|
543
543
|
var n = e.uuid, a = t.uuid, i = !1;
|
|
544
544
|
if (T.traverse(function(o) {
|
|
545
|
-
o.isMesh && (Array.isArray(o.material) ? o.material.forEach(function(
|
|
546
|
-
|
|
545
|
+
o.isMesh && (Array.isArray(o.material) ? o.material.forEach(function(f) {
|
|
546
|
+
f.uuid === a && o.uuid !== n && (i = !0);
|
|
547
547
|
}) : o.material.uuid === a && o.uuid !== n && (i = !0));
|
|
548
548
|
}), i === !0) {
|
|
549
549
|
var s = t.clone();
|
|
@@ -589,10 +589,10 @@ var qe = function() {
|
|
|
589
589
|
e.children.forEach(function(u) {
|
|
590
590
|
r.morphTargets[u.ID] !== void 0 && a.push(r.morphTargets[u.ID]);
|
|
591
591
|
});
|
|
592
|
-
var o = i[0],
|
|
593
|
-
"RotationOrder" in o && (
|
|
594
|
-
var
|
|
595
|
-
return this.genGeometry(t, s, a,
|
|
592
|
+
var o = i[0], f = {};
|
|
593
|
+
"RotationOrder" in o && (f.eulerOrder = ae(o.RotationOrder.value)), "InheritType" in o && (f.inheritType = parseInt(o.InheritType.value)), "GeometricTranslation" in o && (f.translation = o.GeometricTranslation.value), "GeometricRotation" in o && (f.rotation = o.GeometricRotation.value), "GeometricScaling" in o && (f.scale = o.GeometricScaling.value);
|
|
594
|
+
var l = re(f);
|
|
595
|
+
return this.genGeometry(t, s, a, l);
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
// Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
|
|
@@ -601,8 +601,8 @@ var qe = function() {
|
|
|
601
601
|
e.attrName && (a.name = e.attrName);
|
|
602
602
|
var i = this.parseGeoNode(e, t), s = this.genBuffers(i), o = new O(s.vertex, 3);
|
|
603
603
|
if (o.applyMatrix4(n), a.setAttribute("position", o), s.colors.length > 0 && a.setAttribute("color", new O(s.colors, 3)), t && (a.setAttribute("skinIndex", new Xe(s.weightsIndices, 4)), a.setAttribute("skinWeight", new O(s.vertexWeights, 4)), a.FBX_Deformer = t), s.normal.length > 0) {
|
|
604
|
-
var
|
|
605
|
-
|
|
604
|
+
var f = new Ge().getNormalMatrix(n), l = new O(s.normal, 3);
|
|
605
|
+
l.applyNormalMatrix(f), a.setAttribute("normal", l);
|
|
606
606
|
}
|
|
607
607
|
if (s.uvs.forEach(function(w, g) {
|
|
608
608
|
var d = "uv" + (g + 1).toString();
|
|
@@ -644,7 +644,7 @@ var qe = function() {
|
|
|
644
644
|
materialIndex: [],
|
|
645
645
|
vertexWeights: [],
|
|
646
646
|
weightsIndices: []
|
|
647
|
-
}, r = 0, n = 0, a = !1, i = [], s = [], o = [],
|
|
647
|
+
}, r = 0, n = 0, a = !1, i = [], s = [], o = [], f = [], l = [], u = [], p = this;
|
|
648
648
|
return e.vertexIndices.forEach(function(c, h) {
|
|
649
649
|
var w = !1;
|
|
650
650
|
c < 0 && (c = c ^ -1, w = !0);
|
|
@@ -673,7 +673,7 @@ var qe = function() {
|
|
|
673
673
|
for (; d.length < 4; )
|
|
674
674
|
d.push(0), g.push(0);
|
|
675
675
|
for (var R = 0; R < 4; ++R)
|
|
676
|
-
|
|
676
|
+
l.push(d[R]), u.push(g[R]);
|
|
677
677
|
}
|
|
678
678
|
if (e.normal) {
|
|
679
679
|
var A = D(h, r, c, e.normal);
|
|
@@ -683,7 +683,7 @@ var qe = function() {
|
|
|
683
683
|
var $ = D(h, r, c, e.material)[0];
|
|
684
684
|
e.uv && e.uv.forEach(function(I, E) {
|
|
685
685
|
var P = D(h, r, c, I);
|
|
686
|
-
|
|
686
|
+
f[E] === void 0 && (f[E] = []), f[E].push(P[0]), f[E].push(P[1]);
|
|
687
687
|
}), n++, w && (p.genFace(
|
|
688
688
|
t,
|
|
689
689
|
e,
|
|
@@ -691,17 +691,17 @@ var qe = function() {
|
|
|
691
691
|
$,
|
|
692
692
|
s,
|
|
693
693
|
o,
|
|
694
|
-
l,
|
|
695
694
|
f,
|
|
695
|
+
l,
|
|
696
696
|
u,
|
|
697
697
|
n
|
|
698
|
-
), r++, n = 0, i = [], s = [], o = [],
|
|
698
|
+
), r++, n = 0, i = [], s = [], o = [], f = [], l = [], u = []);
|
|
699
699
|
}), t;
|
|
700
700
|
},
|
|
701
701
|
// Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
|
|
702
|
-
genFace: function(e, t, r, n, a, i, s, o,
|
|
703
|
-
for (var u = 2; u <
|
|
704
|
-
e.vertex.push(t.vertexPositions[r[0]]), e.vertex.push(t.vertexPositions[r[1]]), e.vertex.push(t.vertexPositions[r[2]]), e.vertex.push(t.vertexPositions[r[(u - 1) * 3]]), e.vertex.push(t.vertexPositions[r[(u - 1) * 3 + 1]]), e.vertex.push(t.vertexPositions[r[(u - 1) * 3 + 2]]), e.vertex.push(t.vertexPositions[r[u * 3]]), e.vertex.push(t.vertexPositions[r[u * 3 + 1]]), e.vertex.push(t.vertexPositions[r[u * 3 + 2]]), t.skeleton && (e.vertexWeights.push(o[0]), e.vertexWeights.push(o[1]), e.vertexWeights.push(o[2]), e.vertexWeights.push(o[3]), e.vertexWeights.push(o[(u - 1) * 4]), e.vertexWeights.push(o[(u - 1) * 4 + 1]), e.vertexWeights.push(o[(u - 1) * 4 + 2]), e.vertexWeights.push(o[(u - 1) * 4 + 3]), e.vertexWeights.push(o[u * 4]), e.vertexWeights.push(o[u * 4 + 1]), e.vertexWeights.push(o[u * 4 + 2]), e.vertexWeights.push(o[u * 4 + 3]), e.weightsIndices.push(
|
|
702
|
+
genFace: function(e, t, r, n, a, i, s, o, f, l) {
|
|
703
|
+
for (var u = 2; u < l; u++)
|
|
704
|
+
e.vertex.push(t.vertexPositions[r[0]]), e.vertex.push(t.vertexPositions[r[1]]), e.vertex.push(t.vertexPositions[r[2]]), e.vertex.push(t.vertexPositions[r[(u - 1) * 3]]), e.vertex.push(t.vertexPositions[r[(u - 1) * 3 + 1]]), e.vertex.push(t.vertexPositions[r[(u - 1) * 3 + 2]]), e.vertex.push(t.vertexPositions[r[u * 3]]), e.vertex.push(t.vertexPositions[r[u * 3 + 1]]), e.vertex.push(t.vertexPositions[r[u * 3 + 2]]), t.skeleton && (e.vertexWeights.push(o[0]), e.vertexWeights.push(o[1]), e.vertexWeights.push(o[2]), e.vertexWeights.push(o[3]), e.vertexWeights.push(o[(u - 1) * 4]), e.vertexWeights.push(o[(u - 1) * 4 + 1]), e.vertexWeights.push(o[(u - 1) * 4 + 2]), e.vertexWeights.push(o[(u - 1) * 4 + 3]), e.vertexWeights.push(o[u * 4]), e.vertexWeights.push(o[u * 4 + 1]), e.vertexWeights.push(o[u * 4 + 2]), e.vertexWeights.push(o[u * 4 + 3]), e.weightsIndices.push(f[0]), e.weightsIndices.push(f[1]), e.weightsIndices.push(f[2]), e.weightsIndices.push(f[3]), e.weightsIndices.push(f[(u - 1) * 4]), e.weightsIndices.push(f[(u - 1) * 4 + 1]), e.weightsIndices.push(f[(u - 1) * 4 + 2]), e.weightsIndices.push(f[(u - 1) * 4 + 3]), e.weightsIndices.push(f[u * 4]), e.weightsIndices.push(f[u * 4 + 1]), e.weightsIndices.push(f[u * 4 + 2]), e.weightsIndices.push(f[u * 4 + 3])), t.color && (e.colors.push(i[0]), e.colors.push(i[1]), e.colors.push(i[2]), e.colors.push(i[(u - 1) * 3]), e.colors.push(i[(u - 1) * 3 + 1]), e.colors.push(i[(u - 1) * 3 + 2]), e.colors.push(i[u * 3]), e.colors.push(i[u * 3 + 1]), e.colors.push(i[u * 3 + 2])), t.material && t.material.mappingType !== "AllSame" && (e.materialIndex.push(n), e.materialIndex.push(n), e.materialIndex.push(n)), t.normal && (e.normal.push(a[0]), e.normal.push(a[1]), e.normal.push(a[2]), e.normal.push(a[(u - 1) * 3]), e.normal.push(a[(u - 1) * 3 + 1]), e.normal.push(a[(u - 1) * 3 + 2]), e.normal.push(a[u * 3]), e.normal.push(a[u * 3 + 1]), e.normal.push(a[u * 3 + 2])), t.uv && t.uv.forEach(function(p, c) {
|
|
705
705
|
e.uvs[c] === void 0 && (e.uvs[c] = []), e.uvs[c].push(s[c][0]), e.uvs[c].push(s[c][1]), e.uvs[c].push(s[c][(u - 1) * 2]), e.uvs[c].push(s[c][(u - 1) * 2 + 1]), e.uvs[c].push(s[c][u * 2]), e.uvs[c].push(s[c][u * 2 + 1]);
|
|
706
706
|
});
|
|
707
707
|
},
|
|
@@ -722,13 +722,13 @@ var qe = function() {
|
|
|
722
722
|
// and a special attribute Index defining which vertices of the original geometry are affected
|
|
723
723
|
// Normal and position attributes only have data for the vertices that are affected by the morph
|
|
724
724
|
genMorphGeometry: function(e, t, r, n, a) {
|
|
725
|
-
for (var i = t.PolygonVertexIndex !== void 0 ? t.PolygonVertexIndex.a : [], s = r.Vertices !== void 0 ? r.Vertices.a : [], o = r.Indexes !== void 0 ? r.Indexes.a : [],
|
|
725
|
+
for (var i = t.PolygonVertexIndex !== void 0 ? t.PolygonVertexIndex.a : [], s = r.Vertices !== void 0 ? r.Vertices.a : [], o = r.Indexes !== void 0 ? r.Indexes.a : [], f = e.attributes.position.count * 3, l = new Float32Array(f), u = 0; u < o.length; u++) {
|
|
726
726
|
var p = o[u] * 3;
|
|
727
|
-
|
|
727
|
+
l[p] = s[u * 3], l[p + 1] = s[u * 3 + 1], l[p + 2] = s[u * 3 + 2];
|
|
728
728
|
}
|
|
729
729
|
var c = {
|
|
730
730
|
vertexIndices: i,
|
|
731
|
-
vertexPositions:
|
|
731
|
+
vertexPositions: l
|
|
732
732
|
}, h = this.genBuffers(c), w = new O(h.vertex, 3);
|
|
733
733
|
w.name = a || r.attrName, w.applyMatrix4(n), e.morphAttributes.position.push(w);
|
|
734
734
|
},
|
|
@@ -797,15 +797,15 @@ var qe = function() {
|
|
|
797
797
|
return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s", e.Order, e.id), new V();
|
|
798
798
|
for (var r = t - 1, n = e.KnotVector.a, a = [], i = e.Points.a, s = 0, o = i.length; s < o; s += 4)
|
|
799
799
|
a.push(new Ve().fromArray(i, s));
|
|
800
|
-
var
|
|
800
|
+
var f, l;
|
|
801
801
|
if (e.Form === "Closed")
|
|
802
802
|
a.push(a[0]);
|
|
803
803
|
else if (e.Form === "Periodic") {
|
|
804
|
-
|
|
804
|
+
f = r, l = n.length - 1 - f;
|
|
805
805
|
for (var s = 0; s < r; ++s)
|
|
806
806
|
a.push(a[s]);
|
|
807
807
|
}
|
|
808
|
-
var u = new me(r, n, a,
|
|
808
|
+
var u = new me(r, n, a, f, l), p = u.getPoints(a.length * 7), c = new Float32Array(p.length * 3);
|
|
809
809
|
p.forEach(function(w, g) {
|
|
810
810
|
w.toArray(c, g * 3);
|
|
811
811
|
});
|
|
@@ -879,11 +879,11 @@ var qe = function() {
|
|
|
879
879
|
var a = [], i = y.get(parseInt(n));
|
|
880
880
|
if (i !== void 0) {
|
|
881
881
|
var s = i.children;
|
|
882
|
-
s.forEach(function(o,
|
|
882
|
+
s.forEach(function(o, f) {
|
|
883
883
|
if (e.has(o.ID)) {
|
|
884
|
-
var
|
|
885
|
-
if (
|
|
886
|
-
if (a[
|
|
884
|
+
var l = e.get(o.ID);
|
|
885
|
+
if (l.curves.x !== void 0 || l.curves.y !== void 0 || l.curves.z !== void 0) {
|
|
886
|
+
if (a[f] === void 0) {
|
|
887
887
|
var u = y.get(o.ID).parents.filter(function(d) {
|
|
888
888
|
return d.relationship !== void 0;
|
|
889
889
|
})[0].ID;
|
|
@@ -902,21 +902,21 @@ var qe = function() {
|
|
|
902
902
|
};
|
|
903
903
|
T.traverse(function(d) {
|
|
904
904
|
d.ID === p.id && (c.transform = d.matrix, d.userData.transformData && (c.eulerOrder = d.userData.transformData.eulerOrder));
|
|
905
|
-
}), c.transform || (c.transform = new m()), "PreRotation" in p && (c.preRotation = p.PreRotation.value), "PostRotation" in p && (c.postRotation = p.PostRotation.value), a[
|
|
905
|
+
}), c.transform || (c.transform = new m()), "PreRotation" in p && (c.preRotation = p.PreRotation.value), "PostRotation" in p && (c.postRotation = p.PostRotation.value), a[f] = c;
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
a[
|
|
909
|
-
} else if (
|
|
910
|
-
if (a[
|
|
908
|
+
a[f] && (a[f][l.attr] = l);
|
|
909
|
+
} else if (l.curves.morph !== void 0) {
|
|
910
|
+
if (a[f] === void 0) {
|
|
911
911
|
var h = y.get(o.ID).parents.filter(function(S) {
|
|
912
912
|
return S.relationship !== void 0;
|
|
913
913
|
})[0].ID, w = y.get(h).parents[0].ID, g = y.get(w).parents[0].ID, u = y.get(g).parents[0].ID, p = v.Objects.Model[u], c = {
|
|
914
914
|
modelName: p.attrName ? X.sanitizeNodeName(p.attrName) : "",
|
|
915
915
|
morphName: v.Objects.Deformer[h].attrName
|
|
916
916
|
};
|
|
917
|
-
a[
|
|
917
|
+
a[f] = c;
|
|
918
918
|
}
|
|
919
|
-
a[
|
|
919
|
+
a[f][l.attr] = l;
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
}), r.set(parseInt(n), a);
|
|
@@ -969,8 +969,8 @@ var qe = function() {
|
|
|
969
969
|
o !== void 0 && t.push(o);
|
|
970
970
|
}
|
|
971
971
|
if (e.DeformPercent !== void 0) {
|
|
972
|
-
var
|
|
973
|
-
|
|
972
|
+
var f = this.generateMorphTrack(e);
|
|
973
|
+
f !== void 0 && t.push(f);
|
|
974
974
|
}
|
|
975
975
|
return t;
|
|
976
976
|
},
|
|
@@ -982,8 +982,8 @@ var qe = function() {
|
|
|
982
982
|
t.x !== void 0 && (this.interpolateRotations(t.x), t.x.values = t.x.values.map(x.degToRad)), t.y !== void 0 && (this.interpolateRotations(t.y), t.y.values = t.y.values.map(x.degToRad)), t.z !== void 0 && (this.interpolateRotations(t.z), t.z.values = t.z.values.map(x.degToRad));
|
|
983
983
|
var s = this.getTimesForAllAxes(t), o = this.getKeyframeTrackValues(s, t, r);
|
|
984
984
|
n !== void 0 && (n = n.map(x.degToRad), n.push(i), n = new B().fromArray(n), n = new j().setFromEuler(n)), a !== void 0 && (a = a.map(x.degToRad), a.push(i), a = new B().fromArray(a), a = new j().setFromEuler(a).inverse());
|
|
985
|
-
for (var
|
|
986
|
-
|
|
985
|
+
for (var f = new j(), l = new B(), u = [], p = 0; p < o.length; p += 3)
|
|
986
|
+
l.set(o[p], o[p + 1], o[p + 2], i), f.setFromEuler(l), n !== void 0 && f.premultiply(n), a !== void 0 && f.multiply(a), f.toArray(u, p / 3 * 4);
|
|
987
987
|
return new _e(e + ".quaternion", s, u);
|
|
988
988
|
},
|
|
989
989
|
generateMorphTrack: function(e) {
|
|
@@ -1004,10 +1004,10 @@ var qe = function() {
|
|
|
1004
1004
|
},
|
|
1005
1005
|
getKeyframeTrackValues: function(e, t, r) {
|
|
1006
1006
|
var n = r, a = [], i = -1, s = -1, o = -1;
|
|
1007
|
-
return e.forEach(function(
|
|
1008
|
-
if (t.x && (i = t.x.times.indexOf(
|
|
1009
|
-
var
|
|
1010
|
-
a.push(
|
|
1007
|
+
return e.forEach(function(f) {
|
|
1008
|
+
if (t.x && (i = t.x.times.indexOf(f)), t.y && (s = t.y.times.indexOf(f)), t.z && (o = t.z.times.indexOf(f)), i !== -1) {
|
|
1009
|
+
var l = t.x.values[i];
|
|
1010
|
+
a.push(l), n[0] = l;
|
|
1011
1011
|
} else
|
|
1012
1012
|
a.push(n[0]);
|
|
1013
1013
|
if (s !== -1) {
|
|
@@ -1029,7 +1029,7 @@ var qe = function() {
|
|
|
1029
1029
|
for (var t = 1; t < e.values.length; t++) {
|
|
1030
1030
|
var r = e.values[t - 1], n = e.values[t] - r, a = Math.abs(n);
|
|
1031
1031
|
if (a >= 180) {
|
|
1032
|
-
for (var i = a / 180, s = n / i, o = r + s,
|
|
1032
|
+
for (var i = a / 180, s = n / i, o = r + s, f = e.times[t - 1], l = e.times[t] - f, u = l / i, p = f + u, c = [], h = []; p < e.times[t]; )
|
|
1033
1033
|
c.push(p), p += u, h.push(o), o += s;
|
|
1034
1034
|
e.times = ie(e.times, t, c), e.values = ie(e.values, t, h);
|
|
1035
1035
|
}
|
|
@@ -1064,8 +1064,8 @@ var qe = function() {
|
|
|
1064
1064
|
return r.forEach(function(n, a) {
|
|
1065
1065
|
var i = n.match(/^[\s\t]*;/), s = n.match(/^[\s\t]*$/);
|
|
1066
1066
|
if (!(i || s)) {
|
|
1067
|
-
var o = n.match("^\\t{" + t.currentIndent + "}(\\w+):(.*){", ""),
|
|
1068
|
-
o ? t.parseNodeBegin(n, o) :
|
|
1067
|
+
var o = n.match("^\\t{" + t.currentIndent + "}(\\w+):(.*){", ""), f = n.match("^\\t{" + t.currentIndent + "}(\\w+):[\\s\\t\\r\\n](.*)"), l = n.match("^\\t{" + (t.currentIndent - 1) + "}}");
|
|
1068
|
+
o ? t.parseNodeBegin(n, o) : f ? t.parseNodeProperty(n, f, r[++a]) : l ? t.popStack() : n.match(/^[^\s\t}]/) && t.parseNodePropertyContinued(n);
|
|
1069
1069
|
}
|
|
1070
1070
|
}), this.allNodes;
|
|
1071
1071
|
},
|
|
@@ -1090,10 +1090,10 @@ var qe = function() {
|
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
1092
|
if (n === "C") {
|
|
1093
|
-
var o = a.split(",").slice(1),
|
|
1093
|
+
var o = a.split(",").slice(1), f = parseInt(o[0]), l = parseInt(o[1]), u = a.split(",").slice(3);
|
|
1094
1094
|
u = u.map(function(p) {
|
|
1095
1095
|
return p.trim().replace(/^"/, "");
|
|
1096
|
-
}), n = "connections", a = [
|
|
1096
|
+
}), n = "connections", a = [f, l], Te(a, u), i[n] === void 0 && (i[n] = []);
|
|
1097
1097
|
}
|
|
1098
1098
|
n === "Node" && (i.id = a), n in i && Array.isArray(i[n]) ? i[n].push(a) : n !== "a" ? i[n] = a : i.a = a, this.setCurrentProp(i, n), n === "a" && a.slice(-1) !== "," && (i.a = q(a));
|
|
1099
1099
|
},
|
|
@@ -1103,9 +1103,9 @@ var qe = function() {
|
|
|
1103
1103
|
},
|
|
1104
1104
|
// parse "Property70"
|
|
1105
1105
|
parseNodeSpecialProperty: function(e, t, r) {
|
|
1106
|
-
var n = r.split('",').map(function(
|
|
1107
|
-
return
|
|
1108
|
-
}), a = n[0], i = n[1], s = n[2], o = n[3],
|
|
1106
|
+
var n = r.split('",').map(function(l) {
|
|
1107
|
+
return l.trim().replace(/^\"/, "").replace(/\s/, "_");
|
|
1108
|
+
}), a = n[0], i = n[1], s = n[2], o = n[3], f = n[4];
|
|
1109
1109
|
switch (i) {
|
|
1110
1110
|
case "int":
|
|
1111
1111
|
case "enum":
|
|
@@ -1114,7 +1114,7 @@ var qe = function() {
|
|
|
1114
1114
|
case "double":
|
|
1115
1115
|
case "Number":
|
|
1116
1116
|
case "FieldOfView":
|
|
1117
|
-
|
|
1117
|
+
f = parseFloat(f);
|
|
1118
1118
|
break;
|
|
1119
1119
|
case "Color":
|
|
1120
1120
|
case "ColorRGB":
|
|
@@ -1122,14 +1122,14 @@ var qe = function() {
|
|
|
1122
1122
|
case "Lcl_Translation":
|
|
1123
1123
|
case "Lcl_Rotation":
|
|
1124
1124
|
case "Lcl_Scaling":
|
|
1125
|
-
|
|
1125
|
+
f = q(f);
|
|
1126
1126
|
break;
|
|
1127
1127
|
}
|
|
1128
1128
|
this.getPrevNode()[a] = {
|
|
1129
1129
|
type: i,
|
|
1130
1130
|
type2: s,
|
|
1131
1131
|
flag: o,
|
|
1132
|
-
value:
|
|
1132
|
+
value: f
|
|
1133
1133
|
}, this.setCurrentProp(this.getPrevNode(), a);
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
@@ -1141,7 +1141,7 @@ var qe = function() {
|
|
|
1141
1141
|
var t = new b(e);
|
|
1142
1142
|
t.skip(23);
|
|
1143
1143
|
var r = t.getUint32();
|
|
1144
|
-
console.
|
|
1144
|
+
console.info("THREE.FBXLoader: FBX binary version: " + r);
|
|
1145
1145
|
for (var n = new k(); !this.endOfContent(t); ) {
|
|
1146
1146
|
var a = this.parseNode(t, r);
|
|
1147
1147
|
a !== null && n.add(a.name, a);
|
|
@@ -1159,14 +1159,14 @@ var qe = function() {
|
|
|
1159
1159
|
var i = e.getUint8(), s = e.getString(i);
|
|
1160
1160
|
if (n === 0)
|
|
1161
1161
|
return null;
|
|
1162
|
-
for (var o = [],
|
|
1162
|
+
for (var o = [], f = 0; f < a; f++)
|
|
1163
1163
|
o.push(this.parseProperty(e));
|
|
1164
|
-
var
|
|
1164
|
+
var l = o.length > 0 ? o[0] : "", u = o.length > 1 ? o[1] : "", p = o.length > 2 ? o[2] : "";
|
|
1165
1165
|
for (r.singleProperty = a === 1 && e.getOffset() === n; n > e.getOffset(); ) {
|
|
1166
1166
|
var c = this.parseNode(e, t);
|
|
1167
1167
|
c !== null && this.parseSubNode(s, r, c);
|
|
1168
1168
|
}
|
|
1169
|
-
return r.propertyList = o, typeof
|
|
1169
|
+
return r.propertyList = o, typeof l == "number" && (r.id = l), u !== "" && (r.attrName = u), p !== "" && (r.attrType = p), s !== "" && (r.name = s), r;
|
|
1170
1170
|
},
|
|
1171
1171
|
parseSubNode: function(e, t, r) {
|
|
1172
1172
|
if (r.singleProperty === !0) {
|
|
@@ -1183,11 +1183,11 @@ var qe = function() {
|
|
|
1183
1183
|
t[p] = r[p];
|
|
1184
1184
|
});
|
|
1185
1185
|
} else if (e === "Properties70" && r.name === "P") {
|
|
1186
|
-
var s = r.propertyList[0], o = r.propertyList[1],
|
|
1186
|
+
var s = r.propertyList[0], o = r.propertyList[1], f = r.propertyList[2], l = r.propertyList[3], u;
|
|
1187
1187
|
s.indexOf("Lcl ") === 0 && (s = s.replace("Lcl ", "Lcl_")), o.indexOf("Lcl ") === 0 && (o = o.replace("Lcl ", "Lcl_")), o === "Color" || o === "ColorRGB" || o === "Vector" || o === "Vector3D" || o.indexOf("Lcl_") === 0 ? u = [r.propertyList[4], r.propertyList[5], r.propertyList[6]] : u = r.propertyList[4], t[s] = {
|
|
1188
1188
|
type: o,
|
|
1189
|
-
type2:
|
|
1190
|
-
flag:
|
|
1189
|
+
type2: f,
|
|
1190
|
+
flag: l,
|
|
1191
1191
|
value: u
|
|
1192
1192
|
};
|
|
1193
1193
|
} else
|
|
@@ -1412,7 +1412,7 @@ var qe = function() {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
var Z = new B(), M = new G();
|
|
1414
1414
|
function re(e) {
|
|
1415
|
-
var t = new m(), r = new m(), n = new m(), a = new m(), i = new m(), s = new m(), o = new m(),
|
|
1415
|
+
var t = new m(), r = new m(), n = new m(), a = new m(), i = new m(), s = new m(), o = new m(), f = new m(), l = new m(), u = new m(), p = new m(), c = e.inheritType ? e.inheritType : 0;
|
|
1416
1416
|
if (e.translation && t.setPosition(M.fromArray(e.translation)), e.preRotation) {
|
|
1417
1417
|
var h = e.preRotation.map(x.degToRad);
|
|
1418
1418
|
h.push(e.eulerOrder), r.makeRotationFromEuler(Z.fromArray(h));
|
|
@@ -1425,7 +1425,7 @@ var qe = function() {
|
|
|
1425
1425
|
var h = e.postRotation.map(x.degToRad);
|
|
1426
1426
|
h.push(e.eulerOrder), a.makeRotationFromEuler(Z.fromArray(h));
|
|
1427
1427
|
}
|
|
1428
|
-
e.scale && i.scale(M.fromArray(e.scale)), e.scalingOffset && o.setPosition(M.fromArray(e.scalingOffset)), e.scalingPivot && s.setPosition(M.fromArray(e.scalingPivot)), e.rotationOffset &&
|
|
1428
|
+
e.scale && i.scale(M.fromArray(e.scale)), e.scalingOffset && o.setPosition(M.fromArray(e.scalingOffset)), e.scalingPivot && s.setPosition(M.fromArray(e.scalingPivot)), e.rotationOffset && f.setPosition(M.fromArray(e.rotationOffset)), e.rotationPivot && l.setPosition(M.fromArray(e.rotationPivot)), e.parentMatrixWorld && (u = e.parentMatrixWorld);
|
|
1429
1429
|
var w = r.multiply(n).multiply(a), g = new m();
|
|
1430
1430
|
u.extractRotation(g);
|
|
1431
1431
|
var d = new m();
|
|
@@ -1441,8 +1441,8 @@ var qe = function() {
|
|
|
1441
1441
|
var S = new m().getInverse(i), R = new m().multiply(A).multiply(S);
|
|
1442
1442
|
L.copy(g).multiply(w).multiply(R).multiply(i);
|
|
1443
1443
|
}
|
|
1444
|
-
var $ = new m().getInverse(
|
|
1445
|
-
E.copy(t).multiply(
|
|
1444
|
+
var $ = new m().getInverse(l), I = new m().getInverse(s), E = new m();
|
|
1445
|
+
E.copy(t).multiply(f).multiply(l).multiply(r).multiply(n).multiply(a).multiply($).multiply(o).multiply(s).multiply(i).multiply(I);
|
|
1446
1446
|
var P = new m().copyPosition(E), C = new m().copy(u).multiply(P);
|
|
1447
1447
|
return p.copyPosition(C), E = new m().multiply(p).multiply(L), E;
|
|
1448
1448
|
}
|
package/package.json
CHANGED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export type EventMap = {
|
|
2
|
-
[name: string]: (...args: any[]) => void | boolean;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* 监听者模式
|
|
6
|
-
* @template T 预设的监听回调类型
|
|
7
|
-
* @example
|
|
8
|
-
* ```
|
|
9
|
-
* new Subscribe<{
|
|
10
|
-
* "foo": [arg1: number, arg2: string],
|
|
11
|
-
* "bar": [arg: boolean],
|
|
12
|
-
* }>()
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
declare class Subscribe<T extends EventMap> {
|
|
16
|
-
/**
|
|
17
|
-
* 判断是否注册了事件
|
|
18
|
-
* @param name 事件类型
|
|
19
|
-
*/
|
|
20
|
-
hasListener(name: keyof T): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* 注册事件
|
|
23
|
-
* @param name 事件类型
|
|
24
|
-
* @param callback 事件回调函数
|
|
25
|
-
* @param once 是否只执行一次
|
|
26
|
-
* @returns 解除事件
|
|
27
|
-
* @template K 预设的监听事件名称
|
|
28
|
-
* @template C 回调函数函数上下文
|
|
29
|
-
*/
|
|
30
|
-
on<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
|
|
31
|
-
/**
|
|
32
|
-
* 注册事件(是否只执行一次)
|
|
33
|
-
* @param name 事件类型
|
|
34
|
-
* @param callback 事件回调函数
|
|
35
|
-
* @returns 解除事件
|
|
36
|
-
* @template K 预设的监听事件名称
|
|
37
|
-
* @template C 回调函数函数上下文
|
|
38
|
-
*/
|
|
39
|
-
once<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
|
|
40
|
-
/**
|
|
41
|
-
* 解除事件
|
|
42
|
-
*
|
|
43
|
-
* 如果 name 不传的话解除对应所有事件
|
|
44
|
-
* 如果 name, callback 不传的话解除所有name的所有事件
|
|
45
|
-
* @param name 事件类型
|
|
46
|
-
* @param callback 事件回调函数
|
|
47
|
-
* @template K 预设的监听事件名称
|
|
48
|
-
*/
|
|
49
|
-
off<K extends keyof T>(name?: K, callback?: (...args: Parameters<T[K]>) => ReturnType<T[K]>): void;
|
|
50
|
-
/**
|
|
51
|
-
* 触发事件
|
|
52
|
-
* @param name 事件类型
|
|
53
|
-
* @param data 触发事件的数据
|
|
54
|
-
* @returns canceled 是否被触发取消
|
|
55
|
-
* @template K 预设的监听事件名称
|
|
56
|
-
*/
|
|
57
|
-
emit<K extends keyof T>(name: K, ...data: Parameters<T[K]>): boolean;
|
|
58
|
-
}
|
|
59
|
-
export declare namespace SubscribeMixinType {
|
|
60
|
-
interface hasListener<T extends EventMap> {
|
|
61
|
-
(name: keyof T): boolean;
|
|
62
|
-
}
|
|
63
|
-
interface on<T extends EventMap> {
|
|
64
|
-
<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>, once?: boolean): () => void;
|
|
65
|
-
}
|
|
66
|
-
interface once<T extends EventMap> {
|
|
67
|
-
<K extends keyof T>(name: K, callback: (...args: Parameters<T[K]>) => ReturnType<T[K]>): () => void;
|
|
68
|
-
}
|
|
69
|
-
interface off<T extends EventMap> {
|
|
70
|
-
<K extends keyof T>(names?: K | K[], callback?: (...args: any[]) => any): void;
|
|
71
|
-
}
|
|
72
|
-
interface emit<T extends EventMap> {
|
|
73
|
-
<K extends keyof T>(name: K, ...data: Parameters<T[K]>): boolean;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export { Subscribe };
|