@phun-ky/arclace 1.0.0 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.0](https://github.com/phun-ky/arclace/compare/1.0.0...1.1.0) (2026-11-23)
4
+
5
+ ### Tasks
6
+
7
+ * 🤖 bump rollup from 4.67.4 to 4.67.5 in the minor-and-patch group ([e896761](https://github.com/phun-ky/arclace/commit/e896761322a7b50bb28307bf7347e110b18a7a4a))
8
+ * 🤖 ignore unfixable dev-dependency advisories in osv-scanner ([2121472](https://github.com/phun-ky/arclace/commit/2121472ccb0424aa1927531e7d917cf6aa37750c))
9
+ * 🤖 only ignore advisories present in the lockfile ([0e57eb9](https://github.com/phun-ky/arclace/commit/0e57eb948439e737bda2279fcc9f8fee152250c0))
10
+ * 🤖 update typescript to 6.0 ([ce09299](https://github.com/phun-ky/arclace/commit/ce09299d87349c239040bdd2c54fe6d232e3e10a))
11
+
12
+ ### Documentation
13
+
14
+ * ✏️ give the styling examples their markup ([90e5174](https://github.com/phun-ky/arclace/commit/90e5174498cbec917c322607e61d7b9880866449))
15
+ * ✏️ remove the backdrop behind the hero copy ([bf3eaae](https://github.com/phun-ky/arclace/commit/bf3eaae49010e88d8ec5c5109da61fa631ddf814))
16
+ * ✏️ zoom the playground from the centre ([e32e930](https://github.com/phun-ky/arclace/commit/e32e9304b2c82d2706ab6b8d98f8658b32f60ce1)), closes [#78](https://github.com/phun-ky/arclace/issues/78)
17
+
18
+ ### Feature
19
+
20
+ * 🎸 draw a styleable background behind labels ([92ad7d3](https://github.com/phun-ky/arclace/commit/92ad7d3a4bdcc2c6fc60a6a8696df3740caaa11f))
21
+
3
22
  ## [1.0.0](https://github.com/phun-ky/arclace/compare/0.3.0...1.0.0) (2026-11-04)
4
23
 
5
24
  ### Documentation
package/README.md CHANGED
@@ -55,7 +55,7 @@ script tags (see [Without a bundler](#without-a-bundler)).
55
55
 
56
56
  ```ts
57
57
  import { Arclace } from '@phun-ky/arclace';
58
- // Optional: label halo, hollow anchors and the dash animation
58
+ // Optional: label backgrounds, hollow anchors and the dash animation
59
59
  import '@phun-ky/arclace/style.css';
60
60
 
61
61
  const arclace = new Arclace({ container: '#diagram' });
@@ -232,17 +232,24 @@ colors all of them:
232
232
  }
233
233
  ```
234
234
 
235
- `style.css` is optional. It adds a halo behind labels, hollow anchors and the
236
- `animated` dash animation (turned off with `prefers-reduced-motion`), and these
237
- custom properties:
238
-
239
- | Property | Default |
240
- | ------------------- | -------------- |
241
- | `--arc-color` | `currentColor` |
242
- | `--arc-label-color` | `currentColor` |
243
- | `--arc-label-halo` | `#fff` |
244
- | `--arc-label-size` | `12px` |
245
- | `--arc-anchor-fill` | `#fff` |
235
+ `style.css` is optional. It adds a background behind labels, hollow anchors and
236
+ the `animated` dash animation (turned off with `prefers-reduced-motion`), and
237
+ these custom properties:
238
+
239
+ | Property | Default |
240
+ | --------------------- | -------------------------- |
241
+ | `--arc-color` | `currentColor` |
242
+ | `--arc-label-color` | `currentColor` |
243
+ | `--arc-label-size` | `12px` |
244
+ | `--arc-label-bg` | `--arc-label-halo`, `#fff` |
245
+ | `--arc-label-border` | `none` |
246
+ | `--arc-label-radius` | `4px` |
247
+ | `--arc-label-padding` | `3px 6px` |
248
+ | `--arc-anchor-fill` | `#fff` |
249
+
250
+ Set `--arc-label-bg` and `--arc-anchor-fill` to the background behind the lines,
251
+ so labels and hollow anchors blend in. `--arc-label-halo` from earlier versions
252
+ still works as the label background.
246
253
 
247
254
  ### Clickable lines
248
255
 
package/dist/arclace.d.ts CHANGED
@@ -191,7 +191,8 @@ declare const DEFAULT_CONNECTION_OPTIONS: Readonly<Required<Omit<ArcConnectionOp
191
191
  * <g class="arc-connection arc-bezier">
192
192
  * <marker class="arc-marker">…</marker> <!-- when `arrow` is set -->
193
193
  * <path class="arc-path" />
194
- * <text class="arc-label">…</text> <!-- when `label` is set -->
194
+ * <rect class="arc-label-bg" /> <!-- when `label` is set -->
195
+ * <text class="arc-label">…</text>
195
196
  * <circle class="arc-anchor arc-anchor-start" /> <!-- when `anchors` is set -->
196
197
  * <circle class="arc-anchor arc-anchor-end" />
197
198
  * </g>