runmat 0.4.10-dev.5 → 0.4.10-dev.7

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.
@@ -34,7 +34,7 @@ const builtinDoc = {
34
34
  "description": "`input(prompt)` displays `prompt`, waits for the user to type a line of text, and then returns the evaluated value. When you pass `'s'` as the second argument, `input` skips numeric parsing and returns the raw text as a character row vector. RunMat mirrors MATLAB’s single-line prompt/response flow so scripts that rely on interactive questions continue to work.",
35
35
  "behaviors": [
36
36
  "Prompts accept character row vectors and string scalars. When omitted, RunMat uses `\"Input: \"`.",
37
- "The function always blocks until the host supplies a line of text (via the REPL, CLI pipe, or wasm bindings). `stdinRequested` events surface the outstanding prompt to JS hosts so they can resume later.",
37
+ "The function always blocks until the host supplies a line of text (via the REPL, CLI pipe, or wasm bindings). In wasm hosts, prompts are delivered to the installed async input handler and execution continues after the handler resolves.",
38
38
  "When `'s'` (or `\"s\"`) is provided, the return value is a character array containing exactly what the user typed (without the trailing newline).",
39
39
  "Without `'s'`, RunMat forwards the response through the same numeric parser that backs `str2double`. This covers scalar numbers, MATLAB-style vector/matrix literals, `Inf`, `NaN`, and complex tokens. Arbitrary expressions (for example `1+rand()`) are not evaluated automatically—read the text with `'s'` and pass it to `eval` once that builtin lands.",
40
40
  "Empty responses (just pressing Enter) return an empty `[]` double, consistent with MATLAB.",
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/generated/builtins/input.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE;QACV,OAAO;QACP,QAAQ;QACR,OAAO;QACP,aAAa;QACb,OAAO;QACP,QAAQ;KACT;IACD,SAAS,EAAE,oFAAoF;IAC/F,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB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+F;KACvG;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,IAAI;KACL;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/generated/builtins/input.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE;QACV,OAAO;QACP,QAAQ;QACR,OAAO;QACP,aAAa;QACb,OAAO;QACP,QAAQ;KACT;IACD,SAAS,EAAE,oFAAoF;IAC/F,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,gIAAgI;KAC1I;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,4BAA4B;QACpC,aAAa,EAAE,IAAI;KACpB;IACD,aAAa,EAAE,4WAA4W;IAC3X,WAAW,EAAE;QACX,mGAAmG;QACnG,6OAA6O;QAC7O,mJAAmJ;QACnJ,gWAAgW;QAChW,4FAA4F;QAC5F,+IAA+I;KAChJ;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,EAAE;YACjB,OAAO,EAAE,qCAAqC;SAC/C;KACF;IACD,MAAM,EAAE;QACN;YACE,UAAU,EAAE,oDAAoD;YAChE,QAAQ,EAAE,iVAAiV;SAC5V;QACD;YACE,UAAU,EAAE,8CAA8C;YAC1D,QAAQ,EAAE,4EAA4E;SACvF;QACD;YACE,UAAU,EAAE,0CAA0C;YACtD,QAAQ,EAAE,uKAAuK;SAClL;QACD;YACE,UAAU,EAAE,+BAA+B;YAC3C,QAAQ,EAAE,yNAAyN;SACpO;QACD;YACE,UAAU,EAAE,oDAAoD;YAChE,QAAQ,EAAE,+JAA+J;SAC1K;QACD;YACE,UAAU,EAAE,8DAA8D;YAC1E,QAAQ,EAAE,sLAAsL;SACjM;QACD;YACE,UAAU,EAAE,sCAAsC;YAClD,QAAQ,EAAE,+JAA+J;SAC1K;QACD;YACE,UAAU,EAAE,8CAA8C;YAC1D,QAAQ,EAAE,2HAA2H;SACtI;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,QAAQ;SAChB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,kDAAkD;QAC3D,KAAK,EAAE,+FAA+F;KACvG;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,IAAI;KACL;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=print.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/print.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UA2GjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,112 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "print",
5
+ "category": "plotting",
6
+ "keywords": [
7
+ "print",
8
+ "figure export",
9
+ "png",
10
+ "plotting",
11
+ "save figure"
12
+ ],
13
+ "summary": "Export the active or specified figure to a PNG file.",
14
+ "gpu_support": {
15
+ "elementwise": false,
16
+ "reduction": false,
17
+ "precisions": [],
18
+ "broadcasting": "none",
19
+ "notes": "`print` is a figure export sink. It gathers filename and option arguments when needed, then serializes the figure through the plotting renderer. Existing GPU-backed plot geometry can still use the shared WGPU plotting path during export."
20
+ },
21
+ "fusion": {
22
+ "elementwise": false,
23
+ "reduction": false,
24
+ "max_inputs": 4,
25
+ "constants": "inline"
26
+ },
27
+ "requires_feature": "plot-core",
28
+ "tested": {
29
+ "unit": "builtins::plotting::print::tests",
30
+ "integration": "direct headless Chrome WASM verification of print.json examples"
31
+ },
32
+ "description": "`print` exports a figure to a file. RunMat currently supports PNG output with MATLAB-style device and resolution tokens, including `print('name', '-dpng')`, `print('name', '-dpng', '-r300')`, and `print(fig, 'name', '-dpng')`. In browser and WASM hosts the file is written through RunMat's virtual filesystem provider so the host can persist or download it.",
33
+ "behaviors": [
34
+ "`print(filename, '-dpng')` writes PNG bytes to `filename`. If the name has no `.png` extension, RunMat appends one.",
35
+ "`print(filename, '-dpng', '-rN')` scales the export dimensions from the default 800 by 600 canvas using `N` DPI relative to RunMat's 150 DPI default.",
36
+ "`print(fig, filename, '-dpng')` exports the specified figure handle instead of the active figure.",
37
+ "Command-style argument order is accepted when RunMat parses command calls into string arguments, such as `print -dpng plot.png`.",
38
+ "PDF, EPS, and SVG device tokens are recognized but return a clear unsupported-device error until those exporters are implemented."
39
+ ],
40
+ "examples": [
41
+ {
42
+ "description": "Export the active figure to a PNG file",
43
+ "input": "x = 0:0.1:2*pi;\nplot(x, sin(x));\nprint(\"sine_plot\", \"-dpng\");"
44
+ },
45
+ {
46
+ "description": "Export at a higher resolution",
47
+ "input": "x = 0:0.1:1;\nplot(x, x.^2, \"LineWidth\", 2);\nprint(\"quadratic_plot\", \"-dpng\", \"-r300\");"
48
+ },
49
+ {
50
+ "description": "Export a specific figure handle",
51
+ "input": "fig = figure();\nplot(1:5, [1 4 2 5 3]);\nprint(fig, \"explicit_handle_plot.png\", \"-dpng\");"
52
+ },
53
+ {
54
+ "description": "Command-style device order",
55
+ "input": "plot(1:4, [1 3 2 4]);\nprint -dpng command_style_plot.png"
56
+ }
57
+ ],
58
+ "faqs": [
59
+ {
60
+ "question": "Which formats does `print` support?",
61
+ "answer": "PNG is supported today with `-dpng`. RunMat recognizes PDF, EPS, and SVG device tokens, but they return an unsupported-device error until those exporters are available in the rendering stack."
62
+ },
63
+ {
64
+ "question": "Where does the file go in the browser?",
65
+ "answer": "The PNG is written through RunMat's filesystem provider. In the sandbox this is usually the in-memory or IndexedDB-backed virtual filesystem, and the host can expose the file as a download artifact."
66
+ },
67
+ {
68
+ "question": "Does `-r300` change the figure data?",
69
+ "answer": "No. It only changes the pixel dimensions used for export. The plot data and graphics handles remain unchanged."
70
+ }
71
+ ],
72
+ "links": [
73
+ {
74
+ "label": "figure",
75
+ "url": "./figure"
76
+ },
77
+ {
78
+ "label": "gcf",
79
+ "url": "./gcf"
80
+ },
81
+ {
82
+ "label": "plot",
83
+ "url": "./plot"
84
+ },
85
+ {
86
+ "label": "Plot replay and export",
87
+ "url": "/docs/plotting/plot-replay-and-export"
88
+ },
89
+ {
90
+ "label": "Complete plotting guide",
91
+ "url": "/blog/matlab-plotting-guide"
92
+ }
93
+ ],
94
+ "source": {
95
+ "label": "`crates/runmat-runtime/src/builtins/plotting/ops/print.rs`",
96
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/plotting/ops/print.rs"
97
+ },
98
+ "gpu_residency": "`print` is an I/O sink and returns a host logical status. Filename and option arguments are gathered before parsing. GPU-resident plot data already captured in figure state may still be consumed by the plotting renderer without forcing user-visible gathers when the shared WGPU export path is available.",
99
+ "gpu_behavior": [
100
+ "No numeric GPU kernels are launched for `print` itself.",
101
+ "The PNG exporter first attempts the interactive GPU render path and falls back to CPU rasterization when headless GPU initialization is unavailable.",
102
+ "The builtin writes PNG bytes through RunMat's filesystem layer, so output storage is host or virtual-filesystem backed."
103
+ ],
104
+ "key": "print",
105
+ "slug": "print",
106
+ "aliases": [],
107
+ "categoryPath": [
108
+ "plotting"
109
+ ]
110
+ };
111
+ export default builtinDoc;
112
+ //# sourceMappingURL=print.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print.js","sourceRoot":"","sources":["../../../src/generated/builtins/print.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,OAAO;QACP,eAAe;QACf,KAAK;QACL,UAAU;QACV,aAAa;KACd;IACD,SAAS,EAAE,sDAAsD;IACjE,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,+OAA+O;KACzP;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;IACD,kBAAkB,EAAE,WAAW;IAC/B,QAAQ,EAAE;QACR,MAAM,EAAE,kCAAkC;QAC1C,aAAa,EAAE,iEAAiE;KACjF;IACD,aAAa,EAAE,uWAAuW;IACtX,WAAW,EAAE;QACX,qHAAqH;QACrH,uJAAuJ;QACvJ,mGAAmG;QACnG,kIAAkI;QAClI,mIAAmI;KACpI;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,wCAAwC;YACvD,OAAO,EAAE,qEAAqE;SAC/E;QACD;YACE,aAAa,EAAE,+BAA+B;YAC9C,OAAO,EAAE,kGAAkG;SAC5G;QACD;YACE,aAAa,EAAE,iCAAiC;YAChD,OAAO,EAAE,gGAAgG;SAC1G;QACD;YACE,aAAa,EAAE,4BAA4B;YAC3C,OAAO,EAAE,2DAA2D;SACrE;KACF;IACD,MAAM,EAAE;QACN;YACE,UAAU,EAAE,qCAAqC;YACjD,QAAQ,EAAE,iMAAiM;SAC5M;QACD;YACE,UAAU,EAAE,wCAAwC;YACpD,QAAQ,EAAE,wMAAwM;SACnN;QACD;YACE,UAAU,EAAE,sCAAsC;YAClD,QAAQ,EAAE,gHAAgH;SAC3H;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,UAAU;SAClB;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,QAAQ;SAChB;QACD;YACE,OAAO,EAAE,wBAAwB;YACjC,KAAK,EAAE,uCAAuC;SAC/C;QACD;YACE,OAAO,EAAE,yBAAyB;YAClC,KAAK,EAAE,6BAA6B;SACrC;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,4DAA4D;QACrE,KAAK,EAAE,yGAAyG;KACjH;IACD,eAAe,EAAE,iTAAiT;IAClU,cAAc,EAAE;QACd,yDAAyD;QACzD,sJAAsJ;QACtJ,yHAAyH;KAC1H;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,UAAU;KACX;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -30,11 +30,11 @@ const builtinDoc = {
30
30
  "unit": "builtins::timing::timeit::tests",
31
31
  "integration": "builtins::timing::timeit::tests::timeit_measures_time"
32
32
  },
33
- "description": "`t = timeit(f)` evaluates the zero-argument function handle `f` repeatedly and returns the median runtime (in seconds). RunMat accepts the optional `numOutputs` argument for MATLAB compatibility; today the handle executes with its default output arity (or none when you pass `0`) and all returned values are discarded.",
33
+ "description": "`t = timeit(f)` evaluates the zero-argument function handle `f` repeatedly and returns the median runtime (in seconds). RunMat accepts the optional `numOutputs` argument and dispatches `f` with that requested output count (including `0`), discarding any returned values after each invocation.",
34
34
  "behaviors": [
35
35
  "Executes `f` repeatedly, adjusting the inner loop count until a single batch takes at least a few milliseconds or the function is slow enough.",
36
36
  "Collects multiple samples (at least seven batches) and returns the median per-invocation time, which is robust against outliers.",
37
- "Drops the outputs produced by `f`; you should perform any validation that depends on those outputs inside the handle. Multi-output dispatch will route through this helper once the runtime exposes multi-return `feval`.",
37
+ "Drops the outputs produced by `f`; you should perform any validation that depends on those outputs inside the handle.",
38
38
  "Leaves GPU residency untouched—if `f` launches GPU kernels, they execute on the active provider. Insert `wait(gpuDevice)` inside the handle if you need explicit synchronisation."
39
39
  ],
40
40
  "examples": [
@@ -82,7 +82,7 @@ const builtinDoc = {
82
82
  },
83
83
  {
84
84
  "question": "How do I time a function with multiple outputs?",
85
- "answer": "— Pass `timeit(@() svd(A), 3)` to mirror MATLAB’s call signature. RunMat currently ignores values greater than zero until multi-output dispatch lands, but the handle still executes."
85
+ "answer": "— Pass `timeit(@() svd(A), 3)` to mirror MATLAB’s call signature. RunMat dispatches the handle with the requested output count and discards returned values."
86
86
  },
87
87
  {
88
88
  "question": "Why do successive runs differ slightly?",
@@ -130,7 +130,7 @@ const builtinDoc = {
130
130
  },
131
131
  "points": [
132
132
  "`f` is a zero-argument function handle (for example, `@() myOp(A)`).",
133
- "`numOutputs` is an optional nonnegative integer kept for MATLAB compatibility. Passing `0` suppresses outputs entirely; any other value currently executes the handle with its default output arity while discarding the result."
133
+ "`numOutputs` is an optional nonnegative integer. `timeit` dispatches the handle with this requested output count and discards returned values."
134
134
  ]
135
135
  },
136
136
  "key": "timeit",
@@ -1 +1 @@
1
- {"version":3,"file":"timeit.js","sourceRoot":"","sources":["../../../src/generated/builtins/timeit.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE;QACV,QAAQ;QACR,WAAW;QACX,QAAQ;QACR,aAAa;QACb,KAAK;KACN;IACD,SAAS,EAAE,gEAAgE;IAC3E,YAAY,EAA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ACE,UAAU,EAAE,yCAAyC;YACrD,QAAQ,EAAE,wHAAwH;SACnI;QACD;YACE,UAAU,EAAE,4BAA4B;YACxC,QAAQ,EAAE,6GAA6G;SACxH;QACD;YACE,UAAU,EAAE,mDAAmD;YAC/D,QAAQ,EAAE,oGAAoG;SAC/G;QACD;YACE,UAAU,EAAE,sCAAsC;YAClD,QAAQ,EAAE,oFAAoF;SAC/F;QACD;YACE,UAAU,EAAE,2BAA2B;YACvC,QAAQ,EAAE,oGAAoG;SAC/G;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,uDAAuD;QAChE,KAAK,EAAE,oGAAoG;KAC5G;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,0CAA0C;SACpD;QACD,QAAQ,EAAE;YACR,sEAAsE;YACtE,kOAAkO;SACnO;KACF;IACD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,QAAQ;KACT;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"timeit.js","sourceRoot":"","sources":["../../../src/generated/builtins/timeit.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE;QACV,QAAQ;QACR,WAAW;QACX,QAAQ;QACR,aAAa;QACb,KAAK;KACN;IACD,SAAS,EAAE,gEAAgE;IAC3E,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE;QACb,aAAa,EAAE,KA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wH;SACnI;QACD;YACE,UAAU,EAAE,4BAA4B;YACxC,QAAQ,EAAE,6GAA6G;SACxH;QACD;YACE,UAAU,EAAE,mDAAmD;YAC/D,QAAQ,EAAE,oGAAoG;SAC/G;QACD;YACE,UAAU,EAAE,sCAAsC;YAClD,QAAQ,EAAE,oFAAoF;SAC/F;QACD;YACE,UAAU,EAAE,2BAA2B;YACvC,QAAQ,EAAE,oGAAoG;SAC/G;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,uDAAuD;QAChE,KAAK,EAAE,oGAAoG;KAC5G;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,0CAA0C;SACpD;QACD,QAAQ,EAAE;YACR,sEAAsE;YACtE,gJAAgJ;SACjJ;KACF;IACD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,QAAQ;KACT;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EA8yQjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAqa9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
1
+ {"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EAi0QjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAsa9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
@@ -5720,6 +5720,25 @@ export const builtinManifest = [
5720
5720
  "summary": "Evaluate a piecewise-polynomial structure.",
5721
5721
  "exampleCount": 1
5722
5722
  },
5723
+ {
5724
+ "key": "print",
5725
+ "title": "print",
5726
+ "slug": "print",
5727
+ "aliases": [],
5728
+ "category": "plotting",
5729
+ "categoryPath": [
5730
+ "plotting"
5731
+ ],
5732
+ "keywords": [
5733
+ "print",
5734
+ "figure export",
5735
+ "png",
5736
+ "plotting",
5737
+ "save figure"
5738
+ ],
5739
+ "summary": "Export the active or specified figure to a PNG file.",
5740
+ "exampleCount": 4
5741
+ },
5723
5742
  {
5724
5743
  "key": "prod",
5725
5744
  "title": "prod",
@@ -8778,6 +8797,7 @@ export const builtinDocLoaders = {
8778
8797
  "pow2": () => import("./builtins/pow2.js").then((mod) => mod.default),
8779
8798
  "power": () => import("./builtins/power.js").then((mod) => mod.default),
8780
8799
  "ppval": () => import("./builtins/ppval.js").then((mod) => mod.default),
8800
+ "print": () => import("./builtins/print.js").then((mod) => mod.default),
8781
8801
  "prod": () => import("./builtins/prod.js").then((mod) => mod.default),
8782
8802
  "pwd": () => import("./builtins/pwd.js").then((mod) => mod.default),
8783
8803
  "qammod": () => import("./builtins/qammod.js").then((mod) => mod.default),