build-dxf 0.0.19-14 → 0.0.19-15
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/package.json +1 -1
- package/src/index.css +65 -11
- package/src/index2.js +13 -2520
- package/src/index3.js +732 -485
- package/src/pages/Editor.vue.d.ts +3 -1
- package/src/selectLocalFile.js +2573 -91
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +8 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +7 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawLine.d.ts +2 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawWindow.d.ts +2 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag.d.ts +2 -1
- package/src/utils/DxfSystem/plugin/Editor/components/Editor.d.ts +5 -0
- package/src/components/Editor.vue.d.ts +0 -26
- package/src/pages/Editor02.vue.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from '../../../../../ComponentManager';
|
|
1
|
+
import { Component, ComponentManager } from '../../../../../ComponentManager';
|
|
2
2
|
import { Editor } from '../Editor';
|
|
3
3
|
import { EventInput, Renderer } from '../../../RenderPlugin/components';
|
|
4
4
|
import { CommandManager } from '../../../../../CommandManager';
|
|
@@ -17,6 +17,13 @@ export declare class CommandFlowComponent<TEventMap extends {} = {}> extends Com
|
|
|
17
17
|
private _commandManager?;
|
|
18
18
|
get commandManager(): CommandManager;
|
|
19
19
|
interruptKeys: string[];
|
|
20
|
+
commandName: string;
|
|
21
|
+
constructor();
|
|
22
|
+
onAddFromParent(parent: ComponentManager): void;
|
|
23
|
+
/**
|
|
24
|
+
* 取消
|
|
25
|
+
*/
|
|
26
|
+
cancel(): void;
|
|
20
27
|
/**
|
|
21
28
|
* 创建中断
|
|
22
29
|
* @returns
|
|
@@ -4,7 +4,9 @@ import { Renderer } from '../../../RenderPlugin/components';
|
|
|
4
4
|
import { LineSegment } from '../../../../../Quadtree/LineSegment';
|
|
5
5
|
import { LineUserData } from '../RenderManager';
|
|
6
6
|
import * as THREE from "three";
|
|
7
|
-
export declare class Default extends Component<{
|
|
7
|
+
export declare class Default extends Component<{
|
|
8
|
+
selectLineChange: {};
|
|
9
|
+
}> {
|
|
8
10
|
static name: string;
|
|
9
11
|
get editor(): Editor;
|
|
10
12
|
renderer?: Renderer;
|
|
@@ -20,6 +22,10 @@ export declare class Default extends Component<{}> {
|
|
|
20
22
|
* @param lineSegment
|
|
21
23
|
*/
|
|
22
24
|
removeSelectLine(lineSegment: LineSegment): void;
|
|
25
|
+
/**
|
|
26
|
+
* 移除所有选中线段
|
|
27
|
+
*/
|
|
28
|
+
removeSelectLineAll(): void;
|
|
23
29
|
/**
|
|
24
30
|
* 删除选择的线段
|
|
25
31
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Point } from '../../../../../Quadtree/Point';
|
|
2
2
|
import { CommandFlowComponent } from './CommandFlowComponent';
|
|
3
|
+
import { ComponentManager } from '../../../../../ComponentManager';
|
|
3
4
|
import * as THREE from "three";
|
|
4
5
|
export declare class DrawLine extends CommandFlowComponent<{}> {
|
|
5
6
|
static name: string;
|
|
@@ -9,7 +10,7 @@ export declare class DrawLine extends CommandFlowComponent<{}> {
|
|
|
9
10
|
shortcutKeys: string[];
|
|
10
11
|
confirmKeys: string[];
|
|
11
12
|
commandName: string;
|
|
12
|
-
onAddFromParent(): void;
|
|
13
|
+
onAddFromParent(parent: ComponentManager): void;
|
|
13
14
|
/** 选择点
|
|
14
15
|
* @param next
|
|
15
16
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommandFlowComponent } from './CommandFlowComponent';
|
|
2
2
|
import { LineSegment } from '../../../../../Quadtree/LineSegment';
|
|
3
|
+
import { ComponentManager } from '../../../../../ComponentManager';
|
|
3
4
|
import * as THREE from "three";
|
|
4
5
|
export declare class DrawWindow extends CommandFlowComponent<{}> {
|
|
5
6
|
static name: string;
|
|
@@ -7,7 +8,7 @@ export declare class DrawWindow extends CommandFlowComponent<{}> {
|
|
|
7
8
|
interruptKeys: string[];
|
|
8
9
|
shortcutKeys: string[];
|
|
9
10
|
commandName: string;
|
|
10
|
-
onAddFromParent(): void;
|
|
11
|
+
onAddFromParent(parent: ComponentManager): void;
|
|
11
12
|
/** 选择开始点
|
|
12
13
|
* @param next
|
|
13
14
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommandFlowComponent } from './CommandFlowComponent';
|
|
2
2
|
import { LineSegment } from '../../../../../Quadtree/LineSegment';
|
|
3
|
+
import { ComponentManager } from '../../../../../ComponentManager';
|
|
3
4
|
import * as THREE from "three";
|
|
4
5
|
export declare class PointDrag extends CommandFlowComponent<{}> {
|
|
5
6
|
static name: string;
|
|
@@ -7,7 +8,7 @@ export declare class PointDrag extends CommandFlowComponent<{}> {
|
|
|
7
8
|
interruptKeys: string[];
|
|
8
9
|
shortcutKeys: string[];
|
|
9
10
|
commandName: string;
|
|
10
|
-
onAddFromParent(): void;
|
|
11
|
+
onAddFromParent(parent: ComponentManager): void;
|
|
11
12
|
/** 选择开始点
|
|
12
13
|
* @param next
|
|
13
14
|
*/
|
|
@@ -10,6 +10,7 @@ export declare class Editor extends Component<{
|
|
|
10
10
|
pointerPositionChange: {
|
|
11
11
|
position: THREE.Vector2;
|
|
12
12
|
};
|
|
13
|
+
cancelCommand: {};
|
|
13
14
|
}> {
|
|
14
15
|
static name: string;
|
|
15
16
|
container: THREE.Group<THREE.Object3DEventMap>;
|
|
@@ -25,6 +26,10 @@ export declare class Editor extends Component<{
|
|
|
25
26
|
app?: App<Element>;
|
|
26
27
|
domElement: HTMLDivElement;
|
|
27
28
|
onAddFromParent(): void;
|
|
29
|
+
/**
|
|
30
|
+
* 取消命令,由其他命令组件监听事件后注册事件监听实现
|
|
31
|
+
*/
|
|
32
|
+
cancelCommand(): void;
|
|
28
33
|
coords: THREE.Vector2;
|
|
29
34
|
pointerPosition: THREE.Vector2;
|
|
30
35
|
private _exitEditCallBack?;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DxfSystem } from '../utils/DxfSystem';
|
|
2
|
-
import { OriginalDataItem } from '../utils/DxfSystem/components/Dxf';
|
|
3
|
-
import * as THREE from "three";
|
|
4
|
-
type __VLS_Props = {
|
|
5
|
-
lines?: OriginalDataItem[];
|
|
6
|
-
detailsPoint?: {
|
|
7
|
-
position: {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
z: number;
|
|
11
|
-
};
|
|
12
|
-
direction: {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
z: number;
|
|
16
|
-
};
|
|
17
|
-
desc: string;
|
|
18
|
-
}[];
|
|
19
|
-
camera?: THREE.OrthographicCamera;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
22
|
-
dxfSystem: DxfSystem;
|
|
23
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
-
elRef: HTMLDivElement;
|
|
25
|
-
}, HTMLDivElement>;
|
|
26
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
-
dom: HTMLDivElement;
|
|
3
|
-
}, HTMLDivElement>;
|
|
4
|
-
export default _default;
|