lucid-package 0.0.64 → 0.0.66
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
package/src/shapelibrary.js
CHANGED
|
@@ -70,12 +70,13 @@ async function createImageShapeLibrary(name, imagePath, config) {
|
|
|
70
70
|
width: dimen.width,
|
|
71
71
|
height: dimen.height,
|
|
72
72
|
strokeWidth: 0,
|
|
73
|
+
rounding: 0,
|
|
73
74
|
},
|
|
74
|
-
locked: lockedArray,
|
|
75
75
|
};
|
|
76
76
|
shapes.push(manifestShape);
|
|
77
77
|
// create shape file
|
|
78
78
|
const shapeFile = {
|
|
79
|
+
locked: lockedArray,
|
|
79
80
|
images: {
|
|
80
81
|
imageReference: {
|
|
81
82
|
path: file,
|
|
@@ -167,7 +168,7 @@ async function getShapeListJson(name, packagePath, port = 9901) {
|
|
|
167
168
|
'lcszVersion': '1',
|
|
168
169
|
'name': shapeName,
|
|
169
170
|
'i18n': {},
|
|
170
|
-
'locked':
|
|
171
|
+
'locked': shapeData['locked'],
|
|
171
172
|
'sourcePackage': {
|
|
172
173
|
'packageId': (_a = packageManifest['id']) !== null && _a !== void 0 ? _a : '__local__',
|
|
173
174
|
'version': packageManifest['version'],
|
|
@@ -211,7 +212,7 @@ async function getShapeListJson(name, packagePath, port = 9901) {
|
|
|
211
212
|
properties[outName] = shapeManifest['defaults'][key];
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
|
-
if (((_c =
|
|
215
|
+
if (((_c = shapeData['locked']) === null || _c === void 0 ? void 0 : _c.includes('aspectRatio')) && !properties['AspectRatio']) {
|
|
215
216
|
properties['AspectRatio'] =
|
|
216
217
|
(_d = shapeManifest['defaults']['width'] / shapeManifest['defaults']['height']) !== null && _d !== void 0 ? _d : 1;
|
|
217
218
|
}
|