lucid-extension-sdk 0.0.4 → 0.0.5
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
CHANGED
|
@@ -15,7 +15,7 @@ export interface BlockDefinition {
|
|
|
15
15
|
/**
|
|
16
16
|
* Additional properties to set on the block immediately after creation
|
|
17
17
|
*/
|
|
18
|
-
properties
|
|
18
|
+
properties?: JsonObject;
|
|
19
19
|
/**
|
|
20
20
|
* If specified, the stencil to use for a custom shape. This is not typically set directly; use
|
|
21
21
|
* PageProxy.getCustomShapeDefinition().
|
|
@@ -59,8 +59,10 @@ class PageProxy extends elementproxy_1.ElementProxy {
|
|
|
59
59
|
});
|
|
60
60
|
const block = this.client.getBlockProxy(id);
|
|
61
61
|
block.setBoundingBox(def.boundingBox);
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
if (def.properties) {
|
|
63
|
+
for (const key in def.properties) {
|
|
64
|
+
block.properties.set(key, def.properties[key]);
|
|
65
|
+
}
|
|
64
66
|
}
|
|
65
67
|
return block;
|
|
66
68
|
}
|