@netless/fastboard 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10 -8
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/WhiteboardApp.ts +13 -8
- package/src/internal/Instance.tsx +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2195,8 +2195,6 @@ applyStyles(style);
|
|
|
2195
2195
|
class WhiteboardApp {
|
|
2196
2196
|
constructor(config) {
|
|
2197
2197
|
__publicField(this, "_instance");
|
|
2198
|
-
__publicField(this, "_target", null);
|
|
2199
|
-
__publicField(this, "_collector", null);
|
|
2200
2198
|
this.config = config;
|
|
2201
2199
|
this._instance = new Instance(config);
|
|
2202
2200
|
}
|
|
@@ -2213,15 +2211,19 @@ class WhiteboardApp {
|
|
|
2213
2211
|
return this._instance.i18n;
|
|
2214
2212
|
}
|
|
2215
2213
|
get target() {
|
|
2216
|
-
return this.
|
|
2214
|
+
return this._instance.target;
|
|
2217
2215
|
}
|
|
2218
2216
|
get collector() {
|
|
2219
|
-
return this.
|
|
2217
|
+
return this._instance.collector;
|
|
2220
2218
|
}
|
|
2221
2219
|
bindElement(target, collector) {
|
|
2222
|
-
this.
|
|
2223
|
-
|
|
2224
|
-
|
|
2220
|
+
this._instance.bindElement(target || null, collector || null);
|
|
2221
|
+
}
|
|
2222
|
+
get layout() {
|
|
2223
|
+
return this._instance.config.layout;
|
|
2224
|
+
}
|
|
2225
|
+
updateLayout(layout) {
|
|
2226
|
+
this._instance.updateLayout(layout);
|
|
2225
2227
|
}
|
|
2226
2228
|
insertDocs(params) {
|
|
2227
2229
|
return this._instance.insertDocs(params);
|
|
@@ -2242,7 +2244,7 @@ class WhiteboardApp {
|
|
|
2242
2244
|
return this._instance.dispose();
|
|
2243
2245
|
}
|
|
2244
2246
|
}
|
|
2245
|
-
const version = "0.0.
|
|
2247
|
+
const version = "0.0.8";
|
|
2246
2248
|
const EMPTY_ARRAY = [];
|
|
2247
2249
|
function useForceUpdate() {
|
|
2248
2250
|
const [, forceUpdate_] = useState({});
|