diagram plugins
This commit is contained in:
parent
1cdb558823
commit
01a9501f86
29 changed files with 1781 additions and 267 deletions
19
src-tauri/wit/diagram_connector/world.wit
Normal file
19
src-tauri/wit/diagram_connector/world.wit
Normal file
|
@ -0,0 +1,19 @@
|
|||
package component:diagram-connector;
|
||||
|
||||
interface host {
|
||||
log: func(message: string);
|
||||
listen-for-component-text-changes: func(diagram-connect-name: string, component-id: string);
|
||||
set-component-text: func(component-id: string, text: string);
|
||||
address-and-way: func(time-text: string) -> result<tuple<string, option<u32>>>;
|
||||
}
|
||||
|
||||
interface diagram-connector {
|
||||
init: func();
|
||||
name: func() -> string;
|
||||
on-component-text-changed: func(component-id: string, text: string);
|
||||
}
|
||||
|
||||
world component {
|
||||
import host;
|
||||
export diagram-connector;
|
||||
}
|
Reference in a new issue