hilo3d 1.15.20 → 1.16.0

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hilo3d",
3
- "version": "1.15.20",
3
+ "version": "1.16.0",
4
4
  "description": "Hilo3d, a WebGL 3d engine.",
5
5
  "main": "build/Hilo3d.js",
6
6
  "types": "types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -802,6 +802,8 @@ namespace semantic {
802
802
  var CAMERATYPE: semanticObject;
803
803
  var COLOR_0: semanticObject;
804
804
  var SKININDICES: semanticObject;
805
+ var JOINT: semanticObject;
806
+ var WEIGHT: semanticObject;
805
807
  var SKINWEIGHTS: semanticObject;
806
808
  var RENDERERSIZE: semanticObject;
807
809
  var LOCAL: semanticObject;
@@ -1360,9 +1362,9 @@ namespace util {
1360
1362
  function getRelativePath(basePath: string, path: string): string;
1361
1363
  /**
1362
1364
  * @param array
1363
- * @param isUTF8
1365
+ * @param [isUTF8 = false]
1364
1366
  */
1365
- function convertUint8ArrayToString(array: Uint8Array | number[], isUTF8: boolean): string;
1367
+ function convertUint8ArrayToString(array: Uint8Array | number[], isUTF8?: boolean): string;
1366
1368
  /**
1367
1369
  * @param url
1368
1370
  */
@@ -1449,11 +1451,14 @@ namespace util {
1449
1451
  */
1450
1452
  class Ticker {
1451
1453
  constructor(fps?: number);
1454
+ /**
1455
+ * 定时器的目标帧率
1456
+ */
1457
+ targetFPS: number;
1452
1458
  /**
1453
1459
  * 启动定时器。
1454
- * @param [userRAF = true] - 是否使用requestAnimationFrame,默认为true。
1455
1460
  */
1456
- start(userRAF?: boolean): void;
1461
+ start(): void;
1457
1462
  /**
1458
1463
  * 停止定时器。
1459
1464
  */
@@ -1770,6 +1775,9 @@ class Texture {
1770
1775
  clone(): Texture;
1771
1776
  }
1772
1777
 
1778
+ interface LazyTexture extends EventMixin {
1779
+ }
1780
+
1773
1781
  /**
1774
1782
  * 懒加载纹理
1775
1783
  * @example
@@ -1786,7 +1794,7 @@ class Texture {
1786
1794
  * @param [params.src] - 图片地址
1787
1795
  * @param params.[value:string] - 其它属性
1788
1796
  */
1789
- class LazyTexture extends Texture {
1797
+ class LazyTexture extends Texture implements EventMixin {
1790
1798
  constructor(params?: {
1791
1799
  crossOrigin?: boolean;
1792
1800
  placeHolder?: HTMLImageElement;
@@ -5271,7 +5279,7 @@ class PBRMaterial extends Material {
5271
5279
  /**
5272
5280
  * 光照类型,只能为 PBR 或 NONE
5273
5281
  */
5274
- readonly lightType: string;
5282
+ lightType: 'PBR' | 'NONE';
5275
5283
  /**
5276
5284
  * gammaCorrection
5277
5285
  */
@@ -5677,7 +5685,7 @@ class GeometryMaterial extends BasicMaterial {
5677
5685
  /**
5678
5686
  * 光照类型,支持: NONE, PHONG, BLINN-PHONG, LAMBERT
5679
5687
  */
5680
- lightType: string;
5688
+ lightType: 'NONE' | 'PHONG' | 'BLINN-PHONG' | 'LAMBERT';
5681
5689
  }
5682
5690
 
5683
5691
  /**
@@ -5720,7 +5728,7 @@ class BasicMaterial extends Material {
5720
5728
  /**
5721
5729
  * 光照类型,支持: NONE, PHONG, BLINN-PHONG, LAMBERT
5722
5730
  */
5723
- lightType: string;
5731
+ lightType: 'NONE' | 'PHONG' | 'BLINN-PHONG' | 'LAMBERT';
5724
5732
  /**
5725
5733
  * 漫反射贴图,或颜色
5726
5734
  */
@@ -7648,7 +7656,7 @@ class Skeleton {
7648
7656
  */
7649
7657
  id: string;
7650
7658
  jointNodeList: Node[];
7651
- jointNames: String[];
7659
+ jointNames: string[];
7652
7660
  inverseBindMatrices: Matrix4[];
7653
7661
  /**
7654
7662
  * 关节数量