lucid-extension-sdk 0.0.191 → 0.0.192
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/package.json +1 -1
- package/ui/panel.d.ts +2 -2
- package/ui/panel.js +8 -4
package/package.json
CHANGED
package/ui/panel.d.ts
CHANGED
|
@@ -53,11 +53,11 @@ export declare abstract class Panel extends IframeUI {
|
|
|
53
53
|
protected readonly config: PanelConfig;
|
|
54
54
|
constructor(client: EditorClient, config: PanelConfig);
|
|
55
55
|
/**
|
|
56
|
-
* Show this panel in
|
|
56
|
+
* Show this panel if the panel is in the rightDock and it is not already visible.
|
|
57
57
|
*/
|
|
58
58
|
show(): void;
|
|
59
59
|
/**
|
|
60
|
-
* Hide this panel if it is currently visible.
|
|
60
|
+
* Hide this panel if the panel is in the rightDock and it is currently visible.
|
|
61
61
|
*/
|
|
62
62
|
hide(): void;
|
|
63
63
|
}
|
package/ui/panel.js
CHANGED
|
@@ -44,16 +44,20 @@ class Panel extends iframeui_1.IframeUI {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Show this panel in
|
|
47
|
+
* Show this panel if the panel is in the rightDock and it is not already visible.
|
|
48
48
|
*/
|
|
49
49
|
show() {
|
|
50
|
-
this.
|
|
50
|
+
if (this.config.location == PanelLocation.RightDock) {
|
|
51
|
+
this.client.sendCommand("spn" /* CommandName.ShowPanel */, { 'n': this.messageActionName });
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
/**
|
|
53
|
-
* Hide this panel if it is currently visible.
|
|
55
|
+
* Hide this panel if the panel is in the rightDock and it is currently visible.
|
|
54
56
|
*/
|
|
55
57
|
hide() {
|
|
56
|
-
this.
|
|
58
|
+
if (this.config.location == PanelLocation.RightDock) {
|
|
59
|
+
this.client.sendCommand("hp" /* CommandName.HidePanel */, { 'n': this.messageActionName });
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
exports.Panel = Panel;
|