diff --git a/website/app.vue b/website/app.js similarity index 88% rename from website/app.vue rename to website/app.js index 66abf9c9..b3a2b2ab 100644 --- a/website/app.vue +++ b/website/app.js @@ -1,12 +1,3 @@ - - diff --git a/website/docs/en-US/primitives/vc-primitive-tileset.md b/website/docs/en-US/primitives/vc-primitive-tileset.md index 31009429..a66d6f27 100644 --- a/website/docs/en-US/primitives/vc-primitive-tileset.md +++ b/website/docs/en-US/primitives/vc-primitive-tileset.md @@ -66,10 +66,13 @@ Basic usage of VcPrimitiveTileset component. | show | boolean | `true` | `optional` Determines if the tileset will be shown. | | modelMatrix | Cesium.Matrix4 | `Matrix4.IDENTITY` | `optional` A 4x4 transformation matrix that transforms the tileset's root tile. | | shadows | number | `1` | `optional` Determines whether the tileset casts or receives shadows from light sources. **DISABLED: 0, ENABLED: 1, CAST_ONLY: 2, RECEIVE_ONLY: 3**|0/1/2/3| +| modelUpAxis|Cesium.Axis\| number| `` | `optional` Which axis is considered up when loading models for tile contents.| | modelForwardAxis|Cesium.Axis\| number| ``| `optional` Which axis is considered forward when loading models for tile contents.| | maximumScreenSpaceError | number | `16` | `optional` The maximum screen space error used to drive level of detail refinement. | | maximumMemoryUsage | number | `512` | `optional` The maximum amount of memory in MB that can be used by the tileset. | | cullWithChildrenBounds | boolean | `true` | `optional` Optimization option. Whether to cull tiles using the union of their children bounding volumes. | | cullRequestsWhileMoving | boolean | `true` | `optional` Optimization option. Don't request tiles that will likely be unused when they come back because of the camera's movement. This optimization only applies to stationary tilesets. | +| cacheBytes | number | `536870912` | `optional` tileset The size (in bytes) to which the tile cache will be trimmed, if the cache contains tiles not needed for the current view. | +| maximumCacheOverflowBytes | number | `536870912` | `optional` The maximum additional memory (in bytes) to allow for cache headroom, if more than Cesium3DTileset#cacheBytes are needed for the current view. | | cullRequestsWhileMovingMultiplier | number | `60.0` | `optional` Optimization option. Multiplier used in culling requests while moving. Larger is more aggressive culling, smaller less aggressive culling. | | preloadWhenHidden | boolean| `false` | `optional` Preload tiles when tileset.show is false. Loads tiles as if the tileset is visible but does not render them. | | preloadFlightDestinations | boolean | `true` | `optional` Optimization option. Preload tiles at the camera's flight destination while the camera is in flight. | @@ -99,11 +102,17 @@ Basic usage of VcPrimitiveTileset component. | luminanceAtZenith | number | `0.2` | `optional` The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. | | sphericalHarmonicCoefficients | Array || `optional` The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. | | specularEnvironmentMaps | string | | `optional` A URL to a KTX file that contains a cube map of the specular lighting and the convoluted specular mipmaps. | +| imageBasedLighting | string | | `optional` The properties for managing image-based lighting for this tileset. | | backFaceCulling | boolean |`false`| `optional`Whether to cull back-facing geometry. When true, back face culling is determined by the glTF material's doubleSided property; when false, back face culling is disabled.| +| enableShowOutline | boolean |`true`| `optional` Whether to enable outlines for models using the CESIUM_primitive_outline extension. This can be set to false to avoid the additional processing of geometry at load time. When false, the showOutlines and outlineColor options are ignored.| | showOutline | boolean |`true`| `optional`Whether to display the outline for models using the CESIUM_primitive_outline extension. When true, outlines are displayed. When false, outlines are not displayed.| | vectorKeepDecodedPositions | boolean |`false`| `optional`Whether vector tiles should keep decoded positions in memory. This is used with Cesium3DTileFeature.getPolylinePositions.| | vectorClassificationOnly | boolean |`false`| `optional` Indicates that only the tileset's vector tiles should be used for classification. | | debugHeatmapTilePropertyName | string || `optional` The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.| +| featureIdLabel | string \| number | | `optional` Label of the feature ID set to use for picking and styling. For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes are listed before feature ID textures. If featureIdLabel is an integer N, it is converted to the string "featureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.| +| instanceFeatureIdLabel | string \| number | | `optional` Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.| +| splitDirection | number\| Cesium.SplitDirection | ``|`optional`The SplitDirection split to apply to this tileset. | +| projectTo2D | boolean | false |`optional`Whether to accurately project the tileset to 2D. If this is true, the tileset will be projected accurately to 2D, but it will use more memory to do so. If this is false, the tileset will use less memory and will still render in 2D / CV mode, but its projected positions may be inaccurate. This cannot be set after the tileset has loaded. | | debugFreezeFrame | boolean | false | `optional` For debugging only. Determines if only the tiles from last frame should be used for rendering. | | debugColorizeTiles | boolean | false | `optional` For debugging only. When true, assigns a random color to each tile. | | debugWireframe | boolean | false | `optional` For debugging only. When true, render's each tile's content as a wireframe. | diff --git a/website/docs/zh-CN/primitives/vc-primitive-tileset.md b/website/docs/zh-CN/primitives/vc-primitive-tileset.md index 7b229cf7..7cc5a885 100644 --- a/website/docs/zh-CN/primitives/vc-primitive-tileset.md +++ b/website/docs/zh-CN/primitives/vc-primitive-tileset.md @@ -69,9 +69,13 @@ | assetId | number | | `optional` 指定 Cesium ion 上模型的 assetId 。| | show | boolean | `true` | `optional` 是否显示 tileset 模型。 | | modelMatrix | Cesium.Matrix4 | `Matrix4.IDENTITY` | `optional` 一个 4x4 变换矩阵,用于转换 tileset 的根块。 | +| modelUpAxis|Cesium.Axis\| number| `` | `optional` 加载图块内容的模型时会考虑哪个轴。| +| modelForwardAxis|Cesium.Axis\| number| ``| `optional` 加载图块内容的模型时,哪个轴被视为向前。 | | shadows | number | `1` | `optional` 确定 tileset 是否投射或接收来自每个光源的阴影。 **DISABLED: 0, ENABLED: 1, CAST_ONLY: 2, RECEIVE_ONLY: 3**|0/1/2/3| | maximumScreenSpaceError | number | `16` | `optional` 用于驱动细节细化级别的最大屏幕空间错误。 | | maximumMemoryUsage | number | `512` | `optional` tileset 可以使用的最大内存量(MB)。 | +| cacheBytes | number | `536870912` | `optional` tileset 如果缓存包含当前视图不需要的切片,则切片缓存将被修剪到的大小(以字节为单位)。 | +| maximumCacheOverflowBytes | number | `536870912` | `optional` 如果当前视图需要超过 Cesium3DTileset#cacheBytes,则允许缓存空间的最大附加内存(以字节为单位)。| | cullWithChildrenBounds | boolean | `true` | `optional` 优化选项。 是否使用子绑定卷的并集来剔除切片。 | | cullRequestsWhileMoving | boolean | `true` | `optional` 优化选项。 请勿请求由于相机的移动而可能回来的未使用的图块。 此优化仅适用于固定图块集。 | | cullRequestsWhileMovingMultiplier | number | `60.0` | `optional` 优化选项。 移动时用于剔除请求的乘数。 较大的代表更积极的剔除,较小的代表较不积极的剔除。 | @@ -96,29 +100,30 @@ | loadSiblings | boolean | false | `optional` 当 skipLevelOfDetail 为 true 时,确定在遍历期间是否始终下载可见切片的兄弟节点。 | | clippingPlanes | Cesium.ClippingPlaneCollection \| VcCallbackPropertyFunction\ | | `optional` ClippingPlaneCollection 用于有选择地禁用渲染 tileset。 | | classificationType | number | | `optional` 确定此 tileset 是否会对 terrain,3D Tiles 或两者进行分类。 有关限制和限制的详细信息,请参阅 Cesium3DTileset#classificationType。**TERRAIN: 0, CESIUM_3D_TILE: 1, BOTH: 2** |0/1/2| -| ellipsoid | Cesium.Ellipsoid | `optional` 决定地球的大小和形状参考椭球体。 | +| ellipsoid | Cesium.Ellipsoid | | `optional` 决定地球的大小和形状参考椭球体。 | | pointCloudShading | Cesium.PointCloudShading | | `optional` 用于构造 PointCloudShading 对象以基于几何误差和光照控制点衰减的选项。 | | imageBasedLightingFactor | VcCartesian2\|Array | `[1.0, 1.0]` | `optional` 地球、天空、大气层的光照缩放因子。 | | lightColor | VcColor\|Array | | `optional` 模型阴影的颜色和强度。 | | luminanceAtZenith | number | `0.2` | `optional` 太阳在天顶的亮度,以每平方米千坎德拉为单位,用于该模型的过程环境图。 | | sphericalHarmonicCoefficients | Array || `optional` 用于基于图像的照明的漫反射颜色的三阶球面谐波系数。 | -| specularEnvironmentMaps | string | | `optional` KTX 文件的 URL,其中包含镜面照明的立方体贴图和卷积的镜面 mipmap。 | +| specularEnvironmentMaps | VcImageBasedLighting | | `optional` KTX 文件的 URL,其中包含镜面照明的立方体贴图和卷积的镜面 mipmap。 | +| imageBasedLighting | string | | `optional` 用于管理此图块集基于图像的照明的属性。 | | backFaceCulling | boolean |`false`| `optional` 是否剔除背面几何。 如果为 true,则背面剔除取决于 glTF 材料的 doubleSided 属性; 如果为假,则禁用背面剔除。| -| showOutline | boolean |`true`| `optional` 是否使用cesium_primity_outline扩展显示模型的轮廓。| -| vectorKeepDecodedPositions | boolean |`false`| `optional` 是否应在内存中保持解码位置。这与Cesium3DTileFeature.getPolylinePositions一起使用。| +| enableShowOutline | boolean |`true`| `optional` 是否使用CESIUM_primitive_outline扩展启用模型的轮廓。 可以将其设置为 false 以避免在加载时对几何体进行额外的处理。 如果为 false,则忽略 showOutlines 和outlineColor 选项。| +| showOutline | boolean |`true`| `optional` 是否使用 cesium_primity_outline 扩展显示模型的轮廓。| +| vectorKeepDecodedPositions | boolean |`false`| `optional` 是否应在内存中保持解码位置。这与 Cesium3DTileFeature.getPolylinePositions 一起使用。| | vectorClassificationOnly | boolean |`false`| `optional` 是否仅应使用图块集的矢量图块进行分类。| -| debugHeatmapTilePropertyName | string || `optional` tile 变量以着色为热图。 所有渲染的图块将相对于彼此的指定变量值进行着色。| -| debugFreezeFrame | boolean | false | `optional` 仅调试可用,确定是否只使用最后一帧的切片进行渲染。 | -| debugColorizeTiles | boolean | false | `optional` 仅调试可用,如果为 true,则给每个 tile 一个随机颜色。 | -| debugWireframe | boolean | false | `optional` 仅调试可用, 如果为 ture,则渲染每个 tile content 为线框。 | -| debugShowBoundingVolume | boolean | false | `optional` 仅调试可用,如果为 true,则渲染每个 tile 的边界体积。 | -| debugShowContentBoundingVolume | boolean | false | `optional` 仅调试可用,如果为 true,则渲染每个 tile content 的边界体积。 | -| debugShowViewerRequestVolume | boolean | false | `optional` 仅调试可用,如果为 true,则渲染每个 tile 的请求量。 | -| debugShowGeometricError | boolean | false | `optional` 仅调试可用,如果为 true,则绘制标签表示每个 tile 的几何误差。 | -| debugShowRenderingStatistics | boolean | false | `optional` 仅调试可用,如果为 true,则绘制标签以表示每个 tile 的 commonds、points、triangles、features 的数量。 | -| debugShowMemoryUsage | boolean | false | `optional` 仅调试可用,如果为 true,则绘制标签表示每个 tile 的纹理和几何内存,以 mb 为单位。 | -| debugShowUrl | boolean | false | `optional` 仅调试可用,如果为 true,则绘制标签表示每个 tile 的网址。 | -| enableMouseEvent | boolean | `true` | `optional` 指定鼠标事件是否生效。 | +| featureIdLabel | string \| number | | `optional` 用于拾取和设计样式的要素 ID 集的标签。 对于 EXT_mesh_features,这是要素 ID 的标签属性,如果未指定,则为“featureId_N”(其中 N 是 featureIds 数组中的索引)。 EXT_feature_metadata 没有标签字段,因此此类要素 ID 集始终标记为“featureId_N”,其中 N 是所有要素 Id 列表中的索引,其中要素 ID 属性列在要素 ID 纹理之前。 如果featureIdLabel是整数N,则自动转换为字符串“featureId_N”。 如果每个基元和每个实例的功能 ID 均存在,则实例功能 ID 优先。| +| instanceFeatureIdLabel | string \| number | | `optional` 用于拾取和样式化的实例功能 ID 集的标签。 如果instanceFeatureIdLabel设置为整数N,则会自动转换为字符串“instanceFeatureId_N”。 如果每个基元和每个实例的功能 ID 均存在,则实例功能 ID 优先。 | +| splitDirection | number\| Cesium.SplitDirection | ``|`optional` 要应用于此图块集的 SplitDirection 分割。| +| projectTo2D | boolean | false |`optional` 是否将图块集精确投影为 2D。 如果这是真的,则图块集将准确投影为 2D,但会使用更多内存。 如果这是 false,则图块集将使用较少的内存,并且仍将以 2D/CV 模式渲染,但其投影位置可能不准确。 加载图块集后无法设置此设置。 | +| debugHeatmapTilePropertyName | string ||`optional`tile 变量以着色为热图。 所有渲染的图块将相对于彼此的指定变量值进行着色。| +| debugFreezeFrame | boolean | false |`optional`仅调试可用,确定是否只使用最后一帧的切片进行渲染。 | | debugColorizeTiles | boolean | false |`optional`仅调试可用,如果为 true,则给每个 tile 一个随机颜色。 | | debugWireframe | boolean | false |`optional`仅调试可用, 如果为 ture,则渲染每个 tile content 为线框。 | +| debugShowBoundingVolume | boolean | false |`optional`仅调试可用,如果为 true,则渲染每个 tile 的边界体积。 | | debugShowContentBoundingVolume | boolean | false |`optional`仅调试可用,如果为 true,则渲染每个 tile content 的边界体积。 | | debugShowViewerRequestVolume | boolean | false |`optional`仅调试可用,如果为 true,则渲染每个 tile 的请求量。 | +| debugShowGeometricError | boolean | false |`optional`仅调试可用,如果为 true,则绘制标签表示每个 tile 的几何误差。 | +| debugShowRenderingStatistics | boolean | false |`optional`仅调试可用,如果为 true,则绘制标签以表示每个 tile 的 commonds、points、triangles、features 的数量。 | +| debugShowMemoryUsage | boolean | false |`optional`仅调试可用,如果为 true,则绘制标签表示每个 tile 的纹理和几何内存,以 mb 为单位。 | | debugShowUrl | boolean | false |`optional`仅调试可用,如果为 true,则绘制标签表示每个 tile 的网址。 | +| enableMouseEvent | boolean |`true`|`optional` 指定鼠标事件是否生效。 | ### 事件 diff --git a/website/entry.js b/website/entry.js index ba681d86..3860ff64 100644 --- a/website/entry.js +++ b/website/entry.js @@ -1,10 +1,10 @@ /* * @Author: zouyaoji@https://github.com/zouyaoji * @Date: 2021-08-31 16:26:50 - * @LastEditTime: 2022-02-17 11:47:55 - * @LastEditors: zouyaoji + * @LastEditTime: 2023-09-18 17:07:23 + * @LastEditors: zouyaoji 370681295@qq.com * @Description: - * @FilePath: \vue-cesium@next\website\entry.js + * @FilePath: \vue-cesium\website\entry.js */ import { createApp, nextTick } from 'vue' import { createRouter, createWebHashHistory } from 'vue-router' @@ -25,7 +25,7 @@ import './demo-styles/index.scss' import './assets/styles/common.scss' import './assets/styles/fonts/style.css' -import App from './app.vue' +import App from './app' import ElementPlus from 'element-plus' import * as ElementPlusSvgIcons from '@element-plus/icons-vue' import 'element-plus/dist/index.css'