archgine 1.0.31 → 1.0.33
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/controls/drag-controller.d.ts +2 -1
- package/lib/environment.worker.js +1 -1
- package/lib/extras/dummy-point.d.ts +3 -0
- package/lib/extras/dummy-rect.d.ts +3 -0
- package/lib/extras/interfaces.d.ts +2 -0
- package/lib/extras/label.d.ts +0 -1
- package/lib/extras/svg-chef.d.ts +2 -0
- package/lib/extras/svg-multi-selector.d.ts +1 -0
- package/lib/extras/svg-view.d.ts +1 -0
- package/lib/index.mjs +2458 -2433
- package/lib/index.umd.js +23 -23
- package/package.json +3 -4
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { default as EventDispatcher } from '../core/event-dispatcher';
|
|
2
2
|
import { IDummy, IDummyVo } from '../extras/interfaces';
|
|
3
|
-
import { IRaycaster, IScene } from '../interfaces';
|
|
3
|
+
import { IRaycaster, IScene, IVector2 } from '../interfaces';
|
|
4
4
|
import { OrbitController } from './orbit-controller';
|
|
5
5
|
import { SvgDummies } from '../extras/svg-dummies';
|
|
6
6
|
export declare class DragController extends EventDispatcher {
|
|
7
7
|
name: string;
|
|
8
8
|
dragFake: boolean;
|
|
9
9
|
container: HTMLElement;
|
|
10
|
+
offset: IVector2;
|
|
10
11
|
controller: OrbitController;
|
|
11
12
|
scene?: IScene;
|
|
12
13
|
raycaster: IRaycaster;
|
|
@@ -3999,7 +3999,7 @@ Ms.__DOMHandler = yi;
|
|
|
3999
3999
|
Ms.normalizeLineEndings = Vc;
|
|
4000
4000
|
Ms.DOMParser = Gc;
|
|
4001
4001
|
var Uy = Ms.DOMParser;
|
|
4002
|
-
const qy = "1.0.
|
|
4002
|
+
const qy = "1.0.33";
|
|
4003
4003
|
function ky() {
|
|
4004
4004
|
return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
|
|
4005
4005
|
}
|
|
@@ -7,6 +7,7 @@ export declare class DummyPoint extends EventDispatcher implements IDummy {
|
|
|
7
7
|
readonly name: string;
|
|
8
8
|
readonly id: string;
|
|
9
9
|
container: HTMLElement;
|
|
10
|
+
offset: Vector2;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
label?: Label;
|
|
12
13
|
radius: number;
|
|
@@ -22,6 +23,8 @@ export declare class DummyPoint extends EventDispatcher implements IDummy {
|
|
|
22
23
|
initDom(): void;
|
|
23
24
|
initLabel(): void;
|
|
24
25
|
setActive(v?: boolean): this;
|
|
26
|
+
showLabel(): void;
|
|
27
|
+
hideLabel(): void;
|
|
25
28
|
setType(type: TAE_TYPES | undefined): this;
|
|
26
29
|
update(v: IVector2, isStrict?: boolean): void;
|
|
27
30
|
}
|
|
@@ -7,6 +7,7 @@ export declare class DummyRect extends EventDispatcher implements IDummy {
|
|
|
7
7
|
readonly name: string;
|
|
8
8
|
readonly id: string;
|
|
9
9
|
container: HTMLElement;
|
|
10
|
+
offset: Vector2;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
radius: number;
|
|
12
13
|
position: Vector2;
|
|
@@ -22,6 +23,8 @@ export declare class DummyRect extends EventDispatcher implements IDummy {
|
|
|
22
23
|
initLabel(): void;
|
|
23
24
|
setText(txt?: string): this;
|
|
24
25
|
setActive(v?: boolean): this;
|
|
26
|
+
showLabel(): void;
|
|
27
|
+
hideLabel(): void;
|
|
25
28
|
setType(type: TAE_TYPES | undefined): this;
|
|
26
29
|
update(v: IVector2, isStrict?: boolean): void;
|
|
27
30
|
}
|
|
@@ -86,6 +86,8 @@ export interface IDummy {
|
|
|
86
86
|
get isMounted(): boolean;
|
|
87
87
|
setText(txt?: string): IDummy;
|
|
88
88
|
setActive(v?: boolean): IDummy;
|
|
89
|
+
showLabel(): void;
|
|
90
|
+
hideLabel(): void;
|
|
89
91
|
setType(type: TAE_TYPES | undefined): IDummy;
|
|
90
92
|
update(v: IVector2, isStrict?: boolean): void;
|
|
91
93
|
}
|
package/lib/extras/label.d.ts
CHANGED
package/lib/extras/svg-chef.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ISvgElement } from '../svg/interfaces';
|
|
2
2
|
import { default as Box2 } from '../math/box2';
|
|
3
|
+
import { default as Vector2 } from '../math/vector2';
|
|
3
4
|
import { TLayer } from './chef';
|
|
4
5
|
export declare class SvgChef {
|
|
5
6
|
svg?: HTMLElement;
|
|
7
|
+
offset: Vector2;
|
|
6
8
|
svgRoot?: Element;
|
|
7
9
|
layers: TLayer[];
|
|
8
10
|
elementsMap: Record<string, Element>;
|
package/lib/extras/svg-view.d.ts
CHANGED