hilo3d 1.15.20 → 1.16.2
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/CHANGELOG.md +38 -0
- package/README.md +2 -2
- package/README_ZH.md +2 -2
- package/build/Hilo3d.js +3 -3
- package/build/Hilo3d.single.js +2 -2
- package/build/math.single.js +2 -2
- package/examples/js/.DS_Store +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +21 -9
|
Binary file
|
package/package.json
CHANGED
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
|
|
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(
|
|
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
|
-
|
|
5282
|
+
lightType: 'PBR' | 'NONE';
|
|
5275
5283
|
/**
|
|
5276
5284
|
* gammaCorrection
|
|
5277
5285
|
*/
|
|
@@ -5410,6 +5418,10 @@ class Material {
|
|
|
5410
5418
|
* shader cache id
|
|
5411
5419
|
*/
|
|
5412
5420
|
shaderCacheId: string;
|
|
5421
|
+
/**
|
|
5422
|
+
* shader name,会在 shader 中加个 SHADER_NAME 宏,不填用 className 代替。
|
|
5423
|
+
*/
|
|
5424
|
+
shaderName: string;
|
|
5413
5425
|
/**
|
|
5414
5426
|
* 光照类型
|
|
5415
5427
|
*/
|
|
@@ -5677,7 +5689,7 @@ class GeometryMaterial extends BasicMaterial {
|
|
|
5677
5689
|
/**
|
|
5678
5690
|
* 光照类型,支持: NONE, PHONG, BLINN-PHONG, LAMBERT
|
|
5679
5691
|
*/
|
|
5680
|
-
lightType:
|
|
5692
|
+
lightType: 'NONE' | 'PHONG' | 'BLINN-PHONG' | 'LAMBERT';
|
|
5681
5693
|
}
|
|
5682
5694
|
|
|
5683
5695
|
/**
|
|
@@ -5720,7 +5732,7 @@ class BasicMaterial extends Material {
|
|
|
5720
5732
|
/**
|
|
5721
5733
|
* 光照类型,支持: NONE, PHONG, BLINN-PHONG, LAMBERT
|
|
5722
5734
|
*/
|
|
5723
|
-
lightType:
|
|
5735
|
+
lightType: 'NONE' | 'PHONG' | 'BLINN-PHONG' | 'LAMBERT';
|
|
5724
5736
|
/**
|
|
5725
5737
|
* 漫反射贴图,或颜色
|
|
5726
5738
|
*/
|
|
@@ -7648,7 +7660,7 @@ class Skeleton {
|
|
|
7648
7660
|
*/
|
|
7649
7661
|
id: string;
|
|
7650
7662
|
jointNodeList: Node[];
|
|
7651
|
-
jointNames:
|
|
7663
|
+
jointNames: string[];
|
|
7652
7664
|
inverseBindMatrices: Matrix4[];
|
|
7653
7665
|
/**
|
|
7654
7666
|
* 关节数量
|