lucid-extension-sdk
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "sdk/index.js", |
@@ -18,3 +18,3 @@ import { JsonObject, JsonSerializable } from '../../lucid-extension-sdk'; | ||
*/ | ||
properties: JsonObject; | ||
properties?: JsonObject; | ||
/** | ||
@@ -21,0 +21,0 @@ * If specified, the stencil to use for a custom shape. This is not typically set directly; use |
@@ -62,4 +62,6 @@ "use strict"; | ||
block.setBoundingBox(def.boundingBox); | ||
for (const key in def.properties) { | ||
block.properties.set(key, def.properties[key]); | ||
if (def.properties) { | ||
for (const key in def.properties) { | ||
block.properties.set(key, def.properties[key]); | ||
} | ||
} | ||
@@ -66,0 +68,0 @@ return block; |
180373
4214