@canvas-harness/core 0.1.6 → 0.1.8
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 +2880 -2882
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +2880 -2882
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -945,10 +945,11 @@ declare const defineNode: (opts: NodeTypeDefOptions) => NodeTypeDef;
|
|
|
945
945
|
*/
|
|
946
946
|
type InlineType = 'text' | 'bold' | 'italic' | 'underline' | 'strike' | 'highlight' | 'code' | 'link'
|
|
947
947
|
/**
|
|
948
|
-
* LaTeX math expression, content is the source between
|
|
949
|
-
*
|
|
950
|
-
*
|
|
951
|
-
*
|
|
948
|
+
* LaTeX math expression, content is the source between `$$...$$` (no
|
|
949
|
+
* line breaks). Rendered via MathJax SVG output and rasterized to an
|
|
950
|
+
* inline bitmap at paint time. See `text/math/`. Double-dollar
|
|
951
|
+
* delimiters avoid the false-positives of single `$` in prose that
|
|
952
|
+
* mentions currency (e.g. `$5 to $10`).
|
|
952
953
|
*/
|
|
953
954
|
| 'math';
|
|
954
955
|
type Token = {
|
|
@@ -1075,7 +1076,7 @@ declare const getFontEpoch: () => number;
|
|
|
1075
1076
|
* Lazy loader for MathJax — same pattern as `render/rough/loader.ts`.
|
|
1076
1077
|
*
|
|
1077
1078
|
* MathJax is ~600KB and only useful for scenes with LaTeX math. We
|
|
1078
|
-
* defer loading until the first
|
|
1079
|
+
* defer loading until the first `$$...$$` token requests a compile,
|
|
1079
1080
|
* then convert LaTeX → SVG strings off the main rAF path.
|
|
1080
1081
|
*
|
|
1081
1082
|
* Loaded from jsDelivr CDN rather than bundled because the v4
|
package/dist/index.d.ts
CHANGED
|
@@ -945,10 +945,11 @@ declare const defineNode: (opts: NodeTypeDefOptions) => NodeTypeDef;
|
|
|
945
945
|
*/
|
|
946
946
|
type InlineType = 'text' | 'bold' | 'italic' | 'underline' | 'strike' | 'highlight' | 'code' | 'link'
|
|
947
947
|
/**
|
|
948
|
-
* LaTeX math expression, content is the source between
|
|
949
|
-
*
|
|
950
|
-
*
|
|
951
|
-
*
|
|
948
|
+
* LaTeX math expression, content is the source between `$$...$$` (no
|
|
949
|
+
* line breaks). Rendered via MathJax SVG output and rasterized to an
|
|
950
|
+
* inline bitmap at paint time. See `text/math/`. Double-dollar
|
|
951
|
+
* delimiters avoid the false-positives of single `$` in prose that
|
|
952
|
+
* mentions currency (e.g. `$5 to $10`).
|
|
952
953
|
*/
|
|
953
954
|
| 'math';
|
|
954
955
|
type Token = {
|
|
@@ -1075,7 +1076,7 @@ declare const getFontEpoch: () => number;
|
|
|
1075
1076
|
* Lazy loader for MathJax — same pattern as `render/rough/loader.ts`.
|
|
1076
1077
|
*
|
|
1077
1078
|
* MathJax is ~600KB and only useful for scenes with LaTeX math. We
|
|
1078
|
-
* defer loading until the first
|
|
1079
|
+
* defer loading until the first `$$...$$` token requests a compile,
|
|
1079
1080
|
* then convert LaTeX → SVG strings off the main rAF path.
|
|
1080
1081
|
*
|
|
1081
1082
|
* Loaded from jsDelivr CDN rather than bundled because the v4
|