feat(web): complete product workflow implementation
This commit is contained in:
36
web/protocol/blender-operator.ts
Normal file
36
web/protocol/blender-operator.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
export type BlenderOperatorPropertyType = "boolean" | "number" | "enum" | "string";
|
||||
|
||||
export type BlenderOperatorPropertyValue = string | number | boolean;
|
||||
|
||||
export interface BlenderOperatorEnumItem {
|
||||
value: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export interface BlenderOperatorPropertySpec {
|
||||
name: string;
|
||||
type: BlenderOperatorPropertyType;
|
||||
required: boolean;
|
||||
label?: string;
|
||||
description?: string;
|
||||
defaultValue?: BlenderOperatorPropertyValue;
|
||||
min?: number;
|
||||
max?: number;
|
||||
enumItems?: BlenderOperatorEnumItem[];
|
||||
}
|
||||
|
||||
export interface BlenderOperatorDescriptor {
|
||||
id: string;
|
||||
label: string;
|
||||
description?: string;
|
||||
family: string;
|
||||
context: "scene" | "object" | "main";
|
||||
backgroundSafe: true;
|
||||
properties: BlenderOperatorPropertySpec[];
|
||||
}
|
||||
|
||||
export interface BlenderOperatorInvocation {
|
||||
operator: string;
|
||||
properties?: Record<string, BlenderOperatorPropertyValue>;
|
||||
baseRevision?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user