@canvas-harness/core 0.1.17 → 0.1.18

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/index.js CHANGED
@@ -2294,7 +2294,7 @@ var createDefaultTextareaEditor = ({
2294
2294
  ta.style.whiteSpace = "pre-wrap";
2295
2295
  ta.style.wordBreak = "break-word";
2296
2296
  const autosize = () => {
2297
- ta.style.height = "auto";
2297
+ ta.style.height = "0px";
2298
2298
  ta.style.height = `${ta.scrollHeight}px`;
2299
2299
  };
2300
2300
  const commitNow = () => {
@@ -5201,7 +5201,7 @@ var createRenderer = (opts) => {
5201
5201
  ctx.fillStyle = "#94a3b8";
5202
5202
  ctx.textBaseline = "middle";
5203
5203
  ctx.textAlign = "center";
5204
- ctx.font = `italic ${fontPx}px ${node.style?.fontFamily ?? "sans-serif"}`;
5204
+ ctx.font = `italic ${fontPx}px ${FONT_FAMILY_MAP[node.style?.fontFamily ?? "handwriting"]}`;
5205
5205
  ctx.fillText("Type to edit\u2026", node.w / 2, node.h / 2);
5206
5206
  ctx.restore();
5207
5207
  };