rm-build-dxf 0.1.203 → 0.1.204
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/components/NumberEditor.vue.d.ts +1 -1
- package/src/dxf-system/plugins/editor/Command/DefaultCommand.d.ts +10 -0
- package/src/dxf-system/plugins/editor/Command/{PointDrag → Modify}/index.d.ts +9 -2
- package/src/dxf-system/plugins/editor/Command/{PointDrag → Modify}/modifyDoor.d.ts +2 -2
- package/src/dxf-system/plugins/editor/Command/{PointDrag → Modify}/modifyLine.d.ts +2 -2
- package/src/dxf-system/plugins/editor/Command/{PointDrag → Modify}/modifyWindow.d.ts +2 -2
- package/src/dxf-system/plugins/editor/pages/ContextualToolbar.vue.d.ts +19 -0
- package/src/dxf-system/plugins/editor/pages/EditorTool/More.vue.d.ts +6 -0
- package/src/dxf-system/plugins/editor/pages/components/Button.vue.d.ts +1 -1
- package/src/dxf-system/plugins/editor/pages/components/ChildPage.vue.d.ts +10 -0
- package/src/dxf-system/plugins/editor/pages/components/DxfPreview.vue.d.ts +9 -0
- package/src/dxf-system/plugins/editor/pages/components/Input.vue.d.ts +2 -0
- package/src/dxf-system/plugins/editor/pages/components/ModelView.vue.d.ts +11 -0
- package/src/dxf-system/plugins/editor/pages/components/ToolToggle.vue.d.ts +1 -1
- package/src/dxf-system/plugins/editor/pages/components/ToolbarButton.vue.d.ts +29 -0
- package/src/dxf-system/plugins/editor/utils/ContextualToolbarObject3D.d.ts +1024 -0
- package/src/dxf-system/plugins/editor/utils/ndcLengthToWorld.d.ts +1 -0
- package/src/index.css +1 -1
- package/src/index3.js +1 -1
- package/src/utils/tools/createVueApp.d.ts +3 -1
- /package/src/{pages → components}/DxfPreview.vue.d.ts +0 -0
package/package.json
CHANGED
|
@@ -20,8 +20,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
20
20
|
onMin?: ((...args: any[]) => any) | undefined;
|
|
21
21
|
onMax?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
24
23
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
showCancel: boolean;
|
|
27
27
|
showMax: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LineSegment } from '../../../../utils/algorithms/LineSegment';
|
|
2
2
|
import { Command } from './Command';
|
|
3
3
|
import { LineUserData } from '../../../type';
|
|
4
|
+
import { ContextualToolbarObject3D } from '../utils/ContextualToolbarObject3D';
|
|
4
5
|
import * as THREE from "three";
|
|
5
6
|
export declare class DefaultCommand extends Command<{
|
|
6
7
|
selectLineChange: {};
|
|
@@ -9,7 +10,12 @@ export declare class DefaultCommand extends Command<{
|
|
|
9
10
|
}> {
|
|
10
11
|
static name: string;
|
|
11
12
|
container: THREE.Group<THREE.Object3DEventMap>;
|
|
13
|
+
contextualToolbarObject3D: ContextualToolbarObject3D | null;
|
|
12
14
|
onAddFromParent(): void;
|
|
15
|
+
/** 选择变化事件处理
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
private onSelectLineChange;
|
|
13
19
|
selectLines: LineSegment<LineUserData>[];
|
|
14
20
|
selectLineObject3D: THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
15
21
|
selectHoleLine: null | LineSegment;
|
|
@@ -42,6 +48,10 @@ export declare class DefaultCommand extends Command<{
|
|
|
42
48
|
/** 显示选择框
|
|
43
49
|
*/
|
|
44
50
|
showSelectBox(): void;
|
|
51
|
+
/** 注册UI
|
|
52
|
+
* @param next
|
|
53
|
+
*/
|
|
54
|
+
UI(next: any): void;
|
|
45
55
|
/** 开始执行
|
|
46
56
|
* @param next
|
|
47
57
|
*/
|
|
@@ -3,9 +3,10 @@ import { ComponentContainer } from '../../../../../utils/ecs';
|
|
|
3
3
|
import { WindowValueOption } from './modifyWindow';
|
|
4
4
|
import { DoorValueOption } from './modifyDoor';
|
|
5
5
|
import { LineValueOption } from './modifyLine';
|
|
6
|
+
import { LineSegment } from '../../../../../utils/algorithms/LineSegment';
|
|
6
7
|
import * as THREE from "three";
|
|
7
8
|
type DataType = WindowValueOption | DoorValueOption | LineValueOption;
|
|
8
|
-
export declare class
|
|
9
|
+
export declare class Modify extends Command<{
|
|
9
10
|
pointerMove: {
|
|
10
11
|
point: THREE.Vector3;
|
|
11
12
|
};
|
|
@@ -20,7 +21,13 @@ export declare class PointDrag extends Command<{
|
|
|
20
21
|
* @param next
|
|
21
22
|
* @returns
|
|
22
23
|
*/
|
|
23
|
-
selectLine(
|
|
24
|
+
selectLine(): Promise<LineSegment<Record<string, any>> | undefined>;
|
|
25
|
+
distribute(next: any, line?: LineSegment): Promise<void>;
|
|
26
|
+
/** 执行修改
|
|
27
|
+
* @param next
|
|
28
|
+
* @param line
|
|
29
|
+
*/
|
|
30
|
+
modify(next: any, line: LineSegment): Promise<void>;
|
|
24
31
|
verify(next: any, data: DataType): Promise<void>;
|
|
25
32
|
/** 执行完成
|
|
26
33
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LineUserData } from '../../../../type';
|
|
2
|
-
import {
|
|
2
|
+
import { Modify } from '.';
|
|
3
3
|
import { LineSegment } from '../../../../../utils/algorithms/LineSegment';
|
|
4
4
|
export type DoorValueOption = {
|
|
5
5
|
type: "door";
|
|
@@ -37,4 +37,4 @@ export type DoorValueOption = {
|
|
|
37
37
|
* @param line
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
|
-
export declare function modifyDoor(context:
|
|
40
|
+
export declare function modifyDoor(context: Modify, line: LineSegment<LineUserData>): Promise<DoorValueOption>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LineUserData } from '../../../../type';
|
|
2
|
-
import {
|
|
2
|
+
import { Modify } from './index.ts';
|
|
3
3
|
import { LineSegment } from '../../../../../utils/algorithms/LineSegment';
|
|
4
4
|
export type LineValueOption = {
|
|
5
5
|
type: "line";
|
|
@@ -31,4 +31,4 @@ export type LineValueOption = {
|
|
|
31
31
|
};
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
|
-
export declare function modifyLine(context:
|
|
34
|
+
export declare function modifyLine(context: Modify, line: LineSegment<LineUserData>): Promise<LineValueOption>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Modify } from '.';
|
|
2
2
|
import { LineSegment } from '../../../../../utils/algorithms/LineSegment';
|
|
3
3
|
import { HoleData, LineUserData } from '../../../../type';
|
|
4
4
|
export type WindowValueOption = {
|
|
@@ -22,4 +22,4 @@ export type WindowValueOption = {
|
|
|
22
22
|
width: number;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
export declare function modifyWindow(context:
|
|
25
|
+
export declare function modifyWindow(context: Modify, winLine: LineSegment, line: LineSegment<LineUserData>): Promise<WindowValueOption>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LineUserData } from '../../../type';
|
|
2
|
+
import { LineSegment } from '../../../../utils/algorithms/LineSegment';
|
|
3
|
+
import { Ref } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
targetLine: Ref<LineSegment<LineUserData & {
|
|
6
|
+
groundClearance?: number;
|
|
7
|
+
}>>;
|
|
8
|
+
type: Ref<"wall" | "hole">;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
change: (...args: any[]) => void;
|
|
12
|
+
delete: (...args: any[]) => void;
|
|
13
|
+
edit: (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DxfSystem } from '../../../../DxfSystem';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
dxfSystem: DxfSystem;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -10,8 +10,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
11
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
+
iconSize: string;
|
|
13
14
|
titleColor: string;
|
|
14
15
|
titleSize: string;
|
|
15
|
-
iconSize: string;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
17
17
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
comp: any;
|
|
3
|
+
compProps: any;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
back: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
src: string;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly src?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
7
|
+
container: HTMLDivElement;
|
|
8
|
+
}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -2,10 +2,12 @@ type __VLS_PublicProps = {
|
|
|
2
2
|
"modelValue"?: number;
|
|
3
3
|
};
|
|
4
4
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
input: (...args: any[]) => void;
|
|
5
6
|
blur: (...args: any[]) => void;
|
|
6
7
|
change: (...args: any[]) => void;
|
|
7
8
|
"update:modelValue": (value: number) => void;
|
|
8
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
9
11
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
10
12
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
11
13
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
url: string;
|
|
3
|
+
type?: string | undefined;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly url?: string | undefined;
|
|
6
|
+
readonly type?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
9
|
+
container: HTMLDivElement;
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -13,8 +13,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
+
iconSize: string;
|
|
16
17
|
titleColor: string;
|
|
17
18
|
titleSize: string;
|
|
18
|
-
iconSize: string;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
20
|
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
iconSize?: string;
|
|
4
|
+
iconColor?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
hover?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLButtonElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
click: (...args: any[]) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
iconSize: string;
|
|
21
|
+
iconColor: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|