gl-draw 0.17.0-beta.2 → 0.17.0-beta.20
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/core/BaseObject/index.d.ts +3 -3
- package/dist/core/Composer.d.ts +5 -5
- package/dist/core/Pages/Pages.d.ts +1 -0
- package/dist/core/Pencil.d.ts +1 -1
- package/dist/core/pass/OutputPass.d.ts +1 -2
- package/dist/index.js +2 -2
- package/dist/index.module.js +284 -285
- package/dist/index.module2.js +1100 -0
- package/dist/index2.js +140 -0
- package/dist/objects/extrudePolygon/createGeometry.d.ts +2 -1
- package/dist/objects/index.js +1 -1
- package/dist/objects/index.module.js +373 -420
- package/dist/objects/node/index.d.ts +4 -2
- package/dist/objects/pie/index.d.ts +2 -1
- package/dist/plugins/Worker/getAttributes/conicLine.d.ts +2 -3
- package/dist/plugins/Worker/getAttributes/conicPolygon.d.ts +2 -3
- package/dist/plugins/Worker/getAttributes/extrudePolygon.d.ts +2 -4
- package/dist/plugins/Worker/getAttributes/getCoordinatesArr.d.ts +5 -1
- package/dist/plugins/Worker/getAttributes/getMessage.d.ts +1 -1
- package/dist/plugins/Worker/getAttributes/line.d.ts +2 -2
- package/dist/plugins/Worker/getAttributes/line2.d.ts +2 -2
- package/dist/plugins/Worker/getAttributes/splitPolygonsByLongitudeDifference.d.ts +5 -2
- package/dist/plugins/Worker/index.d.ts +3 -3
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/index.module.js +79 -59
- package/package.json +1 -1
- package/dist/WebGPULineSegments2.js +0 -140
- package/dist/WebGPULineSegments2.module.js +0 -1031
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Material, Mesh, type Object3D, Points, type SpriteMaterial, Vector3 } from 'three';
|
|
1
|
+
import { type Material, Mesh, type Object3D, Points, type SpriteMaterial, Vector3 } from 'three';
|
|
2
2
|
import type Lead from "../Lead/Lead";
|
|
3
3
|
import type MList from "../MList/MList";
|
|
4
4
|
import type Pencil from "../Pencil";
|
|
@@ -67,8 +67,8 @@ export default class BaseObject extends UseMaterial {
|
|
|
67
67
|
}): Promise<this>;
|
|
68
68
|
erase(): void;
|
|
69
69
|
handleMaterialChange(mat: Material | null): void;
|
|
70
|
-
enableBloom(): void;
|
|
71
|
-
disableBloom(): void;
|
|
70
|
+
enableBloom(traverse?: boolean): void;
|
|
71
|
+
disableBloom(traverse?: boolean): void;
|
|
72
72
|
disposeTrack: boolean;
|
|
73
73
|
dispose(): void;
|
|
74
74
|
}
|
package/dist/core/Composer.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Camera, Layers, Material, Scene, Vector2, WebGLRenderer } from 'three';
|
|
1
|
+
import { type Camera, Layers, type Material, type Scene, Vector2, type WebGLRenderer } from 'three';
|
|
2
2
|
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
3
3
|
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass';
|
|
4
4
|
import { SSAOPass } from 'three/examples/jsm/postprocessing/SSAOPass';
|
|
5
5
|
import { UnrealBloomPass } from 'three/examples/jsm/postprocessing/UnrealBloomPass';
|
|
6
6
|
import type { IBaseObject } from './BaseObject';
|
|
7
|
-
import CameraController from './Camera';
|
|
7
|
+
import type CameraController from './Camera';
|
|
8
8
|
import getMixPass from './pass/MixPass';
|
|
9
9
|
import { OutputPass } from './pass/OutputPass';
|
|
10
|
-
import RendererController from './Renderer';
|
|
11
|
-
import SceneController from './Scene';
|
|
10
|
+
import type RendererController from './Renderer';
|
|
11
|
+
import type SceneController from './Scene';
|
|
12
12
|
export interface BloomParams {
|
|
13
13
|
threshold: number;
|
|
14
14
|
strength: number;
|
|
@@ -70,7 +70,7 @@ export default class {
|
|
|
70
70
|
bloomLayer: Layers;
|
|
71
71
|
bloomMaterials: Record<string, Material | Material[]>;
|
|
72
72
|
bloomVisible: Record<string, boolean>;
|
|
73
|
-
|
|
73
|
+
checkBloomComposerActive(): void;
|
|
74
74
|
enable(): void;
|
|
75
75
|
disable(): void;
|
|
76
76
|
setSize(width: number, height: number): void;
|
package/dist/core/Pencil.d.ts
CHANGED
|
@@ -11,9 +11,8 @@ declare class OutputPassFix extends OutputPass {
|
|
|
11
11
|
value: number;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
fsQuad: FullScreenQuad | undefined;
|
|
15
15
|
_fsQuad: FullScreenQuad | undefined;
|
|
16
16
|
}
|
|
17
17
|
import { OutputPass } from 'three/examples/jsm/postprocessing/OutputPass';
|
|
18
|
-
import { RawShaderMaterial } from 'three';
|
|
19
18
|
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass';
|