@doenet/v06-to-v07 0.7.24-dev.487 → 0.7.24-dev.489

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.
@@ -45857,7 +45857,7 @@ async function cidFromArrayBuffer(data) {
45857
45857
  await crypto.subtle.digest("SHA-256", new Uint8Array());
45858
45858
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
45859
45859
  } catch (e22) {
45860
- const sha256 = (await import("./sha256-DT5xJ2Hv-Dkqb70Gt-C8PorWqe.js").then((n2) => n2.s)).default;
45860
+ const sha256 = (await import("./sha256-DT5xJ2Hv-CN9l-ne8-AdppJVx6.js").then((n2) => n2.s)).default;
45861
45861
  digest = (data2) => sha256(data2, {
45862
45862
  asBytes: true
45863
45863
  });
@@ -152136,6 +152136,7 @@ const prefigurePointAlignmentByLabelPosition = {
152136
152136
  function normalizeKey(value) {
152137
152137
  return String(value).toLowerCase().replace(/[^a-z0-9]+/g, "");
152138
152138
  }
152139
+ const THEME_AWARE_LABEL_COLOR_ATTR = 'color="currentColor"';
152139
152140
  const LABEL_EDGE_PADDING_RATIO = 0.02;
152140
152141
  const LINE_LABEL_ENDPOINT_INSET_RATIO = 0.05;
152141
152142
  const LINE_LABEL_ENDPOINT_INSET_PIXELS = 12;
@@ -152530,7 +152531,7 @@ function pointLabelAttributes({
152530
152531
  if (!label) {
152531
152532
  return null;
152532
152533
  }
152533
- const attrs = [];
152534
+ const attrs = [THEME_AWARE_LABEL_COLOR_ATTR];
152534
152535
  const rawPosition = stateValues?.labelPosition;
152535
152536
  if (rawPosition) {
152536
152537
  const rawXs = stateValues?.numericalXs;
@@ -152645,7 +152646,7 @@ function getLabelForLine({
152645
152646
  label: null
152646
152647
  };
152647
152648
  }
152648
- const labelAttrs = [];
152649
+ const labelAttrs = [THEME_AWARE_LABEL_COLOR_ATTR];
152649
152650
  const rawPosition = stateValues?.labelPosition;
152650
152651
  const normalizedPosition = normalizeKey(rawPosition ?? "");
152651
152652
  const overrideLocRaw = stateValues?.lineLabelLocationOverride;
@@ -153313,7 +153314,7 @@ function convertVectorToPrefigure({
153313
153314
  if (anchorText === null) {
153314
153315
  return vectorXml;
153315
153316
  }
153316
- const labelXml = `<label p="${escapeXml(anchorText)}" alignment="north">${label}</label>`;
153317
+ const labelXml = `<label p="${escapeXml(anchorText)}" alignment="north" ${THEME_AWARE_LABEL_COLOR_ATTR}>${label}</label>`;
153317
153318
  return `${vectorXml}${labelXml}`;
153318
153319
  }
153319
153320
  function convertCircleToPrefigure({
@@ -153487,7 +153488,7 @@ function convertAngleToPrefigure({
153487
153488
  if (labelAnchorText === null) {
153488
153489
  return arcXml;
153489
153490
  }
153490
- const labelXml = `<label anchor="${escapeXml(labelAnchorText)}">${label}</label>`;
153491
+ const labelXml = `<label anchor="${escapeXml(labelAnchorText)}" ${THEME_AWARE_LABEL_COLOR_ATTR}>${label}</label>`;
153491
153492
  return `${arcXml}${labelXml}`;
153492
153493
  }
153493
153494
  function astToExpressionString(ast) {
@@ -154718,14 +154719,18 @@ function axesElementFromLabels({
154718
154719
  labelHasLatex: dependencyValues.xLabelHasLatex
154719
154720
  });
154720
154721
  if (xLabel && dependencyValues.displayXAxis) {
154721
- axisLabelElements.push(`<xlabel alignment="nw">${xLabel}</xlabel>`);
154722
+ axisLabelElements.push(
154723
+ `<xlabel alignment="nw" ${THEME_AWARE_LABEL_COLOR_ATTR}>${xLabel}</xlabel>`
154724
+ );
154722
154725
  }
154723
154726
  const yLabel = labelMarkup({
154724
154727
  label: dependencyValues.yLabel,
154725
154728
  labelHasLatex: dependencyValues.yLabelHasLatex
154726
154729
  });
154727
154730
  if (yLabel && dependencyValues.displayYAxis) {
154728
- axisLabelElements.push(`<ylabel alignment="se">${yLabel}</ylabel>`);
154731
+ axisLabelElements.push(
154732
+ `<ylabel alignment="se" ${THEME_AWARE_LABEL_COLOR_ATTR}>${yLabel}</ylabel>`
154733
+ );
154729
154734
  }
154730
154735
  const strokeAttr = darkMode ? ` stroke="${PREFIGURE_DARK_AXIS_COLOR}"` : "";
154731
154736
  if (axisLabelElements.length > 0) {
@@ -237356,4 +237361,4 @@ export {
237356
237361
  getDefaultExportFromCjs$1 as g,
237357
237362
  updateSyntaxFromV06toV07 as u
237358
237363
  };
237359
- //# sourceMappingURL=index-D28MVEsy.js.map
237364
+ //# sourceMappingURL=index-Do0Dr1Ts.js.map