gl-draw 0.18.2 → 0.18.4
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/dist/index.d.ts +4 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1825,6 +1825,7 @@ declare class HelperController {
|
|
|
1825
1825
|
constructor(options: Options_10);
|
|
1826
1826
|
add(object: any): void;
|
|
1827
1827
|
addViewHelper(): void;
|
|
1828
|
+
addSceneHelper(): void;
|
|
1828
1829
|
remove(object: any): void;
|
|
1829
1830
|
removeAll(): void;
|
|
1830
1831
|
removeAllExcludeScene(): void;
|
|
@@ -2380,11 +2381,8 @@ declare interface Options_17 {
|
|
|
2380
2381
|
|
|
2381
2382
|
declare interface Options_2 {
|
|
2382
2383
|
container: HTMLElement;
|
|
2383
|
-
stats?: boolean;
|
|
2384
2384
|
helper?: boolean;
|
|
2385
|
-
viewHelper?: boolean;
|
|
2386
2385
|
controls?: Partial<ControlsParams>;
|
|
2387
|
-
transformControls?: boolean;
|
|
2388
2386
|
renderer?: Partial<RendererParams>;
|
|
2389
2387
|
composer?: Partial<ComposerParams>;
|
|
2390
2388
|
loader?: Partial<LoaderParams>;
|
|
@@ -2508,11 +2506,8 @@ declare class Pencil {
|
|
|
2508
2506
|
timer: Timer;
|
|
2509
2507
|
userData: Record<string, any>;
|
|
2510
2508
|
static options: {
|
|
2511
|
-
stats: boolean;
|
|
2512
2509
|
helper: boolean;
|
|
2513
|
-
viewHelper: boolean;
|
|
2514
2510
|
controls: boolean;
|
|
2515
|
-
transformControls: boolean;
|
|
2516
2511
|
renderer: {
|
|
2517
2512
|
antialias: boolean;
|
|
2518
2513
|
devicePixelRatio: number;
|
|
@@ -2581,6 +2576,7 @@ declare class Pencil {
|
|
|
2581
2576
|
private TweenRaf;
|
|
2582
2577
|
private tweenUpdateRaf;
|
|
2583
2578
|
constructor(options: Options_2);
|
|
2579
|
+
initStats(): void;
|
|
2584
2580
|
use(plugin: any, ...args: any[]): void;
|
|
2585
2581
|
addPage({ sceneOptions, cameraOptions, }?: {
|
|
2586
2582
|
sceneOptions?: SceneParams;
|
|
@@ -2593,7 +2589,7 @@ declare class Pencil {
|
|
|
2593
2589
|
private init;
|
|
2594
2590
|
private initComposer;
|
|
2595
2591
|
private initCSSRenderer;
|
|
2596
|
-
|
|
2592
|
+
initTransformControls(): void;
|
|
2597
2593
|
getSize(): {
|
|
2598
2594
|
width: number;
|
|
2599
2595
|
height: number;
|
|
@@ -2887,7 +2883,7 @@ declare class SceneSerializer {
|
|
|
2887
2883
|
exportScene({ checkTextures }?: {
|
|
2888
2884
|
checkTextures?: boolean | undefined;
|
|
2889
2885
|
}): string;
|
|
2890
|
-
restoreScene(data: string | ArrayBuffer | Object3DJSON, registry?: Record<string, new (...args: any[]) => any>, roomEnvMap?: any): Promise<void>;
|
|
2886
|
+
restoreScene(data: string | ArrayBuffer | Object3DJSON, registry?: Record<string, new (...args: any[]) => any>, roomEnvMap?: any, createIfNeeded?: boolean): Promise<void>;
|
|
2891
2887
|
/**
|
|
2892
2888
|
* 根据 objectType 和 registry 创建 BaseObject 实例
|
|
2893
2889
|
*/
|