dochub-sdk 0.1.187 → 0.1.189

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.
@@ -164,9 +164,11 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
164
164
  */
165
165
  loadUISate() {
166
166
  const element: any = this['$el'];
167
- element.style.height = this.savedUIState?.styleHeight;
168
- element.style.width = this.savedUIState?.styleWidth;
169
- element.style.filter = this.savedUIState?.styleFilter;
167
+ if (element?.style) {
168
+ element.style.height = this.savedUIState?.styleHeight;
169
+ element.style.width = this.savedUIState?.styleWidth;
170
+ element.style.filter = this.savedUIState?.styleFilter;
171
+ }
170
172
  }
171
173
  /**
172
174
  * "Замораживает" представление на период обновления
@@ -30,4 +30,8 @@ export interface IDocHubRouter {
30
30
  * Удаляет наблюдателя за текущим location
31
31
  */
32
32
  unregisterLocationWatcher(watcher: DocHubLocationWatcher);
33
+ /**
34
+ * Возвращает текущий location
35
+ */
36
+ getLocation():Promise<URL>;
33
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.187",
3
+ "version": "0.1.189",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",