@glissade/backend-dom 0.21.0-pre.4 → 0.22.0-pre.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -283,6 +283,7 @@ var DomBackend = class {
283
283
  this.#setStyle(o, div, "fontWeight", cmd.font.weight !== void 0 ? String(cmd.font.weight) : void 0);
284
284
  this.#setStyle(o, div, "fontStyle", cmd.font.style !== void 0 ? cmd.font.style : void 0);
285
285
  this.#setStyle(o, div, "fontVariationSettings", cmd.font.fontVariationSettings !== void 0 ? cmd.font.fontVariationSettings : void 0);
286
+ this.#setStyle(o, div, "letterSpacing", cmd.font.letterSpacing !== void 0 ? `${cmd.font.letterSpacing}px` : void 0);
286
287
  this.#setStyle(o, div, "color", this.#solid(cmd.paint));
287
288
  this.#setAttr(div, o, "dataApprox", "data-approx", cmd.paint.kind !== "color" ? "true" : void 0);
288
289
  this.#setText(div, o, cmd.text);
@@ -372,6 +373,7 @@ var DomBackend = class {
372
373
  const span = this.#ensureMeasureSpan();
373
374
  span.style.font = fontString(font);
374
375
  span.style.fontVariationSettings = font.fontVariationSettings ?? "normal";
376
+ span.style.letterSpacing = font.letterSpacing !== void 0 ? `${font.letterSpacing}px` : "normal";
375
377
  span.textContent = text;
376
378
  const width = span.getBoundingClientRect().width;
377
379
  if (width === 0 && text.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/backend-dom",
3
- "version": "0.21.0-pre.4",
3
+ "version": "0.22.0-pre.0",
4
4
  "description": "glissade DOM render backend: DisplayList -> HTML/SVG elements. A preview / non-parity realtime tier (accessibility, selectable text, CSS-native embedding) — NOT a Skia-export twin.",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -18,8 +18,8 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@glissade/core": "0.21.0-pre.4",
22
- "@glissade/scene": "0.21.0-pre.4"
21
+ "@glissade/core": "0.22.0-pre.0",
22
+ "@glissade/scene": "0.22.0-pre.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",