@bendyline/squisq 2.11.18 → 2.11.20

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/NOTICE.md CHANGED
@@ -11,7 +11,7 @@ Third-party components remain under their respective license terms.
11
11
  | genson-js | 0.0.8 | Apache-2.0 | https://github.com/aspecto-io/genson-js |
12
12
  | hast-util-from-html | 2.0.3 | MIT | https://github.com/syntax-tree/hast-util-from-html |
13
13
  | localforage | 1.10.0 | Apache-2.0 | https://github.com/localForage/localForage |
14
- | ngeohash | 0.6.3 | MIT | https://github.com/sunng87/node-geohash |
14
+ | ngeohash | 0.6.4 | MIT | https://github.com/sunng87/node-geohash |
15
15
  | remark-directive | 3.0.1 | MIT | https://github.com/remarkjs/remark-directive |
16
16
  | remark-frontmatter | 5.0.0 | MIT | https://github.com/remarkjs/remark-frontmatter |
17
17
  | remark-gfm | 4.0.1 | MIT | https://github.com/remarkjs/remark-gfm |
@@ -19,7 +19,7 @@ Third-party components remain under their respective license terms.
19
19
  | remark-parse | 11.0.0 | MIT | https://github.com/remarkjs/remark/tree/main/packages/remark-parse |
20
20
  | remark-stringify | 11.0.0 | MIT | https://github.com/remarkjs/remark/tree/main/packages/remark-stringify |
21
21
  | unified | 11.0.5 | MIT | https://unifiedjs.com |
22
- | @fortawesome/fontawesome-free _(bundled)_ | 7.2.0 | CC-BY-4.0 AND OFL-1.1 AND MIT | https://github.com/FortAwesome/Font-Awesome |
22
+ | @fortawesome/fontawesome-free _(bundled)_ | 7.3.1 | CC-BY-4.0 AND OFL-1.1 AND MIT | https://github.com/FortAwesome/Font-Awesome |
23
23
 
24
24
  The generated icon catalog incorporates Font Awesome Free metadata. Exact
25
25
  third-party license texts for bundled code and data are shipped in
@@ -5,10 +5,10 @@ and notice files are reproduced verbatim. When an npm tarball omits its
5
5
  repository license, the pinned upstream copy is vendored and identified below.
6
6
 
7
7
  COMPONENTS
8
- - @fortawesome/fontawesome-free@7.2.0 ((CC-BY-4.0 AND OFL-1.1 AND MIT)); files: LICENSE.txt
8
+ - @fortawesome/fontawesome-free@7.3.1 ((CC-BY-4.0 AND OFL-1.1 AND MIT)); files: LICENSE.txt
9
9
 
10
10
  ==============================================================================
11
- @fortawesome/fontawesome-free@7.2.0 - LICENSE.txt
11
+ @fortawesome/fontawesome-free@7.3.1 - LICENSE.txt
12
12
  ==============================================================================
13
13
  Fonticons, Inc. (https://fontawesome.com)
14
14
 
@@ -313,15 +313,17 @@ function snapPoints(box) {
313
313
  const right = box.cx + box.rx;
314
314
  const top = box.cy - box.ry;
315
315
  const bottom = box.cy + box.ry;
316
+ const radius = Math.max(0, Math.min(box.radius ?? 0, box.rx, box.ry));
317
+ const inset = radius * (1 - Math.SQRT1_2);
316
318
  return [
317
319
  { port: "top", x: box.cx, y: top },
318
320
  { port: "right", x: right, y: box.cy },
319
321
  { port: "bottom", x: box.cx, y: bottom },
320
322
  { port: "left", x: left, y: box.cy },
321
- { port: "top-left", x: left, y: top },
322
- { port: "top-right", x: right, y: top },
323
- { port: "bottom-right", x: right, y: bottom },
324
- { port: "bottom-left", x: left, y: bottom }
323
+ { port: "top-left", x: left + inset, y: top + inset },
324
+ { port: "top-right", x: right - inset, y: top + inset },
325
+ { port: "bottom-right", x: right - inset, y: bottom - inset },
326
+ { port: "bottom-left", x: left + inset, y: bottom - inset }
325
327
  ];
326
328
  }
327
329
  function anchorPoint(box, anchor) {
@@ -8,7 +8,7 @@ import {
8
8
  expectedSyllablesAt,
9
9
  flattenRenderableBlocks,
10
10
  wordPosAtExpectedSyllables
11
- } from "./chunk-7IGKCHDP.js";
11
+ } from "./chunk-UWLEDXSU.js";
12
12
 
13
13
  // src/narration/types.ts
14
14
  var DEFAULT_FEATURE_CONFIG = Object.freeze({