lucid-extension-sdk 0.0.201 → 0.0.202
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/document/pageproxy.d.ts +5 -0
- package/document/pageproxy.js +5 -0
- package/package.json +1 -1
package/document/pageproxy.d.ts
CHANGED
|
@@ -73,6 +73,11 @@ export declare class PageProxy extends ElementProxy {
|
|
|
73
73
|
* @returns The added line
|
|
74
74
|
*/
|
|
75
75
|
addLine(def: LineDefinition): LineProxy;
|
|
76
|
+
/**
|
|
77
|
+
* Add a new image to this page
|
|
78
|
+
* @param def The definition of the new image to add
|
|
79
|
+
* @returns The added image block
|
|
80
|
+
*/
|
|
76
81
|
addImage(def: ImageDefinition): Promise<BlockProxy>;
|
|
77
82
|
/**
|
|
78
83
|
* Updates the page of this page
|
package/document/pageproxy.js
CHANGED
|
@@ -113,6 +113,11 @@ class PageProxy extends elementproxy_1.ElementProxy {
|
|
|
113
113
|
line.setEndpoint2(def.endpoint2);
|
|
114
114
|
return line;
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Add a new image to this page
|
|
118
|
+
* @param def The definition of the new image to add
|
|
119
|
+
* @returns The added image block
|
|
120
|
+
*/
|
|
116
121
|
async addImage(def) {
|
|
117
122
|
await this.client.loadBlockClasses(['UserImage2Block']);
|
|
118
123
|
return this.addBlock(Object.assign({ className: 'UserImage2Block' }, def));
|