@realsee/five 5.0.0-alpha.11 → 5.0.0-alpha.110
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/README.md +75 -63
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/{images/icons.png → icons.png} +0 -0
- package/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/{images/widgets.png → widgets.png} +0 -0
- package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +15 -0
- package/docs/classes/five.BVH.html +10 -0
- package/docs/classes/five.BVHIntersect.html +1 -0
- package/docs/classes/five.BVHNode.html +7 -0
- package/docs/classes/five.BVHVector3.html +1 -0
- package/docs/classes/five.Camera.html +11 -0
- package/docs/classes/five.Five.html +303 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.LegacyPanoCircleMesh.html +5 -0
- package/docs/classes/five.Model.html +77 -0
- package/docs/classes/five.NetworkSubscribe.html +50 -0
- package/docs/classes/five.PBMContainer.html +17 -0
- package/docs/classes/five.PBMGroup.html +19 -0
- package/docs/classes/five.PBMMaterial.html +15 -0
- package/docs/classes/five.PBMMesh.html +7 -0
- package/docs/classes/five.PanoCircleMesh.html +7 -0
- package/docs/classes/five.Scene.html +3 -0
- package/docs/classes/five.Subscribe.html +56 -0
- package/docs/classes/five.Work.html +30 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
- package/docs/classes/gltf_loader.GLTFObject.html +7 -0
- package/docs/classes/line.Line.html +1 -0
- package/docs/classes/line.LineGeometry.html +1 -0
- package/docs/classes/line.LineMaterial.html +1 -0
- package/docs/classes/line.LineSegmentsGeometry.html +1 -0
- package/docs/classes/line.THREE_Line2.html +1 -0
- package/docs/classes/line.THREE_LineSegments2.html +1 -0
- package/docs/classes/react.Store.html +29 -0
- package/docs/classes/server.BVH.html +10 -0
- package/docs/classes/server.BVHIntersect.html +1 -0
- package/docs/classes/server.BVHNode.html +7 -0
- package/docs/classes/server.BVHVector3.html +1 -0
- package/docs/classes/server.Model.html +63 -0
- package/docs/classes/server.PBMGroup.html +9 -0
- package/docs/classes/server.PBMMesh.html +7 -0
- package/docs/classes/sticker.Sticker.html +32 -0
- package/docs/index.html +166 -420
- package/docs/interfaces/five.AddableObject.html +1 -0
- package/docs/interfaces/five.AnimationFrame.html +1 -0
- package/docs/interfaces/five.CameraPose.html +1 -0
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.EventCallback.html +391 -0
- package/docs/interfaces/five.FiveInitArgs.html +96 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +15 -0
- package/docs/interfaces/five.ImageOptions.html +18 -0
- package/docs/interfaces/five.ImageURLOptions.html +15 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/five.Intersection.html +7 -0
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.ModelEventCallback.html +22 -0
- package/docs/interfaces/five.MovePanoOptions.html +40 -0
- package/docs/interfaces/five.PBMPanoPicture.html +7 -0
- package/docs/interfaces/five.PBMParameters.html +15 -0
- package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.Pose.html +35 -0
- package/docs/interfaces/five.Scissor.html +14 -0
- package/docs/interfaces/five.State.html +19 -0
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/five.TextureOptions.html +20 -0
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -0
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +24 -0
- package/docs/interfaces/five.WorkCubeImage.html +13 -0
- package/docs/interfaces/five.WorkImage.html +21 -0
- package/docs/interfaces/five.WorkInitial.html +13 -0
- package/docs/interfaces/five.WorkModel.html +11 -0
- package/docs/interfaces/five.WorkObserver.html +25 -0
- package/docs/interfaces/five.WorkTile.html +1 -0
- package/docs/interfaces/five.WorkVideo.html +9 -0
- package/docs/interfaces/gltf_loader.GLTF.html +7 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +62 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +191 -0
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
- package/docs/interfaces/server.Intersection.html +7 -0
- package/docs/interfaces/server.ModelEventCallback.html +18 -0
- package/docs/interfaces/sticker.IntersectionLike.html +8 -0
- package/docs/modules/five.SubscribeMixinType.html +1 -0
- package/docs/modules/five.html +481 -0
- package/docs/modules/gltf_loader.html +1 -0
- package/docs/modules/line.html +1 -0
- package/docs/modules/react.html +130 -941
- package/docs/modules/server.html +18 -0
- package/docs/modules/sticker.html +1 -0
- package/docs/modules.html +1 -119
- package/exporters/staticify.js +203 -0
- package/five/index.d.ts +2073 -0
- package/five/index.js +372 -0
- package/gltf-loader/index.d.ts +75 -0
- package/gltf-loader/index.js +260 -0
- package/line/index.d.ts +68 -0
- package/line/index.js +260 -0
- package/package.json +19 -17
- package/react/index.d.ts +812 -17
- package/react/index.js +260 -1
- package/resource/{basis_transcoder.js → basis/basis_transcoder.js} +0 -0
- package/resource/{basis_transcoder.wasm → basis/basis_transcoder.wasm} +0 -0
- package/resource/gltf/draco_decoder.js +31 -0
- package/resource/gltf/draco_decoder.wasm +0 -0
- package/resource/gltf/draco_wasm_wrapper.js +119 -0
- package/scripts/five-staticify.js +21 -0
- package/server/index.d.ts +568 -5
- package/server/index.js +367 -1
- package/sticker/index.d.ts +70 -0
- package/sticker/index.js +260 -0
- package/templates/plugin/examples/index.html +1 -1
- package/templates/quick-start/README.md +1 -1
- package/templates/quick-start/index.tsx +1 -1
- package/templates/quick-start/package.json +1 -1
- package/templates/react-component/examples/index.html +1 -1
- package/templates/react-component/examples/index.tsx +4 -4
- package/templates/react-component/lib/index.tsx +5 -5
- package/umd/five-gltf-loader.js +2 -0
- package/umd/five-gltf-loader.js.LICENSE.txt +14 -0
- package/umd/five-line.js +2 -0
- package/umd/five-line.js.LICENSE.txt +14 -0
- package/umd/five-react.js +2 -0
- package/umd/five-react.js.LICENSE.txt +14 -0
- package/umd/five-sticker.js +2 -0
- package/umd/five-sticker.js.LICENSE.txt +14 -0
- package/umd/five.js +2 -0
- package/umd/five.js.LICENSE.txt +116 -0
- package/application/constant.d.ts +0 -6
- package/application/constant.js +0 -1
- package/application/controllers.d.ts +0 -31
- package/application/controllers.js +0 -1
- package/application/events.d.ts +0 -140
- package/application/events.js +0 -1
- package/application/five.d.ts +0 -418
- package/application/five.js +0 -1
- package/application/fiveInitArgs.d.ts +0 -157
- package/application/fiveInitArgs.js +0 -1
- package/application/generateDefaultVideoElement.d.ts +0 -2
- package/application/generateDefaultVideoElement.js +0 -1
- package/application/getViewportScale.d.ts +0 -2
- package/application/getViewportScale.js +0 -1
- package/application/initLights.d.ts +0 -3
- package/application/initLights.js +0 -1
- package/bundles/five.js +0 -2
- package/bundles/five.js.LICENSE.txt +0 -160
- package/controllers/base.d.ts +0 -80
- package/controllers/base.js +0 -1
- package/controllers/depthPanorama.d.ts +0 -40
- package/controllers/depthPanorama.js +0 -1
- package/controllers/events.d.ts +0 -273
- package/controllers/events.js +0 -1
- package/controllers/floorplan.d.ts +0 -102
- package/controllers/floorplan.js +0 -1
- package/controllers/model.d.ts +0 -23
- package/controllers/model.js +0 -1
- package/controllers/panorama.d.ts +0 -69
- package/controllers/panorama.js +0 -1
- package/controllers/panoramaLike.d.ts +0 -88
- package/controllers/panoramaLike.js +0 -1
- package/controllers/topview.d.ts +0 -28
- package/controllers/topview.js +0 -1
- package/controllers/vrPanorama.d.ts +0 -40
- package/controllers/vrPanorama.js +0 -1
- package/core/camera.d.ts +0 -15
- package/core/camera.js +0 -1
- package/core/cubeTexture.d.ts +0 -6
- package/core/cubeTexture.js +0 -1
- package/core/internalWebGLRenderer.d.ts +0 -11
- package/core/internalWebGLRenderer.js +0 -1
- package/core/pbmGroup.d.ts +0 -22
- package/core/pbmGroup.js +0 -1
- package/core/pbmMaterial.d.ts +0 -39
- package/core/pbmMaterial.js +0 -1
- package/core/pbmMesh.d.ts +0 -10
- package/core/pbmMesh.js +0 -1
- package/core/pbmParameters.d.ts +0 -36
- package/core/pbmParameters.js +0 -1
- package/core/scene.d.ts +0 -5
- package/core/scene.js +0 -1
- package/core/subscribe.d.ts +0 -76
- package/core/subscribe.js +0 -1
- package/core/updatableTexture.d.ts +0 -12
- package/core/updatableTexture.js +0 -1
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/index.five.html +0 -2567
- package/docs/classes/index.fivecamera.html +0 -427
- package/docs/classes/index.fiveline.html +0 -458
- package/docs/classes/index.fivescene.html +0 -302
- package/docs/classes/index.internalwebglrenderer.html +0 -316
- package/docs/classes/index.model.html +0 -999
- package/docs/classes/index.pbmgroup.html +0 -531
- package/docs/classes/index.pbmmaterial.html +0 -637
- package/docs/classes/index.pbmmesh.html +0 -358
- package/docs/classes/index.subscribe.html +0 -672
- package/docs/interfaces/index.depthpanoramacontrollercustominitargs.html +0 -524
- package/docs/interfaces/index.fiveeventcallback.html +0 -2568
- package/docs/interfaces/index.fiveinitargs.html +0 -811
- package/docs/interfaces/index.floorplancontrollercustominitargs.html +0 -399
- package/docs/interfaces/index.imageoptions.html +0 -436
- package/docs/interfaces/index.intersection.html +0 -331
- package/docs/interfaces/index.intersectmeshinterface.html +0 -292
- package/docs/interfaces/index.modelcontrollercustominitargs.html +0 -470
- package/docs/interfaces/index.modeleventcallback.html +0 -432
- package/docs/interfaces/index.movepanooptions.html +0 -573
- package/docs/interfaces/index.panocirclemeshinterface.html +0 -465
- package/docs/interfaces/index.panoramacontrollercustominitargs.html +0 -549
- package/docs/interfaces/index.panoramalikecontrollercustominitargs.html +0 -468
- package/docs/interfaces/index.pbmparameters.html +0 -578
- package/docs/interfaces/index.pose.html +0 -374
- package/docs/interfaces/index.scissor.html +0 -356
- package/docs/interfaces/index.state.html +0 -404
- package/docs/interfaces/index.topviewcontrollercustominitargs.html +0 -330
- package/docs/interfaces/index.vrpanoramacontrollercustominitargs.html +0 -536
- package/docs/interfaces/react.fiveactionreactcallbacks.html +0 -530
- package/docs/interfaces/react.injectfivetoprops.html +0 -231
- package/docs/modules/index.html +0 -925
- package/five.js.LICENSE.txt +0 -160
- package/index.d.ts +0 -33
- package/index.js +0 -1
- package/loaders/basis/BasisTextureLoader.d.ts +0 -116
- package/loaders/basis/BasisTextureLoader.js +0 -1
- package/loaders/basis/index.d.ts +0 -3
- package/loaders/basis/index.js +0 -1
- package/loaders/cubeTexture/imagePool.d.ts +0 -7
- package/loaders/cubeTexture/imagePool.js +0 -1
- package/loaders/cubeTexture/index.d.ts +0 -58
- package/loaders/cubeTexture/index.js +0 -1
- package/loaders/depthTexture/index.d.ts +0 -60
- package/loaders/depthTexture/index.js +0 -1
- package/loaders/model/at3d.d.ts +0 -7
- package/loaders/model/at3d.js +0 -1
- package/loaders/model/dome.d.ts +0 -14
- package/loaders/model/dome.js +0 -1
- package/loaders/model/domez.d.ts +0 -7
- package/loaders/model/domez.js +0 -1
- package/loaders/model/index.d.ts +0 -135
- package/loaders/model/index.js +0 -1
- package/loaders/model/pbm.d.ts +0 -27
- package/loaders/model/pbm.js +0 -1
- package/loaders/model/tools/bvhtree/index.d.ts +0 -2
- package/loaders/model/tools/bvhtree/index.js +0 -1
- package/loaders/model/tools/lzma/index.d.ts +0 -2
- package/loaders/model/tools/lzma/index.js +0 -1
- package/loaders/model/tools/lzma/lzma-caller.d.ts +0 -13
- package/loaders/model/tools/lzma/lzma-caller.js +0 -1
- package/loaders/model/tools/lzma/lzma.d.ts +0 -2
- package/loaders/model/tools/lzma/lzma.js +0 -1
- package/loaders/model/tools/lzma/lzmaWorker.d.ts +0 -1
- package/loaders/model/tools/lzma/lzmaWorker.js +0 -1
- package/loaders/tileTexture/index.d.ts +0 -26
- package/loaders/tileTexture/index.js +0 -1
- package/meshes/boundingMesh.d.ts +0 -9
- package/meshes/boundingMesh.js +0 -1
- package/meshes/intersectMesh.d.ts +0 -11
- package/meshes/intersectMesh.js +0 -1
- package/meshes/panoCircleMesh.d.ts +0 -29
- package/meshes/panoCircleMesh.js +0 -1
- package/meshes/panoSphereMesh.d.ts +0 -16
- package/meshes/panoSphereMesh.js +0 -1
- package/objects/line/circle_png.d.ts +0 -1
- package/objects/line/circle_png.js +0 -1
- package/objects/line/index.d.ts +0 -12
- package/objects/line/index.js +0 -1
- package/objects/line/utils/Line2.d.ts +0 -7
- package/objects/line/utils/Line2.js +0 -1
- package/objects/line/utils/LineGeometry.d.ts +0 -10
- package/objects/line/utils/LineGeometry.js +0 -1
- package/objects/line/utils/LineMaterial.d.ts +0 -20
- package/objects/line/utils/LineMaterial.js +0 -1
- package/objects/line/utils/LineSegments2.d.ts +0 -11
- package/objects/line/utils/LineSegments2.js +0 -1
- package/objects/line/utils/LineSegmentsGeometry.d.ts +0 -15
- package/objects/line/utils/LineSegmentsGeometry.js +0 -1
- package/react/canvas.d.ts +0 -19
- package/react/canvas.js +0 -1
- package/react/context.d.ts +0 -9
- package/react/context.js +0 -1
- package/react/createProvider.d.ts +0 -65
- package/react/createProvider.js +0 -1
- package/react/createStore.d.ts +0 -138
- package/react/createStore.js +0 -1
- package/react/hooks/unsafe__useFiveInstance.d.ts +0 -9
- package/react/hooks/unsafe__useFiveInstance.js +0 -1
- package/react/hooks/useFiveAction.d.ts +0 -154
- package/react/hooks/useFiveAction.js +0 -1
- package/react/hooks/useFiveCameraDirection.d.ts +0 -7
- package/react/hooks/useFiveCameraDirection.js +0 -1
- package/react/hooks/useFiveCameraRaycaster.d.ts +0 -7
- package/react/hooks/useFiveCameraRaycaster.js +0 -1
- package/react/hooks/useFiveCurrentState.d.ts +0 -15
- package/react/hooks/useFiveCurrentState.js +0 -1
- package/react/hooks/useFiveEvent.d.ts +0 -12
- package/react/hooks/useFiveEvent.js +0 -1
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +0 -21
- package/react/hooks/useFiveModelIntersectRaycaster.js +0 -1
- package/react/hooks/useFiveModelReadyState.d.ts +0 -8
- package/react/hooks/useFiveModelReadyState.js +0 -1
- package/react/hooks/useFiveProject2d.d.ts +0 -20
- package/react/hooks/useFiveProject2d.js +0 -1
- package/react/hooks/useFiveScene.d.ts +0 -16
- package/react/hooks/useFiveScene.js +0 -1
- package/react/hooks/useFiveState.d.ts +0 -6
- package/react/hooks/useFiveState.js +0 -1
- package/react/hooks/useFiveWork.d.ts +0 -30
- package/react/hooks/useFiveWork.js +0 -1
- package/react/rendererPool.d.ts +0 -8
- package/react/rendererPool.js +0 -1
- package/react/withFive.d.ts +0 -239
- package/react/withFive.js +0 -1
- package/scripts/export-five-resource/chfs.exe +0 -0
- package/scripts/export-five-resource/fileify.js +0 -192
- package/scripts/export-five-resource/format-work.js +0 -71
- package/scripts/export-five-resource/staticify.js +0 -327
- package/scripts/transcode-model/BufferGeometryUtils.js +0 -832
- package/scripts/transcode-model/LoaderSupport.js +0 -1545
- package/scripts/transcode-model/MTLLoader.js +0 -602
- package/scripts/transcode-model/OBJLoader2.js +0 -1470
- package/scripts/transcode-model/obj2pbm.js +0 -65
- package/server/core/pbmGroup.d.ts +0 -11
- package/server/core/pbmGroup.js +0 -1
- package/server/core/pbmMesh.d.ts +0 -9
- package/server/core/pbmMesh.js +0 -1
- package/server/model/at3d.d.ts +0 -5
- package/server/model/at3d.js +0 -1
- package/server/model/dome.d.ts +0 -11
- package/server/model/dome.js +0 -1
- package/server/model/domez.d.ts +0 -5
- package/server/model/domez.js +0 -1
- package/server/model/index.d.ts +0 -134
- package/server/model/index.js +0 -1
- package/server/model/pbm.d.ts +0 -24
- package/server/model/pbm.js +0 -1
- package/server/model/tools/bvhtree/index.d.ts +0 -2
- package/server/model/tools/bvhtree/index.js +0 -1
- package/server/model/tools/fetchArraybuffer.d.ts +0 -2
- package/server/model/tools/fetchArraybuffer.js +0 -1
- package/server/model/tools/lzma/index.d.ts +0 -2
- package/server/model/tools/lzma/index.js +0 -1
- package/server/model/tools/lzma/lzma.d.ts +0 -2
- package/server/model/tools/lzma/lzma.js +0 -1
- package/shaders/depth/fragment.d.ts +0 -2
- package/shaders/depth/fragment.js +0 -1
- package/shaders/depth/vertex.d.ts +0 -2
- package/shaders/depth/vertex.js +0 -1
- package/shaders/pbm/fragment.d.ts +0 -2
- package/shaders/pbm/fragment.js +0 -1
- package/shaders/pbm/vertex.d.ts +0 -2
- package/shaders/pbm/vertex.js +0 -1
- package/three-version-check.d.ts +0 -1
- package/three-version-check.js +0 -1
- package/types/imageOptions.d.ts +0 -24
- package/types/imageOptions.js +0 -1
- package/types/mode.d.ts +0 -23
- package/types/mode.js +0 -1
- package/types/movePanoOptions.d.ts +0 -40
- package/types/movePanoOptions.js +0 -1
- package/types/plugin.d.ts +0 -26
- package/types/plugin.js +0 -1
- package/types/pose.d.ts +0 -16
- package/types/pose.js +0 -1
- package/types/scissor.d.ts +0 -18
- package/types/scissor.js +0 -1
- package/types/state.d.ts +0 -18
- package/types/state.js +0 -1
- package/utils/BufferGeometryUtils.d.ts +0 -31
- package/utils/BufferGeometryUtils.js +0 -1
- package/utils/ajax.d.ts +0 -13
- package/utils/ajax.js +0 -1
- package/utils/animationFrame.d.ts +0 -24
- package/utils/animationFrame.js +0 -1
- package/utils/arrayMax.d.ts +0 -10
- package/utils/arrayMax.js +0 -1
- package/utils/arrayMin.d.ts +0 -11
- package/utils/arrayMin.js +0 -1
- package/utils/busy.d.ts +0 -13
- package/utils/busy.js +0 -1
- package/utils/calculateProgress.d.ts +0 -37
- package/utils/calculateProgress.js +0 -1
- package/utils/calculateThreeMouse.d.ts +0 -13
- package/utils/calculateThreeMouse.js +0 -1
- package/utils/cameraWorldToLocal.d.ts +0 -13
- package/utils/cameraWorldToLocal.js +0 -1
- package/utils/coordinatesToVector.d.ts +0 -7
- package/utils/coordinatesToVector.js +0 -1
- package/utils/createImage.d.ts +0 -2
- package/utils/createImage.js +0 -1
- package/utils/detector.d.ts +0 -13
- package/utils/detector.js +0 -1
- package/utils/formatRad.d.ts +0 -7
- package/utils/formatRad.js +0 -1
- package/utils/headingToLongitude.d.ts +0 -6
- package/utils/headingToLongitude.js +0 -1
- package/utils/imageLoader.d.ts +0 -10
- package/utils/imageLoader.js +0 -1
- package/utils/imageURL.d.ts +0 -9
- package/utils/imageURL.js +0 -1
- package/utils/isAbsoluteURL.d.ts +0 -6
- package/utils/isAbsoluteURL.js +0 -1
- package/utils/isNil.d.ts +0 -6
- package/utils/isNil.js +0 -1
- package/utils/longitudeToHeading.d.ts +0 -6
- package/utils/longitudeToHeading.js +0 -1
- package/utils/mouseWheel.d.ts +0 -17
- package/utils/mouseWheel.js +0 -1
- package/utils/noop.d.ts +0 -6
- package/utils/noop.js +0 -1
- package/utils/now.d.ts +0 -5
- package/utils/now.js +0 -1
- package/utils/preload.d.ts +0 -5
- package/utils/preload.js +0 -1
- package/utils/tween.d.ts +0 -88
- package/utils/tween.js +0 -1
- package/utils/uuid.d.ts +0 -5
- package/utils/uuid.js +0 -1
- package/utils/vectorTocoordinates.d.ts +0 -7
- package/utils/vectorTocoordinates.js +0 -1
- package/utils/webglError.d.ts +0 -7
- package/utils/webglError.js +0 -1
- package/webvr/helper.img.d.ts +0 -1
- package/webvr/helper.img.js +0 -1
- package/webvr/vrEffect.d.ts +0 -13
- package/webvr/vrEffect.js +0 -1
- package/work/index.d.ts +0 -5
- package/work/index.js +0 -1
- package/work/looseWorkType.d.ts +0 -61
- package/work/looseWorkType.js +0 -1
- package/work/parse.d.ts +0 -4
- package/work/parse.js +0 -1
- package/work/stringify.d.ts +0 -4
- package/work/stringify.js +0 -1
- package/work/workType.d.ts +0 -49
- package/work/workType.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PBMGroup | 如视 Five SDK - v5.0.0-alpha.110</title><meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.110"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.110</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">如视 Five SDK - v5.0.0-alpha.110</a></li><li><a href="../modules/server.html">server</a></li><li><a href="server.PBMGroup.html">PBMGroup</a></li></ul><h1>Class PBMGroup</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>PBM 模型组</p>
|
|
3
|
+
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">Group</span><ul class="tsd-hierarchy"><li><span class="target">PBMGroup</span><ul class="tsd-hierarchy"><li><a href="server.Model.html" class="tsd-signature-type" data-tsd-kind="Class">Model</a></li></ul></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section tsd-is-inherited"><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="server.PBMGroup.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMGroup.html#floorIndex" class="tsd-kind-icon">floor<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMGroup.html#needsRender" class="tsd-kind-icon">needs<wbr/>Render</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="server.PBMGroup.html#disposeGeometry" class="tsd-kind-icon">dispose<wbr/>Geometry</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group tsd-is-inherited"><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">new PBMGroup<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="server.PBMGroup.html" class="tsd-signature-type" data-tsd-kind="Class">PBMGroup</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from THREE.Group.constructor</p><ul><li>Defined in node_modules/three/src/objects/Group.d.ts:5</li></ul></aside><h4 class="tsd-returns-title">Returns <a href="server.PBMGroup.html" class="tsd-signature-type" data-tsd-kind="Class">PBMGroup</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="floorIndex" class="tsd-anchor"></a><h3>floor<wbr/>Index</h3><div class="tsd-signature tsd-kind-icon">floor<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/server/core/pbmGroup.ts:8</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>楼层序号</p>
|
|
5
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="needsRender" class="tsd-anchor"></a><h3>needs<wbr/>Render</h3><div class="tsd-signature tsd-kind-icon">needs<wbr/>Render<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/server/core/pbmGroup.ts:11</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
+
<p>是否需要更新按需渲染</p>
|
|
7
|
+
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="disposeGeometry" class="tsd-anchor"></a><h3>dispose<wbr/>Geometry</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">dispose<wbr/>Geometry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/server/core/pbmGroup.ts:14</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
+
<p>析构模型网格</p>
|
|
9
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="../modules/five.html">five</a></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class="current tsd-kind-module"><a href="../modules/server.html">server</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-module"><a href="server.PBMGroup.html" class="tsd-kind-icon">PBMGroup</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="server.PBMGroup.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMGroup.html#floorIndex" class="tsd-kind-icon">floor<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMGroup.html#needsRender" class="tsd-kind-icon">needs<wbr/>Render</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="server.PBMGroup.html#disposeGeometry" class="tsd-kind-icon">dispose<wbr/>Geometry</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li><li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li><li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PBMMesh | 如视 Five SDK - v5.0.0-alpha.110</title><meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.110"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.110</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">如视 Five SDK - v5.0.0-alpha.110</a></li><li><a href="../modules/server.html">server</a></li><li><a href="server.PBMMesh.html">PBMMesh</a></li></ul><h1>Class PBMMesh</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>PBM 对象</p>
|
|
3
|
+
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">Mesh</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">THREE.BufferGeometry</span><span class="tsd-signature-symbol">></span><ul class="tsd-hierarchy"><li><span class="target">PBMMesh</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section tsd-is-inherited"><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="server.PBMMesh.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMMesh.html#floorIndex" class="tsd-kind-icon">floor<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMMesh.html#needsRender" class="tsd-kind-icon">needs<wbr/>Render</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group tsd-is-inherited"><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">new PBMMesh<span class="tsd-signature-symbol">(</span>geometry<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">BufferGeometry</span>, material<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Material</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Material</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="server.PBMMesh.html" class="tsd-signature-type" data-tsd-kind="Class">PBMMesh</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from THREE.Mesh<THREE.BufferGeometry>.constructor</p><ul><li>Defined in node_modules/three/src/objects/Mesh.d.ts:13</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> geometry: <span class="tsd-signature-type">BufferGeometry</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> material: <span class="tsd-signature-type">Material</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Material</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="server.PBMMesh.html" class="tsd-signature-type" data-tsd-kind="Class">PBMMesh</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="floorIndex" class="tsd-anchor"></a><h3>floor<wbr/>Index</h3><div class="tsd-signature tsd-kind-icon">floor<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/server/core/pbmMesh.ts:6</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>楼层序号</p>
|
|
5
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="needsRender" class="tsd-anchor"></a><h3>needs<wbr/>Render</h3><div class="tsd-signature tsd-kind-icon">needs<wbr/>Render<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/server/core/pbmMesh.ts:8</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
+
<p>是否需要更新按需渲染</p>
|
|
7
|
+
</div></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="../modules/five.html">five</a></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class="current tsd-kind-module"><a href="../modules/server.html">server</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-module"><a href="server.PBMMesh.html" class="tsd-kind-icon">PBMMesh</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="server.PBMMesh.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMMesh.html#floorIndex" class="tsd-kind-icon">floor<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="server.PBMMesh.html#needsRender" class="tsd-kind-icon">needs<wbr/>Render</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li><li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li><li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Sticker | 如视 Five SDK - v5.0.0-alpha.110</title><meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.110"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.110</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">如视 Five SDK - v5.0.0-alpha.110</a></li><li><a href="../modules/sticker.html">sticker</a></li><li><a href="sticker.Sticker.html">Sticker</a></li></ul><h1>Class Sticker</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>贴纸</p>
|
|
3
|
+
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">Mesh</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">THREE.BufferGeometry</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">THREE.MeshBasicMaterial</span><span class="tsd-signature-symbol">></span><ul class="tsd-hierarchy"><li><span class="target">Sticker</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="sticker.Sticker.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Accessors</h3><ul class="tsd-index-list"><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="sticker.Sticker.html#needsRender" class="tsd-kind-icon">needs<wbr/>Render</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#locationWithIntersection" class="tsd-kind-icon">location<wbr/>With<wbr/>Intersection</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#setSize" class="tsd-kind-icon">set<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#setTransparent" class="tsd-kind-icon">set<wbr/>Transparent</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Sticker<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, resource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLImageElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLCanvasElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLVideoElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="sticker.Sticker.html" class="tsd-signature-type" data-tsd-kind="Class">Sticker</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides THREE.Mesh<THREE.BufferGeometry, THREE.MeshBasicMaterial>.constructor</p><ul><li>Defined in lib/sticker/index.ts:101</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>贴纸</p>
|
|
5
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>默认加载时, 透明图根据图片类型,如果是 png 默认透明,其他为不透明,且不支持 gif 动画。</p>
|
|
6
|
+
</dd><dt>example</dt><dd><pre><code><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">resource</span><span class="hl-0"> = </span><span class="hl-3">"http://vrlab-public.ljcdn.com/release/static/image/release/five/demo/sticker/kagami.jpg"</span><span class="hl-0">;</span><br/><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-5">on</span><span class="hl-0">(</span><span class="hl-3">"wantsTapGesture"</span><span class="hl-0">, </span><span class="hl-2">raycaster</span><span class="hl-0"> </span><span class="hl-7">=></span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-7">const</span><span class="hl-0"> [</span><span class="hl-6">intersection</span><span class="hl-0">] = </span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-2">model</span><span class="hl-0">.</span><span class="hl-5">intersectRaycaster</span><span class="hl-0">(</span><span class="hl-2">raycaster</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-1">if</span><span class="hl-0"> (</span><span class="hl-2">intersection</span><span class="hl-0">) {</span><br/><span class="hl-0"> </span><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">sticker</span><span class="hl-0"> = </span><span class="hl-7">new</span><span class="hl-0"> </span><span class="hl-5">Sticker</span><span class="hl-0">(</span><span class="hl-13">1</span><span class="hl-0">, </span><span class="hl-13">1</span><span class="hl-0">, </span><span class="hl-2">resource</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-2">scene</span><span class="hl-0">.</span><span class="hl-5">add</span><span class="hl-0">(</span><span class="hl-2">sticker</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-2">sticker</span><span class="hl-0">.</span><span class="hl-5">locationWithIntersection</span><span class="hl-0">(</span><span class="hl-2">intersection</span><span class="hl-0">);</span><br/><span class="hl-0"> }</span><br/><span class="hl-0"> </span><span class="hl-1">return</span><span class="hl-0"> </span><span class="hl-7">false</span><span class="hl-0">;</span><br/><span class="hl-0">});</span>
|
|
7
|
+
</code></pre>
|
|
8
|
+
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>width: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
9
|
+
<p>贴纸长</p>
|
|
10
|
+
</div></div></li><li><h5>height: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
11
|
+
<p>贴纸宽</p>
|
|
12
|
+
</div></div></li><li><h5>resource: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLImageElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLCanvasElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLVideoElement</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
13
|
+
<p>贴纸图片地址 或者 image / canvas / video 标签</p>
|
|
14
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="sticker.Sticker.html" class="tsd-signature-type" data-tsd-kind="Class">Sticker</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Accessors</h2><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="needsRender" class="tsd-anchor"></a><h3>needs<wbr/>Render</h3><ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> needsRender<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> needsRender<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/sticker/index.ts:146</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/sticker/index.ts:150</li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="dispose" class="tsd-anchor"></a><h3>dispose</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/sticker/index.ts:196</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
15
|
+
<p>资源回收</p>
|
|
16
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="locationWithIntersection" class="tsd-anchor"></a><h3>location<wbr/>With<wbr/>Intersection</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">location<wbr/>With<wbr/>Intersection<span class="tsd-signature-symbol">(</span>intersection<span class="tsd-signature-symbol">: </span><a href="../interfaces/sticker.IntersectionLike.html" class="tsd-signature-type" data-tsd-kind="Interface">IntersectionLike</a>, offset<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/sticker/index.ts:183</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
17
|
+
<p>通过焦点快捷设置贴纸位置</p>
|
|
18
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>intersection: <a href="../interfaces/sticker.IntersectionLike.html" class="tsd-signature-type" data-tsd-kind="Interface">IntersectionLike</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
19
|
+
<p>焦点</p>
|
|
20
|
+
</div></div></li><li><h5>offset: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0.005</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
21
|
+
<p>位置值(已通过焦点面的法线位移一定值,防止重叠)</p>
|
|
22
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setSize" class="tsd-anchor"></a><h3>set<wbr/>Size</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Size<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/sticker/index.ts:164</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
23
|
+
<p>设置贴纸大小</p>
|
|
24
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>width: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
25
|
+
<p>贴纸长</p>
|
|
26
|
+
</div></div></li><li><h5>height: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
27
|
+
<p>贴纸宽</p>
|
|
28
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setTransparent" class="tsd-anchor"></a><h3>set<wbr/>Transparent</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Transparent<span class="tsd-signature-symbol">(</span>transparent<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/sticker/index.ts:173</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
29
|
+
<p>设置贴纸背景是否透明</p>
|
|
30
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>transparent: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
31
|
+
<p>是否透明</p>
|
|
32
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="../modules/five.html">five</a></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="../modules/server.html">server</a></li><li class="current tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-module"><a href="sticker.Sticker.html" class="tsd-kind-icon">Sticker</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="sticker.Sticker.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="sticker.Sticker.html#needsRender" class="tsd-kind-icon">needs<wbr/>Render</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#dispose" class="tsd-kind-icon">dispose</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#locationWithIntersection" class="tsd-kind-icon">location<wbr/>With<wbr/>Intersection</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#setSize" class="tsd-kind-icon">set<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="sticker.Sticker.html#setTransparent" class="tsd-kind-icon">set<wbr/>Transparent</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li><li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li><li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|