move CreateX functions to wcore (#275)

This commit is contained in:
Mike Sawka
2024-08-26 15:17:37 -07:00
committed by GitHub
parent 4e68211f22
commit f28bdccb5d
12 changed files with 151 additions and 140 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ function handleWSEventMessage(msg: WSEventType) {
return;
}
if (msg.eventtype == "layoutaction") {
const layoutAction: WSLayoutActionData = msg.data;
const layoutAction: LayoutActionData = msg.data;
const tabId = layoutAction.tabid;
const layoutModel = getLayoutModelForTabById(tabId);
switch (layoutAction.actiontype) {
+10 -10
View File
@@ -208,6 +208,16 @@ declare global {
data64: string;
};
// waveobj.LayoutActionData
type LayoutActionData = {
tabid: string;
actiontype: string;
blockid: string;
nodesize?: number;
indexarr?: number[];
magnified?: boolean;
};
// waveobj.LayoutState
type LayoutState = WaveObj & {
rootnode?: any;
@@ -525,16 +535,6 @@ declare global {
data64: string;
};
// eventbus.WSLayoutActionData
type WSLayoutActionData = {
tabid: string;
actiontype: string;
blockid: string;
nodesize?: number;
indexarr?: number[];
magnified?: boolean;
};
// webcmd.WSRpcCommand
type WSRpcCommand = {
wscommand: "rpc";