web:fix init and build api
This commit is contained in:
9
doric-web/dist/index.js
vendored
9
doric-web/dist/index.js
vendored
@@ -5402,8 +5402,11 @@ ${content}
|
||||
}
|
||||
return Reflect.apply(sandbox.jsCallEntityMethod, this.panel, argumentsList);
|
||||
}
|
||||
init(frame, extra) {
|
||||
this.invokeEntityMethod("__init__", frame, extra ? JSON.stringify(extra) : undefined);
|
||||
init(extra) {
|
||||
this.invokeEntityMethod("__init__", extra ? JSON.stringify(extra) : undefined);
|
||||
}
|
||||
build(frame) {
|
||||
this.invokeEntityMethod("__build__", frame);
|
||||
}
|
||||
teardown() {
|
||||
for (let plugin of this.pluginInstances.values()) {
|
||||
@@ -5453,7 +5456,7 @@ ${content}
|
||||
divElement.style.height = '100%';
|
||||
this.append(divElement);
|
||||
this.context.rootNode.view = divElement;
|
||||
this.context.init({
|
||||
this.context.build({
|
||||
width: divElement.offsetWidth,
|
||||
height: divElement.offsetHeight,
|
||||
});
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user