Skip to content

Commit

Permalink
feat(stage): runtime添加getApp方法
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed May 27, 2022
1 parent 4a19017 commit 0397c68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/stage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"dependencies": {
"@scena/guides": "^0.17.0",
"@tmagic/core": "^1.0.0-rc.3",
"@tmagic/schema": "^1.0.0-rc.3",
"@tmagic/utils": "^1.0.0-rc.3",
"events": "^3.3.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/stage/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import { MoveableOptions } from 'react-moveable/declaration/types';

import Core from '@tmagic/core';
import { Id, MApp, MNode } from '@tmagic/schema';

import { GuidesType } from './const';
Expand Down Expand Up @@ -95,6 +96,7 @@ export interface RemoveData {
}

export interface Runtime {
getApp?: () => Core;
beforeSelect?: (el: HTMLElement) => Promise<boolean> | boolean;
getSnapElements?: (el?: HTMLElement) => HTMLElement[];
updateRootConfig: (config: MApp) => void;
Expand Down

0 comments on commit 0397c68

Please sign in to comment.