lucid-extension-sdk 0.0.351 → 0.0.353

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.
@@ -16,7 +16,7 @@ function deserializeShadow(shadow) {
16
16
  return {
17
17
  distance: Math.sqrt(shadow['x'] * shadow['x'] + shadow['y'] * shadow['y']),
18
18
  angle: (_a = shadow['ang']) !== null && _a !== void 0 ? _a : Math.atan2(shadow['y'], shadow['x']),
19
- blur: shadow['b'],
19
+ blur: Math.max(shadow['b'], 0),
20
20
  color: shadow['c'],
21
21
  };
22
22
  }
@@ -176,7 +176,7 @@ function insertNewChain(connectedChains, backMapping, anchorMapping, anchor, cha
176
176
  var _a, _b, _c, _d;
177
177
  const anchorBlockers = new Set([...chain].filter((key) => anchorMapping.has(key)).map((key) => { var _a, _b; return (_b = (_a = anchorMapping.get(key)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : -1; }));
178
178
  const anchorMergeTarget = (_b = (_a = anchorMapping.get(anchor)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : -1;
179
- const nonAnchorMergeTarget = anchor !== null ? (_d = (_c = backMapping.get(anchor)) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : -1 : -1;
179
+ const nonAnchorMergeTarget = anchor !== null ? ((_d = (_c = backMapping.get(anchor)) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : -1) : -1;
180
180
  const targetIndex = Math.max(anchorMergeTarget, nonAnchorMergeTarget);
181
181
  const isAnchorTarget = targetIndex !== nonAnchorMergeTarget;
182
182
  const mostRecentBlocker = Math.max(...anchorBlockers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.351",
3
+ "version": "0.0.353",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",