archgine 1.0.78 → 1.0.80
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/lib/environment.worker.js +1 -4296
- package/lib/index.mjs +12 -18637
- package/lib/index.umd.js +1 -152
- package/lib/interfaces.d.ts +2 -4
- package/lib/math/vector2.d.ts +2 -2
- package/lib/renderer.worker.js +11 -19115
- package/lib/utils/md5.d.ts +1 -1
- package/package.json +5 -3
- package/lib/index.cjs.js +0 -152
package/lib/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IShape2Config } from './objects/shape2';
|
|
2
|
-
import { default as Vector2 } from './math/vector2';
|
|
3
1
|
export type TTypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | BigUint64Array | BigInt64Array | Float32Array | Float64Array;
|
|
4
2
|
export type AnimationFunc = (frame?: IFrame) => boolean | void;
|
|
5
3
|
export interface IAnimationObjectGroup {
|
|
@@ -333,7 +331,7 @@ export interface IPath2Command {
|
|
|
333
331
|
phi2?: number;
|
|
334
332
|
}
|
|
335
333
|
export interface IShape2 extends IObject2 {
|
|
336
|
-
params?:
|
|
334
|
+
params?: any;
|
|
337
335
|
geo: IGeo2;
|
|
338
336
|
mat: IMat2;
|
|
339
337
|
selected: boolean;
|
|
@@ -568,7 +566,7 @@ export interface IOrbitController {
|
|
|
568
566
|
}
|
|
569
567
|
export interface IRaycaster {
|
|
570
568
|
screenCoords: IVector2;
|
|
571
|
-
worldCoords:
|
|
569
|
+
worldCoords: IVector2;
|
|
572
570
|
setFromCamera(screenCoords: IVector2, camera: ICamera2): IRaycaster;
|
|
573
571
|
}
|
|
574
572
|
export interface IRenderObject extends IObject2 {
|
package/lib/math/vector2.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export default class Vector2 implements IVector2 {
|
|
|
8
8
|
static isZero(p: IPoint2): boolean;
|
|
9
9
|
static isEmpty(p: IPoint2): boolean;
|
|
10
10
|
static equals(v1: IPoint2, v2: IPoint2, isStrict?: boolean): boolean;
|
|
11
|
-
static getInt32Array(points: IPoint2[], len?: number): ArrayBuffer
|
|
12
|
-
static getFloat64Array(points: IPoint2[], len?: number): ArrayBuffer
|
|
11
|
+
static getInt32Array(points: IPoint2[], len?: number): Int32Array<ArrayBuffer>;
|
|
12
|
+
static getFloat64Array(points: IPoint2[], len?: number): Float64Array<ArrayBuffer>;
|
|
13
13
|
static getVectors(points: IPoint2[]): Vector2[];
|
|
14
14
|
static getStrings(points: IPoint2[]): string;
|
|
15
15
|
static getString(point: IPoint2): string;
|