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