@vyr/builtin 0.0.1
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/build/common/example.d.ts +5 -0
- package/build/common/index.d.ts +3 -0
- package/build/common/provider.d.ts +5 -0
- package/build/common/save.d.ts +4 -0
- package/build/component/AttrItem.vue.d.ts +11 -0
- package/build/component/CodeEditor.vue.d.ts +11 -0
- package/build/component/ColorItem.vue.d.ts +27 -0
- package/build/component/Directory.vue.d.ts +33 -0
- package/build/component/ErrorComponent.vue.d.ts +13 -0
- package/build/component/EventItem.vue.d.ts +19 -0
- package/build/component/Graph.vue.d.ts +18 -0
- package/build/component/InputItem.vue.d.ts +15 -0
- package/build/component/InteractionItem.vue.d.ts +19 -0
- package/build/component/LoadingComponent.vue.d.ts +13 -0
- package/build/component/RuleItem.vue.d.ts +12 -0
- package/build/component/Timeline.vue.d.ts +7 -0
- package/build/component/VariableItem.vue.d.ts +14 -0
- package/build/component/WindowSetting.vue.d.ts +3 -0
- package/build/component/index.d.ts +13 -0
- package/build/fragment/AnimationUnitFragment.vue.d.ts +6 -0
- package/build/fragment/BaseFragment.vue.d.ts +6 -0
- package/build/fragment/DatasetFragment.vue.d.ts +3 -0
- package/build/fragment/DatasetInspectorFragment.vue.d.ts +13 -0
- package/build/fragment/DynamicFragment.vue.d.ts +3 -0
- package/build/fragment/EventsInspectorFragment.vue.d.ts +21 -0
- package/build/fragment/HTMLFragment.vue.d.ts +16 -0
- package/build/fragment/InteractionInspectorFragment.vue.d.ts +21 -0
- package/build/fragment/PrefabFragment.vue.d.ts +3 -0
- package/build/fragment/PrefabInstanceFragment.vue.d.ts +3 -0
- package/build/fragment/SchedulerFragment.vue.d.ts +3 -0
- package/build/fragment/StyleFragment.vue.d.ts +8 -0
- package/build/index.d.ts +10 -0
- package/build/locale/Language.d.ts +3 -0
- package/build/locale/LanguageProvider.d.ts +323 -0
- package/build/locale/index.d.ts +2 -0
- package/build/option/Animation.d.ts +25 -0
- package/build/option/Color.d.ts +5 -0
- package/build/option/Dataset.d.ts +6 -0
- package/build/option/Dynamic.d.ts +5 -0
- package/build/option/HTML.d.ts +41 -0
- package/build/option/Net.d.ts +6 -0
- package/build/option/Preset.d.ts +8 -0
- package/build/option/Style.d.ts +76 -0
- package/build/option/Variable.d.ts +5 -0
- package/build/option/index.d.ts +17 -0
- package/build/preset/graphics.d.ts +8 -0
- package/build/preset/index.d.ts +3 -0
- package/build/preset/scheduler.d.ts +8 -0
- package/build/service/footer/action/AddDirAction.d.ts +10 -0
- package/build/service/footer/action/AddMoreAction.d.ts +26 -0
- package/build/service/footer/action/AddScriptAction.d.ts +25 -0
- package/build/service/footer/action/BackupAction.d.ts +10 -0
- package/build/service/footer/action/ControllerAction.d.ts +39 -0
- package/build/service/footer/action/CopyAction.d.ts +13 -0
- package/build/service/footer/action/CutAction.d.ts +13 -0
- package/build/service/footer/action/DeleteAction.d.ts +14 -0
- package/build/service/footer/action/EditFileAction.d.ts +15 -0
- package/build/service/footer/action/RenameAction.d.ts +13 -0
- package/build/service/footer/action/SelectAllAction.d.ts +14 -0
- package/build/service/footer/action/StickupAction.d.ts +16 -0
- package/build/service/footer/action/index.d.ts +11 -0
- package/build/service/footer/action/raw/typescriptScript.d.ts +5 -0
- package/build/service/footer/draggable/Draggable.d.ts +10 -0
- package/build/service/footer/draggable/index.d.ts +1 -0
- package/build/service/footer/index.d.ts +2 -0
- package/build/service/global/action/FooterAction.d.ts +18 -0
- package/build/service/global/action/RedoAction.d.ts +9 -0
- package/build/service/global/action/SidebarAction.d.ts +14 -0
- package/build/service/global/action/UndoAction.d.ts +9 -0
- package/build/service/global/action/index.d.ts +4 -0
- package/build/service/global/draggable/GraphDraggable.d.ts +14 -0
- package/build/service/global/draggable/index.d.ts +1 -0
- package/build/service/global/index.d.ts +2 -0
- package/build/service/global/scripts/index.d.ts +5 -0
- package/build/service/header/action/ExportProjectAction.d.ts +9 -0
- package/build/service/header/action/ExportSceneAction.d.ts +9 -0
- package/build/service/header/action/PreviewSceneAction.d.ts +14 -0
- package/build/service/header/action/index.d.ts +3 -0
- package/build/service/header/index.d.ts +1 -0
- package/build/service/index.d.ts +6 -0
- package/build/service/inspector/AnimationUnitViewer.vue.d.ts +7 -0
- package/build/service/inspector/DatasetInspector.vue.d.ts +7 -0
- package/build/service/inspector/DatasetViewer.vue.d.ts +7 -0
- package/build/service/inspector/DivViewer.vue.d.ts +7 -0
- package/build/service/inspector/DynamicViewer.vue.d.ts +7 -0
- package/build/service/inspector/EventsInspector.vue.d.ts +7 -0
- package/build/service/inspector/InteractionInspector.vue.d.ts +7 -0
- package/build/service/inspector/PrefabInstanceViewer.vue.d.ts +7 -0
- package/build/service/inspector/PrefabViewer.vue.d.ts +7 -0
- package/build/service/inspector/ServiceSchedulerViewer.vue.d.ts +7 -0
- package/build/service/inspector/ServiceViewer.vue.d.ts +7 -0
- package/build/service/inspector/StyleViewer.vue.d.ts +7 -0
- package/build/service/inspector/asset/AssetInspector.vue.d.ts +3 -0
- package/build/service/inspector/draggable/Draggable.d.ts +10 -0
- package/build/service/inspector/draggable/index.d.ts +1 -0
- package/build/service/inspector/index.d.ts +1 -0
- package/build/service/inspector/scene/SceneInspector.vue.d.ts +3 -0
- package/build/service/sidebar/asset/Asset.vue.d.ts +3 -0
- package/build/service/sidebar/asset/AssetItem.vue.d.ts +18 -0
- package/build/service/sidebar/asset/AssetNavigator.d.ts +28 -0
- package/build/service/sidebar/asset/action/AddNodeAction.d.ts +54 -0
- package/build/service/sidebar/asset/action/ControllerAction.d.ts +36 -0
- package/build/service/sidebar/asset/action/CopyAction.d.ts +14 -0
- package/build/service/sidebar/asset/action/CutAction.d.ts +14 -0
- package/build/service/sidebar/asset/action/DeleteAction.d.ts +15 -0
- package/build/service/sidebar/asset/action/RenameAction.d.ts +14 -0
- package/build/service/sidebar/asset/action/SaveAction.d.ts +14 -0
- package/build/service/sidebar/asset/action/StickupAction.d.ts +15 -0
- package/build/service/sidebar/asset/action/index.d.ts +8 -0
- package/build/service/sidebar/asset/draggable/Draggable.d.ts +14 -0
- package/build/service/sidebar/asset/draggable/index.d.ts +1 -0
- package/build/service/sidebar/asset/index.d.ts +3 -0
- package/build/service/sidebar/index.d.ts +2 -0
- package/build/service/sidebar/scene/Scene.vue.d.ts +3 -0
- package/build/service/sidebar/scene/SceneItem.vue.d.ts +18 -0
- package/build/service/sidebar/scene/SceneNavigator.d.ts +36 -0
- package/build/service/sidebar/scene/action/AddNodeAction.d.ts +54 -0
- package/build/service/sidebar/scene/action/AddServiceAction.d.ts +54 -0
- package/build/service/sidebar/scene/action/ControllerAction.d.ts +39 -0
- package/build/service/sidebar/scene/action/CopyAction.d.ts +14 -0
- package/build/service/sidebar/scene/action/CutAction.d.ts +14 -0
- package/build/service/sidebar/scene/action/DeleteAction.d.ts +15 -0
- package/build/service/sidebar/scene/action/RenameAction.d.ts +14 -0
- package/build/service/sidebar/scene/action/SaveAction.d.ts +14 -0
- package/build/service/sidebar/scene/action/StickupAction.d.ts +15 -0
- package/build/service/sidebar/scene/action/index.d.ts +9 -0
- package/build/service/sidebar/scene/draggable/Draggable.d.ts +14 -0
- package/build/service/sidebar/scene/draggable/index.d.ts +1 -0
- package/build/service/sidebar/scene/index.d.ts +3 -0
- package/build/singleton/index.d.ts +1 -0
- package/build/singleton/rightMenu.d.ts +10 -0
- package/package.json +25 -0
- package/src/shims-vue.d.ts +10 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
declare class RenameAction extends Action {
|
|
3
|
+
static id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
active(): boolean;
|
|
6
|
+
validator(e: KeyboardEvent): boolean;
|
|
7
|
+
updateRightMenu(): void;
|
|
8
|
+
updateShortcutkey(): void;
|
|
9
|
+
update(): void;
|
|
10
|
+
executeRightMenu(dataService: DataService): void;
|
|
11
|
+
executeShortcutkey(dataService: DataService): void;
|
|
12
|
+
execute(): void;
|
|
13
|
+
}
|
|
14
|
+
export { RenameAction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
declare class SaveAction extends Action {
|
|
3
|
+
static id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
active(): boolean;
|
|
6
|
+
validator(e: KeyboardEvent): boolean;
|
|
7
|
+
updateRightMenu(): void;
|
|
8
|
+
updateShortcutkey(): void;
|
|
9
|
+
update(): void;
|
|
10
|
+
executeRightMenu(dataService: DataService): void;
|
|
11
|
+
executeShortcutkey(dataService: DataService): void;
|
|
12
|
+
execute(): void;
|
|
13
|
+
}
|
|
14
|
+
export { SaveAction };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
import { AssetService } from "@vyr/service-asset";
|
|
3
|
+
declare class StickupAction extends Action {
|
|
4
|
+
static id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
active(): boolean;
|
|
7
|
+
validator(e: KeyboardEvent): boolean;
|
|
8
|
+
updateRightMenu(): void;
|
|
9
|
+
updateShortcutkey(): void;
|
|
10
|
+
update(): void;
|
|
11
|
+
executeRightMenu(dataService: DataService, assetService: AssetService): void;
|
|
12
|
+
executeShortcutkey(dataService: DataService, assetService: AssetService): void;
|
|
13
|
+
execute(): void;
|
|
14
|
+
}
|
|
15
|
+
export { StickupAction };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ControllerAction';
|
|
2
|
+
export * from './AddNodeAction';
|
|
3
|
+
export * from './SaveAction';
|
|
4
|
+
export * from './CopyAction';
|
|
5
|
+
export * from './CutAction';
|
|
6
|
+
export * from './StickupAction';
|
|
7
|
+
export * from './DeleteAction';
|
|
8
|
+
export * from './RenameAction';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DraggableData, DraggableEndType } from '@vyr/declare';
|
|
2
|
+
import { Draggable as _Draggable } from "@vyr/runtime";
|
|
3
|
+
import { Descriptor } from "@vyr/engine";
|
|
4
|
+
import { VirtualNode } from "@vyr/service-rpc";
|
|
5
|
+
declare class Draggable extends _Draggable<Descriptor> {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
isVirtualNode(dragData: DraggableData<Descriptor | VirtualNode>): dragData is DraggableData<VirtualNode>;
|
|
8
|
+
starter(dragData: Descriptor): boolean;
|
|
9
|
+
validator(dragData: DraggableData<Descriptor | VirtualNode>, targetData: DraggableData<Descriptor>): boolean;
|
|
10
|
+
limit(dragData: DraggableData<Descriptor | VirtualNode>, targetData: DraggableData<Descriptor>, type: DraggableEndType): DraggableEndType;
|
|
11
|
+
finished(dragData: DraggableData<Descriptor | VirtualNode>, targetData: DraggableData<Descriptor>, type: DraggableEndType): void;
|
|
12
|
+
prefab(dragData: DraggableData<VirtualNode>, targetData: DraggableData<Descriptor>): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export { Draggable };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Draggable';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TreeOption } from '@vyr/design';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
data: {
|
|
4
|
+
default(): TreeOption;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
visible: (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
data: {
|
|
10
|
+
default(): TreeOption;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{
|
|
13
|
+
onVisible?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
data: TreeOption;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DraggableData, DraggableEndType } from '@vyr/declare';
|
|
2
|
+
import { Descriptor, DeserializationObject } from "@vyr/engine";
|
|
3
|
+
import { Draggable, SidebarNavigator } from "@vyr/runtime";
|
|
4
|
+
import { Job } from "@vyr/remote";
|
|
5
|
+
import { Option } from "@vyr/design";
|
|
6
|
+
import { VirtualNode } from "@vyr/service-rpc";
|
|
7
|
+
declare class SceneNavigator extends SidebarNavigator {
|
|
8
|
+
static key: string;
|
|
9
|
+
createSceneOption: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
sceneOptions: Option[];
|
|
14
|
+
addScene: boolean;
|
|
15
|
+
newSceneName: string;
|
|
16
|
+
currentScene: string;
|
|
17
|
+
visibilityMap: {
|
|
18
|
+
[k: string]: boolean;
|
|
19
|
+
};
|
|
20
|
+
constructor();
|
|
21
|
+
active(): void;
|
|
22
|
+
unactive(): void;
|
|
23
|
+
private _updateScenes;
|
|
24
|
+
selectRootNode(): Promise<void>;
|
|
25
|
+
createScene(): Promise<void>;
|
|
26
|
+
deleteScene(index: number): Promise<void>;
|
|
27
|
+
updateVisibilityMapBySearch(): {
|
|
28
|
+
[k: string]: boolean;
|
|
29
|
+
};
|
|
30
|
+
finishedWhereInspectorDraggable(draggable: Draggable, dragData: DraggableData<VirtualNode>, targetData: DraggableData, type: DraggableEndType): void;
|
|
31
|
+
ensureReadonlyWhereRoutine(client: string): boolean;
|
|
32
|
+
saveWhereRoutine(content: DeserializationObject<Descriptor>): void;
|
|
33
|
+
remoteTransformEvent(task: InstanceType<typeof Job['invoke']['transform']['Response']>): void;
|
|
34
|
+
remotePickEvent(task: InstanceType<typeof Job['invoke']['pick']['Response']>): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
export { SceneNavigator };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Descriptor } from "@vyr/engine";
|
|
2
|
+
import { Action } from "@vyr/runtime";
|
|
3
|
+
declare class AddNodeAction extends Action {
|
|
4
|
+
static id: string;
|
|
5
|
+
static generate: (label: string, Class: typeof Descriptor) => {
|
|
6
|
+
label: string;
|
|
7
|
+
update(): void;
|
|
8
|
+
validator(): boolean;
|
|
9
|
+
execute(): void;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly value: number;
|
|
12
|
+
order: number;
|
|
13
|
+
trigger: number;
|
|
14
|
+
show: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
children: Action[];
|
|
17
|
+
active(): boolean;
|
|
18
|
+
};
|
|
19
|
+
generate: (label: string, Class: typeof Descriptor) => {
|
|
20
|
+
label: string;
|
|
21
|
+
update(): void;
|
|
22
|
+
validator(): boolean;
|
|
23
|
+
execute(): void;
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly value: number;
|
|
26
|
+
order: number;
|
|
27
|
+
trigger: number;
|
|
28
|
+
show: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
children: Action[];
|
|
31
|
+
active(): boolean;
|
|
32
|
+
};
|
|
33
|
+
label: string;
|
|
34
|
+
order: number;
|
|
35
|
+
children: {
|
|
36
|
+
label: string;
|
|
37
|
+
update(): void;
|
|
38
|
+
validator(): boolean;
|
|
39
|
+
execute(): void;
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly value: number;
|
|
42
|
+
order: number;
|
|
43
|
+
trigger: number;
|
|
44
|
+
show: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
children: Action[];
|
|
47
|
+
active(): boolean;
|
|
48
|
+
}[];
|
|
49
|
+
active(): boolean;
|
|
50
|
+
update(): void;
|
|
51
|
+
validator(): boolean;
|
|
52
|
+
execute(): void;
|
|
53
|
+
}
|
|
54
|
+
export { AddNodeAction };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Action } from "@vyr/runtime";
|
|
2
|
+
import { Descriptor } from "@vyr/engine";
|
|
3
|
+
declare class AddServiceAction extends Action {
|
|
4
|
+
static id: string;
|
|
5
|
+
static generate: (label: string, Class: typeof Descriptor) => {
|
|
6
|
+
label: string;
|
|
7
|
+
update(): void;
|
|
8
|
+
validator(): boolean;
|
|
9
|
+
execute(): void;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly value: number;
|
|
12
|
+
order: number;
|
|
13
|
+
trigger: number;
|
|
14
|
+
show: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
children: Action[];
|
|
17
|
+
active(): boolean;
|
|
18
|
+
};
|
|
19
|
+
generate: (label: string, Class: typeof Descriptor) => {
|
|
20
|
+
label: string;
|
|
21
|
+
update(): void;
|
|
22
|
+
validator(): boolean;
|
|
23
|
+
execute(): void;
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly value: number;
|
|
26
|
+
order: number;
|
|
27
|
+
trigger: number;
|
|
28
|
+
show: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
children: Action[];
|
|
31
|
+
active(): boolean;
|
|
32
|
+
};
|
|
33
|
+
label: string;
|
|
34
|
+
order: number;
|
|
35
|
+
children: {
|
|
36
|
+
label: string;
|
|
37
|
+
update(): void;
|
|
38
|
+
validator(): boolean;
|
|
39
|
+
execute(): void;
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly value: number;
|
|
42
|
+
order: number;
|
|
43
|
+
trigger: number;
|
|
44
|
+
show: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
children: Action[];
|
|
47
|
+
active(): boolean;
|
|
48
|
+
}[];
|
|
49
|
+
active(): boolean;
|
|
50
|
+
update(): void;
|
|
51
|
+
validator(): boolean;
|
|
52
|
+
execute(): void;
|
|
53
|
+
}
|
|
54
|
+
export { AddServiceAction };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Descriptor } from '@vyr/engine';
|
|
2
|
+
import { Action, DataService } from '@vyr/runtime';
|
|
3
|
+
import { TreeOption } from '@vyr/design';
|
|
4
|
+
import { SceneService } from '@vyr/service-scene';
|
|
5
|
+
interface Controller {
|
|
6
|
+
expand: (item: Descriptor, type?: boolean) => void;
|
|
7
|
+
change: (items: Descriptor[]) => void;
|
|
8
|
+
search: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare class ControllerAction extends Action {
|
|
11
|
+
static id: string;
|
|
12
|
+
static options: string[];
|
|
13
|
+
controller: Controller;
|
|
14
|
+
label: string;
|
|
15
|
+
code: string;
|
|
16
|
+
setController(controller: Controller): void;
|
|
17
|
+
active(): boolean;
|
|
18
|
+
validator(e: KeyboardEvent): boolean;
|
|
19
|
+
update(): void;
|
|
20
|
+
private useCurrentSelectItem;
|
|
21
|
+
private getVisibleCollection;
|
|
22
|
+
private expand;
|
|
23
|
+
private enter;
|
|
24
|
+
private quit;
|
|
25
|
+
private moveup;
|
|
26
|
+
private movedown;
|
|
27
|
+
changeTransform(): void;
|
|
28
|
+
execute(): void;
|
|
29
|
+
changeTransformController(clean?: boolean): void;
|
|
30
|
+
createScene: (name: string, sceneService?: SceneService) => void;
|
|
31
|
+
deleteScene: (url: string, sceneService?: SceneService) => void;
|
|
32
|
+
changeScene: (url: string, sceneService?: SceneService) => void;
|
|
33
|
+
changeSceneItem: (items: Descriptor[], sceneService?: SceneService, dataService?: DataService) => void;
|
|
34
|
+
getSceneItemVisible: (item: TreeOption) => boolean;
|
|
35
|
+
addSceneItem: (name: string, item: Descriptor, sceneService?: SceneService, dataService?: DataService) => void;
|
|
36
|
+
renameSceneItem: (name: string, item: Descriptor, sceneService?: SceneService, dataService?: DataService) => void;
|
|
37
|
+
setSceneItemVisible: (item: Descriptor, sceneService?: SceneService) => void;
|
|
38
|
+
}
|
|
39
|
+
export { ControllerAction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
declare class CopyAction extends Action {
|
|
3
|
+
static id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
active(): boolean;
|
|
6
|
+
validator(e: KeyboardEvent): boolean;
|
|
7
|
+
updateRightMenu(): void;
|
|
8
|
+
updateShortcutkey(): void;
|
|
9
|
+
update(): void;
|
|
10
|
+
executeRightMenu(dataService: DataService): void;
|
|
11
|
+
executeShortcutkey(dataService: DataService): void;
|
|
12
|
+
execute(): void;
|
|
13
|
+
}
|
|
14
|
+
export { CopyAction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
declare class CutAction extends Action {
|
|
3
|
+
static id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
active(): boolean;
|
|
6
|
+
validator(e: KeyboardEvent): boolean;
|
|
7
|
+
updateRightMenu(): void;
|
|
8
|
+
updateShortcutkey(): void;
|
|
9
|
+
update(): void;
|
|
10
|
+
executeRightMenu(dataService: DataService): void;
|
|
11
|
+
executeShortcutkey(dataService: DataService): void;
|
|
12
|
+
execute(): void;
|
|
13
|
+
}
|
|
14
|
+
export { CutAction };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
import { SceneService } from "@vyr/service-scene";
|
|
3
|
+
declare class DeleteAction extends Action {
|
|
4
|
+
static id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
active(): boolean;
|
|
7
|
+
validator(e: KeyboardEvent): boolean;
|
|
8
|
+
updateRightMenu(): void;
|
|
9
|
+
updateShortcutkey(): void;
|
|
10
|
+
update(): void;
|
|
11
|
+
executeRightMenu(dataService: DataService, sceneService: SceneService): void;
|
|
12
|
+
executeShortcutkey(dataService: DataService, sceneService: SceneService): void;
|
|
13
|
+
execute(): void;
|
|
14
|
+
}
|
|
15
|
+
export { DeleteAction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
declare class RenameAction extends Action {
|
|
3
|
+
static id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
active(): boolean;
|
|
6
|
+
validator(e: KeyboardEvent): boolean;
|
|
7
|
+
updateRightMenu(): void;
|
|
8
|
+
updateShortcutkey(): void;
|
|
9
|
+
update(): void;
|
|
10
|
+
executeRightMenu(dataService: DataService): void;
|
|
11
|
+
executeShortcutkey(dataService: DataService): void;
|
|
12
|
+
execute(): void;
|
|
13
|
+
}
|
|
14
|
+
export { RenameAction };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
declare class SaveAction extends Action {
|
|
3
|
+
static id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
active(): boolean;
|
|
6
|
+
validator(e: KeyboardEvent): boolean;
|
|
7
|
+
updateRightMenu(): void;
|
|
8
|
+
updateShortcutkey(): void;
|
|
9
|
+
update(): void;
|
|
10
|
+
executeRightMenu(dataService: DataService): void;
|
|
11
|
+
executeShortcutkey(dataService: DataService): void;
|
|
12
|
+
execute(): void;
|
|
13
|
+
}
|
|
14
|
+
export { SaveAction };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action, DataService } from "@vyr/runtime";
|
|
2
|
+
import { SceneService } from "@vyr/service-scene";
|
|
3
|
+
declare class StickupAction extends Action {
|
|
4
|
+
static id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
active(): boolean;
|
|
7
|
+
validator(e: KeyboardEvent): boolean;
|
|
8
|
+
updateRightMenu(): void;
|
|
9
|
+
updateShortcutkey(): void;
|
|
10
|
+
update(): void;
|
|
11
|
+
executeRightMenu(dataService: DataService, sceneService: SceneService): void;
|
|
12
|
+
executeShortcutkey(dataService: DataService, sceneService: SceneService): void;
|
|
13
|
+
execute(): void;
|
|
14
|
+
}
|
|
15
|
+
export { StickupAction };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './ControllerAction';
|
|
2
|
+
export * from './AddServiceAction';
|
|
3
|
+
export * from './AddNodeAction';
|
|
4
|
+
export * from './SaveAction';
|
|
5
|
+
export * from './CopyAction';
|
|
6
|
+
export * from './CutAction';
|
|
7
|
+
export * from './StickupAction';
|
|
8
|
+
export * from './DeleteAction';
|
|
9
|
+
export * from './RenameAction';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DraggableData, DraggableEndType } from '@vyr/declare';
|
|
2
|
+
import { Draggable as _Draggable } from "@vyr/runtime";
|
|
3
|
+
import { Descriptor } from "@vyr/engine";
|
|
4
|
+
import { VirtualNode } from "@vyr/service-rpc";
|
|
5
|
+
declare class Draggable extends _Draggable<Descriptor> {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
isVirtualNode(dragData: DraggableData<Descriptor | VirtualNode>): dragData is DraggableData<VirtualNode>;
|
|
8
|
+
starter(dragData: Descriptor): boolean;
|
|
9
|
+
validator(dragData: DraggableData<Descriptor | VirtualNode>, targetData: DraggableData<Descriptor>): boolean;
|
|
10
|
+
limit(dragData: DraggableData<Descriptor | VirtualNode>, targetData: DraggableData<Descriptor>, type: DraggableEndType): DraggableEndType;
|
|
11
|
+
finished(dragData: DraggableData<Descriptor | VirtualNode>, targetData: DraggableData<Descriptor>, type: DraggableEndType): void;
|
|
12
|
+
prefab(dragData: DraggableData<VirtualNode>, targetData: DraggableData<Descriptor>): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export { Draggable };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Draggable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rightMenu';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action, ActionGroup } from "@vyr/runtime";
|
|
2
|
+
declare class RightMenu {
|
|
3
|
+
private status;
|
|
4
|
+
private vm;
|
|
5
|
+
constructor();
|
|
6
|
+
show(group: ActionGroup, x: number, y: number): Promise<void | Action>;
|
|
7
|
+
hide(): void;
|
|
8
|
+
}
|
|
9
|
+
declare const rightMenu: RightMenu;
|
|
10
|
+
export { RightMenu, rightMenu };
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vyr/builtin",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": " - Type Declarations",
|
|
5
|
+
"main": "",
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"vue": "3.5.22",
|
|
10
|
+
"@vyr/locale": "0.0.1",
|
|
11
|
+
"@vyr/declare": "0.0.1",
|
|
12
|
+
"@vyr/design": "0.0.1",
|
|
13
|
+
"@vyr/engine": "0.0.1",
|
|
14
|
+
"@vyr/runtime": "0.0.1",
|
|
15
|
+
"@vyr/service-asset": "0.0.1",
|
|
16
|
+
"@vyr/service-rpc": "0.0.1",
|
|
17
|
+
"@vyr/remote": "0.0.1",
|
|
18
|
+
"@vyr/service-graph": "0.0.1"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"**/*.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"typings": "./index.d.ts"
|
|
25
|
+
}
|