Skip to content

Commit

Permalink
publish 1.15.9
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Sep 10, 2020
1 parent 40db285 commit c3ccf80
Show file tree
Hide file tree
Showing 185 changed files with 63,009 additions and 661 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [1.15.9](https://github.com/hiloteam/Hilo3d/compare/v1.15.8...v1.15.9) (2020-09-10)


### Bug Fixes

* capabilities remove duplicate MAX_COMBINED_TEXTURE_IMAGE_UNITS ([f601071](https://github.com/hiloteam/Hilo3d/commit/f6010717e78dcf3e96e482797016bf71143e8d32))


### Features

* add userData property to Node,Geometry,Material and Skeleton ([40db285](https://github.com/hiloteam/Hilo3d/commit/40db285bfd5e3299b8e94931bed453b2a583d964))



## [1.15.8](https://github.com/hiloteam/Hilo3d/compare/1.15.7...1.15.8) (2020-09-01)


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ English | [简体中文](./README_ZH.md)
* use script tag from a [cdn][cdn-url]

```
<script src='//cdn.jsdelivr.net/npm/[email protected]-alpha.4/build/Hilo3d.js'></script>
<script src='//cdn.jsdelivr.net/npm/[email protected]/build/Hilo3d.js'></script>
```

### Documentation
Expand Down Expand Up @@ -119,4 +119,4 @@ English | [简体中文](./README_ZH.md)
[size-image]:https://img.badgesize.io/hiloteam/hilo3d/master/build/Hilo3d.js.svg?compression=gzip&style=flat-square
[ci-url]:https://github.com/hiloteam/Hilo3d/actions?query=workflow%3A%22npm+test%22+branch%3Adev
[ci-image]:https://img.shields.io/github/workflow/status/hiloteam/Hilo3d/npm%20test?style=flat-square
[cdn-url]: https://cdn.jsdelivr.net/npm/[email protected]-alpha.4/build/Hilo3d.js
[cdn-url]: https://cdn.jsdelivr.net/npm/[email protected]/build/Hilo3d.js
4 changes: 2 additions & 2 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* 使用 script 标签加载 [cdn][cdn-url]
```
<script src='<script src='//cdn.jsdelivr.net/npm/[email protected]-alpha.4/build/Hilo3d.js'></script>'></script>
<script src='<script src='//cdn.jsdelivr.net/npm/[email protected]/build/Hilo3d.js'></script>'></script>
```
### 文档
Expand Down Expand Up @@ -120,4 +120,4 @@
[size-image]:https://img.badgesize.io/hiloteam/hilo3d/master/build/Hilo3d.js.svg?compression=gzip&style=flat-square
[ci-url]:https://github.com/hiloteam/Hilo3d/actions?query=workflow%3A%22npm+test%22+branch%3Adev
[ci-image]:https://img.shields.io/github/workflow/status/hiloteam/Hilo3d/npm%20test?style=flat-square
[cdn-url]: https://cdn.jsdelivr.net/npm/[email protected]-alpha.4/build/Hilo3d.js
[cdn-url]: https://cdn.jsdelivr.net/npm/[email protected]/build/Hilo3d.js
4 changes: 2 additions & 2 deletions build/Hilo3d.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/Hilo3d.single.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/math.single.js

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/AmbientLight.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Animation.html

Large diffs are not rendered by default.

191 changes: 190 additions & 1 deletion docs/AnimationStates.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/AreaLight.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/AxisHelper.html

Large diffs are not rendered by default.

281 changes: 251 additions & 30 deletions docs/AxisNetHelper.html

Large diffs are not rendered by default.

564 changes: 559 additions & 5 deletions docs/BasicLoader.html

Large diffs are not rendered by default.

235 changes: 228 additions & 7 deletions docs/BasicMaterial.html

Large diffs are not rendered by default.

271 changes: 246 additions & 25 deletions docs/BoxGeometry.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Buffer.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Cache.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/Camera.html

Large diffs are not rendered by default.

281 changes: 251 additions & 30 deletions docs/CameraHelper.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Class.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Color.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/CubeTexture.html

Large diffs are not rendered by default.

190 changes: 186 additions & 4 deletions docs/CubeTextureLoader.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/DataTexture.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/DirectionalLight.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Euler.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/EulerNotifier.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/EventMixin.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Fog.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Framebuffer.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Frustum.html

Large diffs are not rendered by default.

190 changes: 186 additions & 4 deletions docs/GLTFLoader.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/GLTFParser.html

Large diffs are not rendered by default.

269 changes: 244 additions & 25 deletions docs/Geometry.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/GeometryData.html

Large diffs are not rendered by default.

235 changes: 228 additions & 7 deletions docs/GeometryMaterial.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/HDRLoader.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/KTXLoader.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/LazyTexture.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/Light.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/LightManager.html

Large diffs are not rendered by default.

8,992 changes: 8,992 additions & 0 deletions docs/LoadCache.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/LoadQueue.html

Large diffs are not rendered by default.

184 changes: 183 additions & 1 deletion docs/Loader.html

Large diffs are not rendered by default.

233 changes: 226 additions & 7 deletions docs/Material.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Matrix3.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Matrix4.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Matrix4Notifier.html

Large diffs are not rendered by default.

281 changes: 251 additions & 30 deletions docs/Mesh.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/MeshPicker.html

Large diffs are not rendered by default.

271 changes: 246 additions & 25 deletions docs/MorphGeometry.html

Large diffs are not rendered by default.

285 changes: 252 additions & 33 deletions docs/Node.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/OrthographicCamera.html

Large diffs are not rendered by default.

235 changes: 228 additions & 7 deletions docs/PBRMaterial.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/PerspectiveCamera.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Plane.html

Large diffs are not rendered by default.

271 changes: 246 additions & 25 deletions docs/PlaneGeometry.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/PointLight.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Program.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Quaternion.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Ray.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/RenderInfo.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/RenderList.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Shader.html

Large diffs are not rendered by default.

235 changes: 228 additions & 7 deletions docs/ShaderMaterial.html

Large diffs are not rendered by default.

190 changes: 186 additions & 4 deletions docs/ShaderMaterialLoader.html

Large diffs are not rendered by default.

225 changes: 222 additions & 3 deletions docs/Skeleton.html

Large diffs are not rendered by default.

437 changes: 400 additions & 37 deletions docs/SkinedMesh.html

Large diffs are not rendered by default.

271 changes: 246 additions & 25 deletions docs/SphereGeometry.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/SphericalHarmonics3.html

Large diffs are not rendered by default.

287 changes: 254 additions & 33 deletions docs/SpotLight.html

Large diffs are not rendered by default.

285 changes: 253 additions & 32 deletions docs/Stage.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Texture.html

Large diffs are not rendered by default.

190 changes: 186 additions & 4 deletions docs/TextureLoader.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Ticker.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Tween.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Vector2.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Vector3.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Vector3Notifier.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/Vector4.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/VertexArrayObject.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/WebGLRenderer.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/WebGLResourceManager.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/WebGLState.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/WebGLSupport.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/animation_Animation.js.html

Large diffs are not rendered by default.

184 changes: 183 additions & 1 deletion docs/animation_AnimationStates.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/camera_Camera.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/camera_OrthographicCamera.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/camera_PerspectiveCamera.js.html

Large diffs are not rendered by default.

598 changes: 595 additions & 3 deletions docs/capabilities.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/constants_index.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/core_Class.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/core_EventMixin.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/core_Fog.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/core_Mesh.js.html

Large diffs are not rendered by default.

189 changes: 189 additions & 0 deletions docs/core_Node.js.html

Large diffs are not rendered by default.

190 changes: 190 additions & 0 deletions docs/core_Skeleton.js.html

Large diffs are not rendered by default.

188 changes: 187 additions & 1 deletion docs/core_SkinedMesh.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/core_Stage.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/core_Tween.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/extensions.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/geometry_BoxGeometry.js.html

Large diffs are not rendered by default.

189 changes: 189 additions & 0 deletions docs/geometry_Geometry.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/geometry_GeometryData.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/geometry_MorphGeometry.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/geometry_PlaneGeometry.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/geometry_SphereGeometry.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/glType.html

Large diffs are not rendered by default.

186 changes: 184 additions & 2 deletions docs/global.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/helper_AxisHelper.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/helper_AxisNetHelper.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/helper_CameraHelper.js.html

Large diffs are not rendered by default.

188 changes: 185 additions & 3 deletions docs/index.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_AmbientLight.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_AreaLight.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_DirectionalLight.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_Light.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_LightManager.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_PointLight.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/light_SpotLight.js.html

Large diffs are not rendered by default.

205 changes: 205 additions & 0 deletions docs/loader_BasicLoader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_CubeTextureLoader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_GLTFExtensions.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_GLTFLoader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_GLTFParser.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_HDRLoader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_KTXLoader.js.html

Large diffs are not rendered by default.

232 changes: 231 additions & 1 deletion docs/loader_LoadCache.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_LoadQueue.js.html

Large diffs are not rendered by default.

184 changes: 183 additions & 1 deletion docs/loader_Loader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_ShaderMaterialLoader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/loader_TextureLoader.js.html

Large diffs are not rendered by default.

521 changes: 506 additions & 15 deletions docs/log.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/material_BasicMaterial.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/material_GeometryMaterial.js.html

Large diffs are not rendered by default.

189 changes: 189 additions & 0 deletions docs/material_Material.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/material_PBRMaterial.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/material_ShaderMaterial.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/material_semantic.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Color.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Euler.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_EulerNotifier.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Frustum.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Matrix3.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Matrix4.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Matrix4Notifier.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Plane.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Quaternion.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Ray.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Sphere.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_SphericalHarmonics3.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Vector2.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Vector3.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Vector3Notifier.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_Vector4.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/math_math.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_Buffer.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_Framebuffer.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_Program.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_RenderInfo.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_RenderList.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_VertexArrayObject.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_WebGLRenderer.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_WebGLResourceManager.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_WebGLState.js.html

Large diffs are not rendered by default.

233 changes: 232 additions & 1 deletion docs/renderer_capabilities.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_extensions.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/renderer_glType.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/semantic.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/shader_Shader.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/texture_CubeTexture.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/texture_DataTexture.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/texture_LazyTexture.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/texture_Texture.js.html

Large diffs are not rendered by default.

10,789 changes: 10,789 additions & 0 deletions docs/util.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/utils_Cache.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/utils_MeshPicker.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/utils_Ticker.js.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions docs/utils_WebGLSupport.js.html

Large diffs are not rendered by default.

200 changes: 197 additions & 3 deletions docs/utils_log.js.html

Large diffs are not rendered by default.

8,337 changes: 8,337 additions & 0 deletions docs/utils_util.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hilo3d",
"version": "1.15.9-alpha.4",
"version": "1.15.9",
"description": "Hilo3d, a WebGL 3d engine.",
"main": "build/Hilo3d.js",
"types": "types/index.d.ts",
Expand Down
235 changes: 225 additions & 10 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,16 @@ declare namespace capabilities {
* MAX_TEXTURE_MAX_ANISOTROPY
*/
var MAX_TEXTURE_MAX_ANISOTROPY: number;
var MAX_RENDERBUFFER_SIZE: number;
var MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
var MAX_CUBE_MAP_TEXTURE_SIZE: number;
var MAX_FRAGMENT_UNIFORM_VECTORS: number;
var MAX_TEXTURE_IMAGE_UNITS: number;
var MAX_TEXTURE_SIZE: number;
var MAX_VARYING_VECTORS: number;
var MAX_VERTEX_ATTRIBS: number;
var MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
var MAX_VERTEX_UNIFORM_VECTORS: number;
/**
* 初始化
* @param gl
Expand Down Expand Up @@ -719,37 +729,146 @@ declare namespace log {
const LEVEL_ERROR = "4";
/**
* log,等同 console.log
* @example
* Hilo3d.log.log('a', {a:1});
* @param params
* @returns this
*/
function log(): log;
function log(...params: any[]): log;
/**
* warn,等同 console.warn
* @example
* Hilo3d.log.warn('a', {a:1});
* @param params
* @returns this
*/
function warn(): log;
function warn(...params: any[]): log;
/**
* error,等同 console.error
* @example
* Hilo3d.log.error('a', {a:1});
* @param params
* @returns this
*/
function error(): log;
function error(...params: any[]): log;
/**
* logOnce 相同 id 只 log 一次
* @example
* Hilo3d.log.logOnce('uniqueId0', 'a', {a:1});
* @param id
* @param params
* @returns this
*/
function logOnce(id: string): log;
function logOnce(id: string, ...params: any[]): log;
/**
* warnOnce 相同 id 只 once 一次
* @example
* Hilo3d.log.warnOnce('uniqueId0', 'a', {a:1});
* @param id
* @param params
* @returns this
*/
function warnOnce(id: string): log;
function warnOnce(id: string, ...params: any[]): log;
/**
* errorOnce 相同 id 只 error 一次
* @example
* Hilo3d.log.errorOnce('uniqueId0', 'a', {a:1});
* @param id
* @param params
* @returns this
*/
function errorOnce(id: string): log;
function errorOnce(id: string, ...params: any[]): log;
}

declare namespace util {
/**
* @param basePath
* @param path
*/
function getRelativePath(basePath: string, path: string): string;
/**
* @param array
* @param isUTF8
*/
function convertUint8ArrayToString(array: Uint8Array | number[], isUTF8: boolean): string;
/**
* @param url
*/
function getExtension(url: string): string;
/**
* @param obj
* @param fn
*/
function each(obj: any, fn: (...params: any[]) => any): void;
/**
* @param array
* @param value
* @param compareFn
*/
function getIndexFromSortedArray(array: any[], value: any, compareFn: (...params: any[]) => any): number[];
/**
* @param array
* @param item
* @param compareFn
*/
function insertToSortedArray(array: any[], item: any, compareFn: (...params: any[]) => any): void;
/**
* @param str
* @param len
* @param char
*/
function padLeft(str: string, len: number, char: string): string;
/**
* @param array
*/
function getTypedArrayGLType(array: TypedArray): GLenum;
/**
* @param type
*/
function getTypedArrayClass(type: GLenum): any;
/**
* @param destArr
* @param srcArr
* @param destIdx
* @param srcIdx
* @param count
*/
function copyArrayData(destArr: any[], srcArr: any[], destIdx: number, srcIdx: number, count: number): void;
/**
* @param d
*/
function isStrOrNumber(d: any): boolean;
/**
* @param url
*/
function isBlobUrl(url: string): boolean;
/**
* @param blobUrl
*/
function revokeBlobUrl(blobUrl: string): void;
/**
* @param mimeType
* @param data
*/
function getBlobUrl(mimeType: string, data: ArrayBuffer | TypedArray): string;
/**
* @param obj
*/
function isArrayLike(obj: any): boolean;
/**
* @param elem
*/
function getElementRect(elem: Element): any;
/**
* @param data
* @param fn
*/
function serialRun(data: any, fn: (...params: any[]) => any): Promise<any>;
/**
* @param obj
* @param name
*/
function hasOwnProperty(obj: any, name: string): boolean;
}

/**
Expand Down Expand Up @@ -4715,6 +4834,10 @@ declare class Material {
* 是否环境贴图和环境光同时生效
*/
isDiffuesEnvAndAmbientLightWorkTogether: boolean;
/**
* 用户数据
*/
userData: any;
/**
* 渲染顺序数字小的先渲染(透明物体和不透明在不同的队列)
*/
Expand Down Expand Up @@ -5042,7 +5165,7 @@ declare class Loader {
* @param ext - 资源扩展,如gltf, png 等
* @param LoaderClass - 用于加载的类,需要继承BasicLoader
*/
static addLoader(ext: string, LoaderClass: BasicLoader): void;
static addLoader(ext: string, LoaderClass: any): void;
/**
* load
* @param data
Expand Down Expand Up @@ -5158,6 +5281,56 @@ declare class LoadQueue implements EventMixin {
declare interface LoadCache extends EventMixin {
}

/**
* 加载缓存类
*/
declare class LoadCache implements EventMixin {
isLoadCache: boolean;
className: string;
/**
* PENDING
*/
static readonly PENDING: number;
/**
* PENDING
*/
static readonly LOADED: number;
/**
* FAILED
*/
static readonly FAILED: number;
/**
* enabled
*/
enabled: boolean;
/**
* update
* @param key
* @param state - 可选值为:LoadCache.LOADED LoadCache.PENDING LoadCache.FAILED
* @param data
*/
update(key: string, state: number, data: any): void;
/**
* get
* @param key
*/
get(key: string): any;
/**
* remove
* @param key
*/
remove(key: string): void;
/**
* clear
*/
clear(): void;
/**
* wait
* @param file
*/
wait(file: any): Promise<any>;
}

/**
* KTX 加载器
*/
Expand Down Expand Up @@ -5298,6 +5471,27 @@ declare class BasicLoader implements EventMixin {
constructor();
isBasicLoader: boolean;
className: string;
/**
* enalbeCache
*/
static enalbeCache(): void;
/**
* disableCache
*/
static disableCache(): void;
/**
* deleteCache
* @param key
*/
static deleteCache(key: string): void;
/**
* clearCache
*/
static clearCache(): void;
/**
* cache
*/
static readonly cache: LoadCache;
/**
* 加载资源,这里会自动调用 loadImg 或者 loadRes
* @param data - 参数
Expand Down Expand Up @@ -6019,6 +6213,10 @@ declare class Geometry {
* 使用 aabb 碰撞检测
*/
useAABBRaycast: boolean;
/**
* 用户数据
*/
userData: any;
/**
* id
*/
Expand Down Expand Up @@ -6625,9 +6823,18 @@ declare class Stage extends Node {
/**
* 蒙皮Mesh
* @param [params] - 初始化参数,所有params都会复制到实例上
* @param [params.geometry] - 几何体
* @param [params.material] - 材质
* @param [params.skeleton] - 骨骼
* @param params.[value:string] - 其它属性
*/
declare class SkinedMesh extends Mesh {
constructor(params?: any);
constructor(params?: {
geometry?: Geometry;
material?: Material;
skeleton?: Skeleton;
[value:string]: any;
});
isSkinedMesh: boolean;
className: string;
/**
Expand Down Expand Up @@ -6679,6 +6886,10 @@ declare class Skeleton {
constructor(params?: any);
isSkeleton: boolean;
className: string;
/**
* 用户数据
*/
userData: any;
/**
* id
*/
Expand Down Expand Up @@ -6795,6 +7006,10 @@ declare class Node implements EventMixin {
* 是否用鼠标指针
*/
useHandCursor: boolean;
/**
* 用户数据
*/
userData: any;
id: string;
/**
* 元素的up向量
Expand Down Expand Up @@ -7351,10 +7566,10 @@ declare class Camera extends Node {

/**
* 元素动画状态序列处理
* @param parmas - 创建对象的属性参数。可包含此类的所有属性。
* @param [parmas] - 创建对象的属性参数。可包含此类的所有属性。
*/
declare class AnimationStates {
constructor(parmas: any);
constructor(parmas?: any);
/**
* 根据名字获取状态类型
* @param name - 名字,忽略大小写,如 translate => StateType.TRANSLATE
Expand Down

0 comments on commit c3ccf80

Please sign in to comment.