@realsee/five 5.0.0-alpha.19 → 5.0.0-alpha.190

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.
Files changed (251) hide show
  1. package/README.md +18 -8
  2. package/docs/.nojekyll +1 -0
  3. package/docs/assets/highlight.css +134 -0
  4. package/docs/assets/icons.css +1043 -0
  5. package/docs/assets/main.js +52 -0
  6. package/docs/assets/search.js +1 -0
  7. package/docs/assets/style.css +1414 -0
  8. package/docs/classes/five.AnimationFrameLoop.html +15 -0
  9. package/docs/classes/five.BVH.html +10 -0
  10. package/docs/classes/five.BVHIntersect.html +1 -0
  11. package/docs/classes/five.BVHNode.html +7 -0
  12. package/docs/classes/five.BVHVector3.html +1 -0
  13. package/docs/classes/five.Camera.html +11 -0
  14. package/docs/classes/five.Clipper.html +1 -0
  15. package/docs/classes/five.Five.html +328 -0
  16. package/docs/classes/five.InternalWebGLRenderer.html +1 -0
  17. package/docs/classes/five.IntersectMesh.html +1 -0
  18. package/docs/classes/five.Model.html +91 -0
  19. package/docs/classes/five.NetworkSubscribe.html +50 -0
  20. package/docs/classes/five.PBMContainer.html +17 -0
  21. package/docs/classes/five.PBMGroup.html +19 -0
  22. package/docs/classes/five.PBMMaterial.html +29 -0
  23. package/docs/classes/five.PBMMesh.html +7 -0
  24. package/docs/classes/five.PanoCircleMesh.html +7 -0
  25. package/docs/classes/five.PanoCircleMeshCustom.html +7 -0
  26. package/docs/classes/five.PanoCircleMeshSolid.html +7 -0
  27. package/docs/classes/five.Scene.html +3 -0
  28. package/docs/classes/five.Subscribe.html +56 -0
  29. package/docs/classes/five.TextureLoader.html +1 -0
  30. package/docs/classes/five.Tile3D.html +34 -0
  31. package/docs/classes/five.Tile3DModel.html +15 -0
  32. package/docs/classes/five.TileBoundingSphere.html +1 -0
  33. package/docs/classes/five.TileCacheNode.html +1 -0
  34. package/docs/classes/five.TileCubeTextureTarget.html +1 -0
  35. package/docs/classes/five.TileCullingVolume.html +1 -0
  36. package/docs/classes/five.TileOrientedBoundingBox.html +1 -0
  37. package/docs/classes/five.TileRequestScheduler.html +16 -0
  38. package/docs/classes/five.Tileset3D.html +11 -0
  39. package/docs/classes/five.Tileset3DTraverser.html +1 -0
  40. package/docs/classes/five.TilesetCache.html +1 -0
  41. package/docs/classes/five.Work.html +32 -0
  42. package/docs/classes/five.XRButton.html +1 -0
  43. package/docs/classes/gltf_loader.DDSLoader.html +1 -0
  44. package/docs/classes/gltf_loader.DRACOLoader.html +1 -0
  45. package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
  46. package/docs/classes/gltf_loader.GLTFObject.html +7 -0
  47. package/docs/classes/gltf_loader.GLTFParser.html +1 -0
  48. package/docs/classes/gltf_loader.THREEGLTFLoader.html +1 -0
  49. package/docs/classes/line.Line.html +1 -0
  50. package/docs/classes/line.LineGeometry.html +1 -0
  51. package/docs/classes/line.LineMaterial.html +1 -0
  52. package/docs/classes/line.LineSegmentsGeometry.html +1 -0
  53. package/docs/classes/line.THREE_Line2.html +1 -0
  54. package/docs/classes/line.THREE_LineSegments2.html +1 -0
  55. package/docs/classes/react.Store.html +29 -0
  56. package/docs/classes/server.BVH.html +10 -0
  57. package/docs/classes/server.BVHIntersect.html +1 -0
  58. package/docs/classes/server.BVHNode.html +7 -0
  59. package/docs/classes/server.BVHVector3.html +1 -0
  60. package/docs/classes/server.Model.html +70 -0
  61. package/docs/classes/server.PBMContainer.html +7 -0
  62. package/docs/classes/server.PBMGroup.html +9 -0
  63. package/docs/classes/server.PBMMesh.html +7 -0
  64. package/docs/classes/sticker.Sticker.html +32 -0
  65. package/docs/classes/vfx.Airflow.html +1 -0
  66. package/docs/classes/vfx.Flame.html +1 -0
  67. package/docs/classes/vfx.Particle.html +89 -0
  68. package/docs/classes/vfx.SpotLight.html +1 -0
  69. package/docs/index.html +166 -434
  70. package/docs/interfaces/five.AddableObject.html +9 -0
  71. package/docs/interfaces/five.AnimationFrame.html +1 -0
  72. package/docs/interfaces/five.CameraPose.html +1 -0
  73. package/docs/interfaces/five.ClipperParameter.html +1 -0
  74. package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
  75. package/docs/interfaces/five.EventCallback.html +400 -0
  76. package/docs/interfaces/five.FiveInitArgs.html +109 -0
  77. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -0
  78. package/docs/interfaces/five.ImageOptions.html +18 -0
  79. package/docs/interfaces/five.ImageURLMappings.html +1 -0
  80. package/docs/interfaces/five.ImageURLOptions.html +15 -0
  81. package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
  82. package/docs/interfaces/five.Intersection.html +7 -0
  83. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +15 -0
  84. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
  85. package/docs/interfaces/five.ModelEventCallback.html +22 -0
  86. package/docs/interfaces/five.MotionKeyframe.html +1 -0
  87. package/docs/interfaces/five.MovePanoOptions.html +42 -0
  88. package/docs/interfaces/five.NetworkOptions.html +9 -0
  89. package/docs/interfaces/five.PBMPanoPicture.html +7 -0
  90. package/docs/interfaces/five.PBMParameters.html +29 -0
  91. package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +1 -0
  92. package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
  93. package/docs/interfaces/five.PanoCircleMeshOptions.html +1 -0
  94. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +1 -0
  95. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +35 -0
  96. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
  97. package/docs/interfaces/five.Pose.html +37 -0
  98. package/docs/interfaces/five.Scissor.html +14 -0
  99. package/docs/interfaces/five.State.html +21 -0
  100. package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
  101. package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
  102. package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
  103. package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
  104. package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
  105. package/docs/interfaces/five.TextureOptions.html +20 -0
  106. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +3 -0
  107. package/docs/interfaces/five.TileBoundingVolume.html +19 -0
  108. package/docs/interfaces/five.TileContent.html +1 -0
  109. package/docs/interfaces/five.TileCubeNode.html +1 -0
  110. package/docs/interfaces/five.TileCubeTree.html +1 -0
  111. package/docs/interfaces/five.Tileset3dOptions.html +1 -0
  112. package/docs/interfaces/five.TilesetJSON.html +1 -0
  113. package/docs/interfaces/five.TilesetJSONNode.html +1 -0
  114. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -0
  115. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +31 -0
  116. package/docs/interfaces/five.WebXRSelectParams.html +1 -0
  117. package/docs/interfaces/five.WorkCubeImage.html +13 -0
  118. package/docs/interfaces/five.WorkImage.html +21 -0
  119. package/docs/interfaces/five.WorkInitial.html +13 -0
  120. package/docs/interfaces/five.WorkModel.html +11 -0
  121. package/docs/interfaces/five.WorkModelTiles.html +3 -0
  122. package/docs/interfaces/five.WorkObserver.html +27 -0
  123. package/docs/interfaces/five.WorkTile.html +1 -0
  124. package/docs/interfaces/five.WorkVideo.html +9 -0
  125. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +31 -0
  126. package/docs/interfaces/gltf_loader.DDS.html +1 -0
  127. package/docs/interfaces/gltf_loader.GLTF.html +7 -0
  128. package/docs/interfaces/gltf_loader.GLTFReference.html +1 -0
  129. package/docs/interfaces/gltf_loader.THREEGLTF.html +1 -0
  130. package/docs/interfaces/react.FiveActionReactCallbacks.html +52 -0
  131. package/docs/interfaces/react.FiveInjectionTypes.html +181 -0
  132. package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
  133. package/docs/interfaces/server.Intersection.html +7 -0
  134. package/docs/interfaces/server.ModelEventCallback.html +18 -0
  135. package/docs/interfaces/sticker.IntersectionLike.html +8 -0
  136. package/docs/interfaces/vfx.ParticleArgs.html +75 -0
  137. package/docs/interfaces/vfx.ParticleTweenKeyframe.html +1 -0
  138. package/docs/interfaces/vue.FiveActionVueCallbacks.html +60 -0
  139. package/docs/modules/five.SubscribeMixinType.html +1 -0
  140. package/docs/modules/five.html +479 -3002
  141. package/docs/modules/gltf_loader.html +1 -155
  142. package/docs/modules/line.html +1 -202
  143. package/docs/modules/react.html +130 -1507
  144. package/docs/modules/server.html +18 -526
  145. package/docs/modules/sticker.html +1 -151
  146. package/docs/modules/vfx.html +1 -0
  147. package/docs/modules/vue.html +115 -0
  148. package/docs/modules.html +1 -136
  149. package/exporters/staticify.js +210 -0
  150. package/five/index.d.ts +1425 -285
  151. package/five/index.js +362 -1
  152. package/gltf-loader/index.d.ts +90 -5
  153. package/gltf-loader/index.js +260 -1
  154. package/line/index.d.ts +15 -2
  155. package/line/index.js +260 -1
  156. package/package.json +12 -12
  157. package/react/index.d.ts +73 -72
  158. package/react/index.js +260 -1
  159. package/scripts/five-staticify.js +26 -0
  160. package/server/index.d.ts +221 -27
  161. package/server/index.js +357 -1
  162. package/sticker/index.d.ts +2 -1
  163. package/sticker/index.js +260 -1
  164. package/templates/quick-start/package.json +1 -1
  165. package/umd/five-gltf-loader.js +1 -2
  166. package/umd/five-line.js +1 -2
  167. package/umd/five-react.js +1 -2
  168. package/umd/five-sticker.js +1 -2
  169. package/umd/five-vfx.js +1 -0
  170. package/umd/five-vue.js +1 -0
  171. package/umd/five.js +1 -1
  172. package/umd/five.js.LICENSE.txt +58 -118
  173. package/vfx/index.d.ts +264 -0
  174. package/vfx/index.js +260 -0
  175. package/vue/index.d.ts +441 -0
  176. package/vue/index.js +260 -0
  177. package/docs/assets/css/main.css +0 -2660
  178. package/docs/assets/js/main.js +0 -248
  179. package/docs/assets/js/search.js +0 -1
  180. package/docs/classes/five.camera.html +0 -323
  181. package/docs/classes/five.five-1.html +0 -2670
  182. package/docs/classes/five.hashcubetexture.html +0 -252
  183. package/docs/classes/five.internalwebglrenderer.html +0 -212
  184. package/docs/classes/five.model.html +0 -982
  185. package/docs/classes/five.pbmgroup.html +0 -427
  186. package/docs/classes/five.pbmmaterial.html +0 -533
  187. package/docs/classes/five.pbmmesh.html +0 -254
  188. package/docs/classes/five.scene.html +0 -263
  189. package/docs/classes/five.subscribe.html +0 -569
  190. package/docs/classes/gltf_loader.gltfloader.html +0 -412
  191. package/docs/classes/gltf_loader.gltfobject.html +0 -287
  192. package/docs/classes/line.line-1.html +0 -381
  193. package/docs/classes/line.linegeometry.html +0 -524
  194. package/docs/classes/line.linematerial.html +0 -300
  195. package/docs/classes/line.linesegmentsgeometry.html +0 -471
  196. package/docs/classes/react.store.html +0 -605
  197. package/docs/classes/server.model.html +0 -823
  198. package/docs/classes/server.pbmgroup.html +0 -366
  199. package/docs/classes/server.pbmmesh.html +0 -335
  200. package/docs/classes/sticker.sticker-1.html +0 -465
  201. package/docs/interfaces/five.addableobject.html +0 -234
  202. package/docs/interfaces/five.depthpanoramacontrollercustominitargs.html +0 -420
  203. package/docs/interfaces/five.eventcallback.html +0 -2548
  204. package/docs/interfaces/five.fiveinitargs.html +0 -707
  205. package/docs/interfaces/five.floorplancontrollercustominitargs.html +0 -295
  206. package/docs/interfaces/five.imageoptions.html +0 -332
  207. package/docs/interfaces/five.intersection.html +0 -227
  208. package/docs/interfaces/five.intersectmeshinterface.html +0 -188
  209. package/docs/interfaces/five.modelcontrollercustominitargs.html +0 -366
  210. package/docs/interfaces/five.modeleventcallback.html +0 -367
  211. package/docs/interfaces/five.movepanooptions.html +0 -469
  212. package/docs/interfaces/five.panocirclemeshinterface.html +0 -361
  213. package/docs/interfaces/five.panoramacontrollercustominitargs.html +0 -464
  214. package/docs/interfaces/five.panoramalikecontrollercustominitargs.html +0 -364
  215. package/docs/interfaces/five.pbmparameters.html +0 -474
  216. package/docs/interfaces/five.pose.html +0 -270
  217. package/docs/interfaces/five.scissor.html +0 -252
  218. package/docs/interfaces/five.state.html +0 -300
  219. package/docs/interfaces/five.subscribemixintype.emit.html +0 -180
  220. package/docs/interfaces/five.subscribemixintype.haslistener.html +0 -171
  221. package/docs/interfaces/five.subscribemixintype.off.html +0 -198
  222. package/docs/interfaces/five.subscribemixintype.on.html +0 -213
  223. package/docs/interfaces/five.subscribemixintype.once.html +0 -210
  224. package/docs/interfaces/five.topviewcontrollercustominitargs.html +0 -226
  225. package/docs/interfaces/five.vrpanoramacontrollercustominitargs.html +0 -452
  226. package/docs/interfaces/gltf_loader.gltf.html +0 -304
  227. package/docs/interfaces/react.fiveactionreactcallbacks.html +0 -580
  228. package/docs/interfaces/react.fiveinjectiontypes.html +0 -1625
  229. package/docs/interfaces/react.injectfivetoprops.html +0 -280
  230. package/docs/interfaces/server.intersection.html +0 -308
  231. package/docs/interfaces/server.modeleventcallback.html +0 -409
  232. package/docs/interfaces/sticker.intersectionlike.html +0 -223
  233. package/docs/modules/five.subscribemixintype.html +0 -143
  234. package/scripts/export-five-resource/chfs.exe +0 -0
  235. package/scripts/export-five-resource/fileify.js +0 -192
  236. package/scripts/export-five-resource/format-work.js +0 -71
  237. package/scripts/export-five-resource/staticify.js +0 -327
  238. package/scripts/transcode-model/BufferGeometryUtils.js +0 -832
  239. package/scripts/transcode-model/LoaderSupport.js +0 -1545
  240. package/scripts/transcode-model/MTLLoader.js +0 -602
  241. package/scripts/transcode-model/OBJLoader2.js +0 -1470
  242. package/scripts/transcode-model/obj2pbm.js +0 -65
  243. /package/docs/assets/{images/icons.png → icons.png} +0 -0
  244. /package/docs/assets/{images/icons@2x.png → icons@2x.png} +0 -0
  245. /package/docs/assets/{images/widgets.png → widgets.png} +0 -0
  246. /package/docs/assets/{images/widgets@2x.png → widgets@2x.png} +0 -0
  247. /package/resource/{basis_transcoder.js → basis/basis_transcoder.js} +0 -0
  248. /package/resource/{basis_transcoder.wasm → basis/basis_transcoder.wasm} +0 -0
  249. /package/resource/{draco_decoder.js → gltf/draco_decoder.js} +0 -0
  250. /package/resource/{draco_decoder.wasm → gltf/draco_decoder.wasm} +0 -0
  251. /package/resource/{draco_wasm_wrapper.js → gltf/draco_wasm_wrapper.js} +0 -0
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Five.js
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@realsee/five.svg?style=flat-square&logo=npm&label=npm%20install%20@realsee/five)](https://www.npmjs.com/package/@realsee/five)
4
+
3
5
  贝壳如视三维渲染框架
4
6
 
5
7
  ## 什么是**Five**
@@ -37,6 +39,12 @@ import { useFiveState } from "@realsee/five/react";
37
39
 
38
40
  ```
39
41
 
42
+ ## 浏览器兼容性
43
+
44
+ | Safari | Safari on iOS | Chrome | Chrome for Android | Edge | Firefox |
45
+ |:------:|:-------------:|--------:|:------------------:|:----:|:-------:|
46
+ | >= 9 | >= 9 | >= 49 | >= 93 | >= 13| >= 45 |
47
+
40
48
  ## 快速上手
41
49
 
42
50
  **Five**提供了快速上手体验的项目生成工具,您可以通过他熟悉**Five**的功能以及尝试基于**Five**开发功能。
@@ -121,7 +129,7 @@ fetch(`./work.json`)
121
129
  ```tsx
122
130
  import * as React from "react";
123
131
  import * as ReactDOM from "react-dom";
124
- import {Five, parseWork} from "@realsee/five";
132
+ import {Five, Work, parseWork} from "@realsee/five";
125
133
  import {createFiveProvider, FiveCanvas} from "@realsee/five/react";
126
134
 
127
135
  // 创建 Provider, 参数与 new Five 参数类似
@@ -188,7 +196,7 @@ ReactDOM.render(<App></App>, document.getElementById("app"));
188
196
 
189
197
  ## **Five API**文档
190
198
 
191
- 欢迎查看 [Five API 文档](https://developers.realsee.com/static/docs/external/five/docs/) 。
199
+ 欢迎查看 [Five API 文档](https://unpkg.com/@realsee/five/docs/index.html) 。
192
200
 
193
201
  该文档由 [TypeDoc](https://typedoc.org/) 生成,您可以详细查看 api 使用方式,调用参数,数据结构。
194
202
 
@@ -338,15 +346,17 @@ interface State {
338
346
  **State**的数据描述
339
347
 
340
348
  - `mode`: 当前的模态
341
- Five 5 种模态,可以使用 `Five.Mode` 获得
342
- - Floorplan: 模型查看模式, 该模式下视图以模型为中心,手势操作可以旋转/放大模型/切换楼层,适合查看模型的整体效果。
343
- - Topview: 户型图模式,该模式下视图以模型为中心,垂直俯视模型,手势操作可以平移/放大模型/切换楼层,适合查看模型平面结构。
344
- - Panorama: 全景图游走模式,该模式下视图将在采集点间游走,手势操作可以旋转/放大视角/切换采集点,适合查看采集的全景信息。
345
- - Model: 模型游走模式,该模式下视图将在模型中自由游走,手势操作可以旋转/放大视角/位移,适合查看模型的细节,做一些定位操作。
346
- - VRPanorama: VR 眼镜模式,该模式下可以使用 [Cardboard 眼镜](https://arvr.google.com/cardboard/) 或者他的第三方衍生产品,实现 VR 虚拟显示效果。
349
+ Five 常用有 5 种模态,可以使用 `Five.Mode` 获得
350
+ - Panorama: 全景游走模态,该模态下视图将在采集点间游走,手势操作可以旋转/放大视角/切换采集点,适合查看采集的全景信息。
351
+ - Floorplan: 空间总览模态, 该模态下视图以模型为中心,手势操作可以旋转/放大模型/切换楼层,适合查看模型的整体效果。
352
+ - Topview: 户型图模态,该模态下视图以模型为中心,垂直俯视模型,手势操作可以平移/放大模型/切换楼层,适合查看模型平面结构。
353
+ - Model: 模型游走模态,该模态下视图将在模型中自由游走,手势操作可以旋转/放大视角/位移,适合查看模型的细节,做一些定位操作。
354
+ - VRPanorama: VR 眼镜模态,该模态下可以使用 [Cardboard 眼镜](https://arvr.google.com/cardboard/) 或者他的第三方衍生产品,实现 VR 虚拟显示效果。
347
355
 
348
356
  - `panoIndex`: 采集点位
349
357
 
350
358
  - `longitude` / `latitude`: 相机的水平角 / 相机的偏航角(弧度),我们使用类似经纬度的方式描述相机位置。
351
359
 
352
360
  - `fov`: 相机垂直方向的可视角度 (角度)
361
+
362
+
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); }