@realsee/five 5.0.0-alpha.11 → 5.0.0-alpha.112
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 +1413 -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 +20 -18
- 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
package/README.md
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
# Five
|
|
1
|
+
# Five.js
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@realsee/five)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
贝壳如视三维渲染框架
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 什么是**Five**
|
|
8
8
|
|
|
9
|
-
Five
|
|
9
|
+
**Five**是 [贝壳如视(realsee.com)](https://realsee.com) 提供的在浏览器中运行的三维空间渲染 Javascript SDK。您可以通过[如视开发者中心](https://developers.realsee.com)的数据服务,并结合**Five**,制作丰富多彩的三维空间应用。
|
|
10
10
|
|
|
11
|
-
Five
|
|
11
|
+
并且**Five**提供了一系列的方法、事件、生命周期函数。您可以方便地基于**Five**进行二次开发,并结合到您自身的项目中,为您的项目添砖加瓦。
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
**Five**通过 [TypeScript](https://www.typescriptlang.org/) 编写,保证开发的质量以及编程体验,推荐通过 [Visual Studio Code](https://code.visualstudio.com)、[WebStorm](https://www.jetbrains.com/webstorm/) 等现代源代码编辑器,您将可以体验到友好的代码提示以及自动补全。
|
|
14
14
|
|
|
15
|
-
Five
|
|
15
|
+
**Five**还提供了完善的 [React Hooks API](https://reactjs.org/docs/hooks-intro.html) ,可以方便的通过 [React](https://reactjs.org) 开发复杂的响应式数据应用。当然直接使用**Five**开发也是没有问题的。
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## 安装**Five**
|
|
18
|
+
|
|
19
|
+
**Five**提供通过 [npm](https://www.npmjs.com) 的方式安装。**Five**基于 [Three.js](https://threejs.org), 所以同时您需要安装相关依赖。
|
|
20
|
+
|
|
21
|
+
目前依赖的**three**版本为 115 ~ 117 的版本
|
|
18
22
|
|
|
19
23
|
```shell
|
|
20
|
-
npm install @realsee/five
|
|
24
|
+
npm install @realsee/five three@0.117.1
|
|
21
25
|
```
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
如果您使用**React Hooks API**,那么也请同时安装**React**的相关依赖。
|
|
24
28
|
|
|
25
29
|
```shell
|
|
26
|
-
npm install @realsee/five
|
|
30
|
+
npm install @realsee/five three@0.117.1 react react-dom @types/react @types/react-dom
|
|
27
31
|
```
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
接下来便可以在您的项目使用**Five**了。
|
|
30
34
|
|
|
31
35
|
```typescript
|
|
32
36
|
import { Five } from "@realsee/five";
|
|
@@ -35,24 +39,30 @@ import { useFiveState } from "@realsee/five/react";
|
|
|
35
39
|
|
|
36
40
|
```
|
|
37
41
|
|
|
42
|
+
## 浏览器兼容性
|
|
43
|
+
|
|
44
|
+
| Safari | Safari on iOS | Chrome | Chrome for Android | Edge | Firefox |
|
|
45
|
+
|:------:|:-------------:|--------:|:------------------:|:----:|:-------:|
|
|
46
|
+
| >= 9 | >= 9 | >= 49 | >= 93 | >= 13| >= 45 |
|
|
47
|
+
|
|
38
48
|
## 快速上手
|
|
39
49
|
|
|
40
|
-
Five
|
|
50
|
+
**Five**提供了快速上手体验的项目生成工具,您可以通过他熟悉**Five**的功能以及尝试基于**Five**开发功能。
|
|
41
51
|
|
|
42
52
|
|
|
43
|
-
1.
|
|
53
|
+
1. 先创建一个文件夹`five-quick-start`, 作为项目根目录并且使用 `npm init` 命令初始化一个工程。
|
|
44
54
|
|
|
45
55
|
```shell
|
|
46
56
|
mkdir five-quick-start && cd five-quick-start && npm init -y
|
|
47
57
|
```
|
|
48
58
|
|
|
49
|
-
2.
|
|
59
|
+
2. 安装**Five**
|
|
50
60
|
|
|
51
61
|
```shell
|
|
52
|
-
npm install @realsee/five
|
|
62
|
+
npm install @realsee/five
|
|
53
63
|
```
|
|
54
64
|
|
|
55
|
-
3.
|
|
65
|
+
3. 通过**Five**的内置的`five-quick-start-init`脚本来快速补完当前项目
|
|
56
66
|
|
|
57
67
|
```shell
|
|
58
68
|
npx five-quick-start-init
|
|
@@ -74,7 +84,7 @@ npx five-quick-start-init
|
|
|
74
84
|
└── webpack.production.js webpack 生产配置
|
|
75
85
|
```
|
|
76
86
|
|
|
77
|
-
|
|
87
|
+
通**npm script**运行测试环境
|
|
78
88
|
|
|
79
89
|
```shell
|
|
80
90
|
npm run dev
|
|
@@ -82,15 +92,15 @@ npm run dev
|
|
|
82
92
|
|
|
83
93
|
默认将会在 `port: 3000` 开启 `webpack dev server`。您也可以在 `webpack.config.js` 中修改配置。
|
|
84
94
|
|
|
85
|
-
4. 现在可以打来浏览器 `http://0.0.0.0:3000`
|
|
95
|
+
4. 现在可以打来浏览器 `http://0.0.0.0:3000` 来看看项目初始化的效果了。您可以修改代码来体验一下如何使用**Five**来二次开发。
|
|
86
96
|
|
|
87
97
|
|
|
88
98
|
|
|
89
|
-
##
|
|
99
|
+
## 如何使用**Five**
|
|
90
100
|
|
|
91
|
-
Five
|
|
101
|
+
**Five**的简单使用样例:
|
|
92
102
|
|
|
93
|
-
```
|
|
103
|
+
```ts
|
|
94
104
|
import { Five } from "@realsee/five";
|
|
95
105
|
|
|
96
106
|
// 构造函数的具体参数见文档
|
|
@@ -103,7 +113,7 @@ five.appendTo(document.getElementById('app')!);
|
|
|
103
113
|
window.addEventListener('resize', () => five.refresh());
|
|
104
114
|
|
|
105
115
|
// 获取三维空间的 Work 数据,加载进来
|
|
106
|
-
// Work
|
|
116
|
+
// Work 数据可以通过如视开发者中心获取
|
|
107
117
|
fetch(`./work.json`)
|
|
108
118
|
.then(res => res.json())
|
|
109
119
|
.then(work => five.load(work));
|
|
@@ -112,15 +122,15 @@ fetch(`./work.json`)
|
|
|
112
122
|
其他的 Five API 待补充
|
|
113
123
|
|
|
114
124
|
|
|
115
|
-
##
|
|
125
|
+
## 在**React**框架中使用**Five**
|
|
116
126
|
|
|
117
|
-
|
|
127
|
+
在**React**框架中使用**Five**的简单使用样例:
|
|
118
128
|
|
|
119
|
-
```
|
|
129
|
+
```tsx
|
|
120
130
|
import * as React from "react";
|
|
121
131
|
import * as ReactDOM from "react-dom";
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
132
|
+
import {Five, Work, parseWork} from "@realsee/five";
|
|
133
|
+
import {createFiveProvider, FiveCanvas} from "@realsee/five/react";
|
|
124
134
|
|
|
125
135
|
// 创建 Provider, 参数与 new Five 参数类似
|
|
126
136
|
// 构造函数的具体参数见文档
|
|
@@ -140,8 +150,8 @@ const App: React.FC = () => {
|
|
|
140
150
|
// 获取三维空间的 Work 数据,加载进来
|
|
141
151
|
const loadWork = React.useCallback((url: string) => {
|
|
142
152
|
fetch(url)
|
|
143
|
-
|
|
144
|
-
|
|
153
|
+
.then(res => res.json())
|
|
154
|
+
.then(data => setWork(parseWork(data)));
|
|
145
155
|
}, []);
|
|
146
156
|
|
|
147
157
|
React.useEffect(() => {
|
|
@@ -166,15 +176,15 @@ const App: React.FC = () => {
|
|
|
166
176
|
在他内部的组件可以使用 Five React Hook API 来获取/设置/操作 他
|
|
167
177
|
一个页面中也可以有多个 FiveProvider
|
|
168
178
|
*/}
|
|
169
|
-
return <FiveProvider
|
|
179
|
+
return <FiveProvider initialWork={work}>
|
|
170
180
|
{/*
|
|
171
181
|
将渲染视图的 canvas 添加到 DOM 中
|
|
172
182
|
FiveCanvas 需要出现在 FiveProvider 内,他将渲染 FiveProvider 的视图
|
|
173
183
|
这样的设计可以实现不同的 DOM 层级结构
|
|
174
184
|
在 FiveProvider 内的其他组件也可以使用 Five React Hook API 来获取/设置/操作 他外部的 FiveProvider
|
|
175
185
|
*/}
|
|
176
|
-
<FiveCanvas width={size.width} height={size.height}
|
|
177
|
-
</
|
|
186
|
+
<FiveCanvas width={size.width} height={size.height}/>
|
|
187
|
+
</FiveProvider>
|
|
178
188
|
}
|
|
179
189
|
return null;
|
|
180
190
|
}
|
|
@@ -182,24 +192,24 @@ const App: React.FC = () => {
|
|
|
182
192
|
ReactDOM.render(<App></App>, document.getElementById("app"));
|
|
183
193
|
```
|
|
184
194
|
|
|
185
|
-
|
|
195
|
+
其他的**Five React Hook API**文档建设中...
|
|
186
196
|
|
|
187
|
-
## Five API
|
|
197
|
+
## **Five API**文档
|
|
188
198
|
|
|
189
|
-
欢迎查看 [Five API 文档](
|
|
199
|
+
欢迎查看 [Five API 文档](https://unpkg.com/@realsee/five/docs/index.html) 。
|
|
190
200
|
|
|
191
|
-
该文档由 typedoc 生成,您可以详细查看 api 使用方式,调用参数,数据结构。
|
|
201
|
+
该文档由 [TypeDoc](https://typedoc.org/) 生成,您可以详细查看 api 使用方式,调用参数,数据结构。
|
|
192
202
|
|
|
193
203
|
## 相关名词解释
|
|
194
204
|
|
|
195
|
-
###
|
|
205
|
+
### 什么是**Work**
|
|
196
206
|
|
|
197
|
-
Work
|
|
198
|
-
是通过如视硬件设备([如视扫描仪](https://realsee.com/website/product/hardware)、[
|
|
207
|
+
**Work**是[如视开发者中心](https://developers.realsee.com) 提供的对于一个三维空间的描述。
|
|
208
|
+
是通过如视硬件设备([如视扫描仪](https://realsee.com/website/product/hardware) 、[如视**Lite**全景相机](https://realsee.com/website/product/lite) 、[如视VR App](https://realsee.com/website/mobile) )扫描并处理之后用于三维空间展示的数据。
|
|
199
209
|
|
|
200
|
-
Work
|
|
210
|
+
**Work**以`JSON`作为数据格式**Five**框架可以解析**Work**数据并展示。一个**Five**实例每次可以载入并展示一个**Work**。并且也可以在不同的**Work**之间动态切换。
|
|
201
211
|
|
|
202
|
-
Work
|
|
212
|
+
**Work**的数据样例如下
|
|
203
213
|
|
|
204
214
|
```json
|
|
205
215
|
{
|
|
@@ -293,24 +303,24 @@ Work 的数据样例如下
|
|
|
293
303
|
}
|
|
294
304
|
```
|
|
295
305
|
|
|
296
|
-
Work
|
|
306
|
+
Work 的数据说明
|
|
297
307
|
|
|
298
|
-
- initial
|
|
308
|
+
- `initial`: 初始化数据,是一个 `State` 数据。描述**Work**被加载初始状态的位姿,也叫做VR的初始视角
|
|
299
309
|
- mode: 模态
|
|
300
310
|
- pano_index: 初始化点位
|
|
301
311
|
- longitude: 相机的水平角
|
|
302
312
|
- latitude: 相机的偏航角
|
|
303
313
|
- fov: 相机垂直方向的可视角度
|
|
304
314
|
|
|
305
|
-
- model
|
|
315
|
+
- `model`: 三维模型
|
|
306
316
|
- file_url: 三维模型的资源地址,文件为 `.at3d` 为如视定制的模型格式
|
|
307
317
|
- material_textures: 三维模型的贴图资源地址
|
|
308
318
|
|
|
309
|
-
- panorama
|
|
319
|
+
- `panorama`: 全景彩色信息
|
|
310
320
|
- list:
|
|
311
321
|
- up / down / left / right / front / back: 全景彩色信息以 [cubemap](https://en.wikipedia.org/wiki/Cube_mapping) 方式存储和使用。
|
|
312
322
|
|
|
313
|
-
- observers
|
|
323
|
+
- `observers`: 采集点信息
|
|
314
324
|
- visible_nodes: 采集点之间的可见性列表
|
|
315
325
|
- accessible_nodes: 采集点之间的连通性列表
|
|
316
326
|
- quaternion: 采集点与模型坐标的旋转偏移量
|
|
@@ -318,12 +328,12 @@ Work 的数据说明:
|
|
|
318
328
|
- position: 采集点坐标
|
|
319
329
|
- floor_index: 采集点楼层
|
|
320
330
|
|
|
321
|
-
### 什么是 State
|
|
331
|
+
### 什么是 Five State
|
|
322
332
|
|
|
323
|
-
State
|
|
324
|
-
|
|
333
|
+
**State**是**Five**框架用于描述状态的数据结构。他包含了模态、位于的采集点位、相机的方向、相机可视角度的信息。
|
|
334
|
+
您可以使用**State**来操作**Five**或者获取**Five**当前的状态。
|
|
325
335
|
|
|
326
|
-
```
|
|
336
|
+
```ts
|
|
327
337
|
interface State {
|
|
328
338
|
"mode": Five.Mode,
|
|
329
339
|
"panoIndex": number,
|
|
@@ -333,18 +343,20 @@ interface State {
|
|
|
333
343
|
}
|
|
334
344
|
```
|
|
335
345
|
|
|
336
|
-
State
|
|
346
|
+
**State**的数据描述
|
|
347
|
+
|
|
348
|
+
- `mode`: 当前的模态
|
|
349
|
+
Five 常用有 5 种模态,可以使用 `Five.Mode` 获得
|
|
350
|
+
- Panorama: 全景游走模态,该模态下视图将在采集点间游走,手势操作可以旋转/放大视角/切换采集点,适合查看采集的全景信息。
|
|
351
|
+
- Floorplan: 空间总览模态, 该模态下视图以模型为中心,手势操作可以旋转/放大模型/切换楼层,适合查看模型的整体效果。
|
|
352
|
+
- Topview: 户型图模态,该模态下视图以模型为中心,垂直俯视模型,手势操作可以平移/放大模型/切换楼层,适合查看模型平面结构。
|
|
353
|
+
- Model: 模型游走模态,该模态下视图将在模型中自由游走,手势操作可以旋转/放大视角/位移,适合查看模型的细节,做一些定位操作。
|
|
354
|
+
- VRPanorama: VR 眼镜模态,该模态下可以使用 [Cardboard 眼镜](https://arvr.google.com/cardboard/) 或者他的第三方衍生产品,实现 VR 虚拟显示效果。
|
|
355
|
+
|
|
356
|
+
- `panoIndex`: 采集点位
|
|
337
357
|
|
|
338
|
-
-
|
|
339
|
-
Five 有 5 种模态,可以使用 `Five.Mode` 获得
|
|
340
|
-
- Floorplan: 模型查看模式, 该模式下视图以模型为中心,手势操作可以旋转/放大模型/切换楼层,适合查看模型的整体效果。
|
|
341
|
-
- Topview: 户型图模式,该模式下视图以模型为中心,垂直俯视模型,手势操作可以平移/放大模型/切换楼层,适合查看模型平面结构。
|
|
342
|
-
- Panorama: 全景图游走模式,该模式下视图将在采集点间游走,手势操作可以旋转/放大视角/切换采集点,适合查看采集的全景信息。
|
|
343
|
-
- Model: 模型游走模式,该模式下视图将在模型中自由游走,手势操作可以旋转/放大视角/位移,适合查看模型的细节,做一些定位操作。
|
|
344
|
-
- VRPanorama: VR 眼镜模式,该模式下可以使用 [Cardboard 眼镜](https://arvr.google.com/cardboard/) 或者他的第三方衍生产品,实现 VR 虚拟显示效果。
|
|
358
|
+
- `longitude` / `latitude`: 相机的水平角 / 相机的偏航角(弧度),我们使用类似经纬度的方式描述相机位置。
|
|
345
359
|
|
|
346
|
-
-
|
|
360
|
+
- `fov`: 相机垂直方向的可视角度 (角度)
|
|
347
361
|
|
|
348
|
-
- longitude / latitude: 相机的水平角 / 相机的偏航角(弧度),我们使用类似经纬度的方式描述相机位置。
|
|
349
362
|
|
|
350
|
-
- fov: 相机垂直方向的可视角度 (角度)
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #000000;
|
|
3
|
+
--dark-hl-0: #D4D4D4;
|
|
4
|
+
--light-hl-1: #AF00DB;
|
|
5
|
+
--dark-hl-1: #C586C0;
|
|
6
|
+
--light-hl-2: #001080;
|
|
7
|
+
--dark-hl-2: #9CDCFE;
|
|
8
|
+
--light-hl-3: #A31515;
|
|
9
|
+
--dark-hl-3: #CE9178;
|
|
10
|
+
--light-hl-4: #008000;
|
|
11
|
+
--dark-hl-4: #6A9955;
|
|
12
|
+
--light-hl-5: #795E26;
|
|
13
|
+
--dark-hl-5: #DCDCAA;
|
|
14
|
+
--light-hl-6: #0070C1;
|
|
15
|
+
--dark-hl-6: #4FC1FF;
|
|
16
|
+
--light-hl-7: #0000FF;
|
|
17
|
+
--dark-hl-7: #569CD6;
|
|
18
|
+
--light-hl-8: #267F99;
|
|
19
|
+
--dark-hl-8: #4EC9B0;
|
|
20
|
+
--light-hl-9: #800000;
|
|
21
|
+
--dark-hl-9: #808080;
|
|
22
|
+
--light-hl-10: #FF0000;
|
|
23
|
+
--dark-hl-10: #9CDCFE;
|
|
24
|
+
--light-hl-11: #000000FF;
|
|
25
|
+
--dark-hl-11: #D4D4D4;
|
|
26
|
+
--light-hl-12: #0451A5;
|
|
27
|
+
--dark-hl-12: #9CDCFE;
|
|
28
|
+
--light-hl-13: #098658;
|
|
29
|
+
--dark-hl-13: #B5CEA8;
|
|
30
|
+
--light-hl-14: #EE0000;
|
|
31
|
+
--dark-hl-14: #D7BA7D;
|
|
32
|
+
--light-hl-15: #000000;
|
|
33
|
+
--dark-hl-15: #C8C8C8;
|
|
34
|
+
--light-code-background: #F5F5F5;
|
|
35
|
+
--dark-code-background: #1E1E1E;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (prefers-color-scheme: light) { :root {
|
|
39
|
+
--hl-0: var(--light-hl-0);
|
|
40
|
+
--hl-1: var(--light-hl-1);
|
|
41
|
+
--hl-2: var(--light-hl-2);
|
|
42
|
+
--hl-3: var(--light-hl-3);
|
|
43
|
+
--hl-4: var(--light-hl-4);
|
|
44
|
+
--hl-5: var(--light-hl-5);
|
|
45
|
+
--hl-6: var(--light-hl-6);
|
|
46
|
+
--hl-7: var(--light-hl-7);
|
|
47
|
+
--hl-8: var(--light-hl-8);
|
|
48
|
+
--hl-9: var(--light-hl-9);
|
|
49
|
+
--hl-10: var(--light-hl-10);
|
|
50
|
+
--hl-11: var(--light-hl-11);
|
|
51
|
+
--hl-12: var(--light-hl-12);
|
|
52
|
+
--hl-13: var(--light-hl-13);
|
|
53
|
+
--hl-14: var(--light-hl-14);
|
|
54
|
+
--hl-15: var(--light-hl-15);
|
|
55
|
+
--code-background: var(--light-code-background);
|
|
56
|
+
} }
|
|
57
|
+
|
|
58
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
59
|
+
--hl-0: var(--dark-hl-0);
|
|
60
|
+
--hl-1: var(--dark-hl-1);
|
|
61
|
+
--hl-2: var(--dark-hl-2);
|
|
62
|
+
--hl-3: var(--dark-hl-3);
|
|
63
|
+
--hl-4: var(--dark-hl-4);
|
|
64
|
+
--hl-5: var(--dark-hl-5);
|
|
65
|
+
--hl-6: var(--dark-hl-6);
|
|
66
|
+
--hl-7: var(--dark-hl-7);
|
|
67
|
+
--hl-8: var(--dark-hl-8);
|
|
68
|
+
--hl-9: var(--dark-hl-9);
|
|
69
|
+
--hl-10: var(--dark-hl-10);
|
|
70
|
+
--hl-11: var(--dark-hl-11);
|
|
71
|
+
--hl-12: var(--dark-hl-12);
|
|
72
|
+
--hl-13: var(--dark-hl-13);
|
|
73
|
+
--hl-14: var(--dark-hl-14);
|
|
74
|
+
--hl-15: var(--dark-hl-15);
|
|
75
|
+
--code-background: var(--dark-code-background);
|
|
76
|
+
} }
|
|
77
|
+
|
|
78
|
+
body.light {
|
|
79
|
+
--hl-0: var(--light-hl-0);
|
|
80
|
+
--hl-1: var(--light-hl-1);
|
|
81
|
+
--hl-2: var(--light-hl-2);
|
|
82
|
+
--hl-3: var(--light-hl-3);
|
|
83
|
+
--hl-4: var(--light-hl-4);
|
|
84
|
+
--hl-5: var(--light-hl-5);
|
|
85
|
+
--hl-6: var(--light-hl-6);
|
|
86
|
+
--hl-7: var(--light-hl-7);
|
|
87
|
+
--hl-8: var(--light-hl-8);
|
|
88
|
+
--hl-9: var(--light-hl-9);
|
|
89
|
+
--hl-10: var(--light-hl-10);
|
|
90
|
+
--hl-11: var(--light-hl-11);
|
|
91
|
+
--hl-12: var(--light-hl-12);
|
|
92
|
+
--hl-13: var(--light-hl-13);
|
|
93
|
+
--hl-14: var(--light-hl-14);
|
|
94
|
+
--hl-15: var(--light-hl-15);
|
|
95
|
+
--code-background: var(--light-code-background);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
body.dark {
|
|
99
|
+
--hl-0: var(--dark-hl-0);
|
|
100
|
+
--hl-1: var(--dark-hl-1);
|
|
101
|
+
--hl-2: var(--dark-hl-2);
|
|
102
|
+
--hl-3: var(--dark-hl-3);
|
|
103
|
+
--hl-4: var(--dark-hl-4);
|
|
104
|
+
--hl-5: var(--dark-hl-5);
|
|
105
|
+
--hl-6: var(--dark-hl-6);
|
|
106
|
+
--hl-7: var(--dark-hl-7);
|
|
107
|
+
--hl-8: var(--dark-hl-8);
|
|
108
|
+
--hl-9: var(--dark-hl-9);
|
|
109
|
+
--hl-10: var(--dark-hl-10);
|
|
110
|
+
--hl-11: var(--dark-hl-11);
|
|
111
|
+
--hl-12: var(--dark-hl-12);
|
|
112
|
+
--hl-13: var(--dark-hl-13);
|
|
113
|
+
--hl-14: var(--dark-hl-14);
|
|
114
|
+
--hl-15: var(--dark-hl-15);
|
|
115
|
+
--code-background: var(--dark-code-background);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.hl-0 { color: var(--hl-0); }
|
|
119
|
+
.hl-1 { color: var(--hl-1); }
|
|
120
|
+
.hl-2 { color: var(--hl-2); }
|
|
121
|
+
.hl-3 { color: var(--hl-3); }
|
|
122
|
+
.hl-4 { color: var(--hl-4); }
|
|
123
|
+
.hl-5 { color: var(--hl-5); }
|
|
124
|
+
.hl-6 { color: var(--hl-6); }
|
|
125
|
+
.hl-7 { color: var(--hl-7); }
|
|
126
|
+
.hl-8 { color: var(--hl-8); }
|
|
127
|
+
.hl-9 { color: var(--hl-9); }
|
|
128
|
+
.hl-10 { color: var(--hl-10); }
|
|
129
|
+
.hl-11 { color: var(--hl-11); }
|
|
130
|
+
.hl-12 { color: var(--hl-12); }
|
|
131
|
+
.hl-13 { color: var(--hl-13); }
|
|
132
|
+
.hl-14 { color: var(--hl-14); }
|
|
133
|
+
.hl-15 { color: var(--hl-15); }
|
|
134
|
+
pre, code { background: var(--code-background); }
|