@nowline/embed 0.0.0-dev.20261017021711.g90ddcab → 0.0.0-dev.20261017093748.g6fa96bf

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/dist/meta.json CHANGED
@@ -5999,7 +5999,7 @@
5999
5999
  "format": "esm"
6000
6000
  },
6001
6001
  "../layout/dist/view-preset.js": {
6002
- "bytes": 24974,
6002
+ "bytes": 24848,
6003
6003
  "imports": [
6004
6004
  {
6005
6005
  "path": "../core/dist/internal.js",
@@ -10074,7 +10074,7 @@
10074
10074
  "format": "esm"
10075
10075
  },
10076
10076
  "../renderer/dist/svg/render.js": {
10077
- "bytes": 110950,
10077
+ "bytes": 110804,
10078
10078
  "imports": [
10079
10079
  {
10080
10080
  "path": "../layout/dist/index.js",
@@ -10304,7 +10304,7 @@
10304
10304
  "imports": [],
10305
10305
  "exports": [],
10306
10306
  "inputs": {},
10307
- "bytes": 3666557
10307
+ "bytes": 3665932
10308
10308
  },
10309
10309
  "dist/nowline.min.js": {
10310
10310
  "imports": [],
@@ -11272,7 +11272,7 @@
11272
11272
  "bytesInOutput": 2059
11273
11273
  },
11274
11274
  "../layout/dist/view-preset.js": {
11275
- "bytesInOutput": 5978
11275
+ "bytesInOutput": 5895
11276
11276
  },
11277
11277
  "../layout/dist/phases/date-window.js": {
11278
11278
  "bytesInOutput": 1118
@@ -11458,7 +11458,7 @@
11458
11458
  "bytesInOutput": 727
11459
11459
  },
11460
11460
  "../renderer/dist/svg/render.js": {
11461
- "bytesInOutput": 31232
11461
+ "bytesInOutput": 31144
11462
11462
  },
11463
11463
  "../browser/dist/pipeline.js": {
11464
11464
  "bytesInOutput": 2126
@@ -11485,7 +11485,7 @@
11485
11485
  "bytesInOutput": 257
11486
11486
  }
11487
11487
  },
11488
- "bytes": 671514
11488
+ "bytes": 671343
11489
11489
  }
11490
11490
  }
11491
11491
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.0.0-dev.20261017021711.g90ddcab sha=90ddcab built=2026-10-17T02:12:20Z */
1
+ /*! @nowline/embed 0.0.0-dev.20261017093748.g6fa96bf sha=6fa96bf built=2026-10-17T09:32:22Z */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -31711,14 +31711,12 @@ function resolveScale(file, scaleBlock) {
31711
31711
  const unitProp = findProp(scaleBlock.properties, "unit");
31712
31712
  const resolvedUnit = unitProp?.value ?? unit;
31713
31713
  const labelProp = findProp(scaleBlock.properties, "label-every");
31714
- const pxProp = findProp(scaleBlock.properties, "pixels-per-unit");
31715
31714
  const explicitLabelEvery = labelProp ? parseInt(labelProp.value, 10) || 0 : 0;
31716
31715
  const labelEvery = explicitLabelEvery !== 0 ? Math.max(1, explicitLabelEvery) : defaultLabelEvery;
31717
- const pixelsPerUnit = pxProp ? Math.max(1, parseInt(pxProp.value, 10) || unitPx(resolvedUnit)) : pixelsPerUnitOverride ?? unitPx(resolvedUnit);
31718
31716
  return {
31719
31717
  unit: resolvedUnit,
31720
31718
  labelEvery,
31721
- pixelsPerUnit,
31719
+ pixelsPerUnit: pixelsPerUnitOverride ?? unitPx(resolvedUnit),
31722
31720
  ...defaultFlag(explicitLabelEvery !== 0)
31723
31721
  };
31724
31722
  }
@@ -39701,11 +39699,8 @@ async function renderSvg(model, options = {}) {
39701
39699
  const palette = model.palette;
39702
39700
  const fonts = options.fontFamilies ?? FONT_STACK;
39703
39701
  const parts = [];
39704
- const arrowFillNeutral = palette.arrowhead.neutral;
39705
- const arrowFillLight = palette.arrowhead.light;
39706
- const arrowFillDark = palette.arrowhead.dark;
39707
39702
  const arrowDef = (id, fill) => `<marker id="${id}" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" fill="${fill}"/></marker>`;
39708
- const defs = `<defs>${allShadowDefs(idPrefix)}` + arrowDef(`${idPrefix}-arrow`, arrowFillNeutral) + arrowDef(`${idPrefix}-arrow-light`, arrowFillLight) + arrowDef(`${idPrefix}-arrow-dark`, arrowFillDark) + // Wave hatch patterns, only those a bar or the legend uses.
39703
+ const defs = `<defs>${allShadowDefs(idPrefix)}` + arrowDef(`${idPrefix}-arrow-dark`, palette.arrowhead.dark) + // Wave hatch patterns, only those a bar or the legend uses.
39709
39704
  usedWaveHatchKinds(model).map((k) => waveHatchPatternDef(idPrefix, k, palette)).join("") + `</defs>`;
39710
39705
  parts.push(defs);
39711
39706
  parts.push(tag("rect", {
@@ -40628,8 +40623,8 @@ function effectiveTheme(theme, systemTheme) {
40628
40623
  }
40629
40624
 
40630
40625
  // src/index.ts
40631
- var version = true ? "0.0.0-dev.20261017021711.g90ddcab" : "0.0.0";
40632
- var sha = true ? "90ddcab" : "unknown";
40626
+ var version = true ? "0.0.0-dev.20261017093748.g6fa96bf" : "0.0.0";
40627
+ var sha = true ? "6fa96bf" : "unknown";
40633
40628
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
40634
40629
  var initialConfig = {
40635
40630
  theme: "auto",