Fossil SCM

Tiny pikchr-internal doc updates. No functional changes.

stephan 2025-03-01 00:04 trunk
Commit 44e1c41986c43ebee83ae630590d5786f746a1bffebc03b1d3cdf83a1a51cbf5
--- extsrc/pikchr-worker.js
+++ extsrc/pikchr-worker.js
@@ -36,11 +36,11 @@
3636
pikchr: source code for the pikchr,
3737
darkMode: boolean true to adjust colors for a dark color scheme,
3838
cssClass: CSS class name to add to the SVG
3939
}
4040
41
- Workers-to-Main types
41
+ Workers-to-Main message types:
4242
4343
- stdout, stderr: indicate stdout/stderr output from the wasm
4444
layer. The data property is the string of the output, noting
4545
that the emscripten binding emits these one line at a time. Thus,
4646
if a C-side puts() emits multiple lines in a single call, the JS
@@ -50,21 +50,21 @@
5050
5151
- module: Status text. This is intended to alert the main thread
5252
about module loading status so that, e.g., the main thread can
5353
update a progress widget and DTRT when the module is finished
5454
loading and available for work. Status messages come in the form
55
-
55
+
5656
{type:'module', data:{
5757
type:'status',
5858
data: {text:string|null, step:1-based-integer}
5959
}
6060
6161
with an incrementing step value for each subsequent message. When
6262
the module loading is complete, a message with a text value of
6363
null is posted.
6464
65
- - pikchr:
65
+ - pikchr:
6666
6767
{type: 'pikchr',
6868
data:{
6969
pikchr: input text,
7070
result: rendered result (SVG on success, HTML on error),
@@ -162,11 +162,11 @@
162162
}
163163
return;
164164
};
165165
console.warn("Unknown pikchr-worker message type:",ev);
166166
};
167
-
167
+
168168
/**
169169
emscripten module for use with build mode -sMODULARIZE.
170170
*/
171171
const pikchrModule = {
172172
print: function(){wMsg('stdout', Array.prototype.slice.call(arguments));},
173173
--- extsrc/pikchr-worker.js
+++ extsrc/pikchr-worker.js
@@ -36,11 +36,11 @@
36 pikchr: source code for the pikchr,
37 darkMode: boolean true to adjust colors for a dark color scheme,
38 cssClass: CSS class name to add to the SVG
39 }
40
41 Workers-to-Main types
42
43 - stdout, stderr: indicate stdout/stderr output from the wasm
44 layer. The data property is the string of the output, noting
45 that the emscripten binding emits these one line at a time. Thus,
46 if a C-side puts() emits multiple lines in a single call, the JS
@@ -50,21 +50,21 @@
50
51 - module: Status text. This is intended to alert the main thread
52 about module loading status so that, e.g., the main thread can
53 update a progress widget and DTRT when the module is finished
54 loading and available for work. Status messages come in the form
55
56 {type:'module', data:{
57 type:'status',
58 data: {text:string|null, step:1-based-integer}
59 }
60
61 with an incrementing step value for each subsequent message. When
62 the module loading is complete, a message with a text value of
63 null is posted.
64
65 - pikchr:
66
67 {type: 'pikchr',
68 data:{
69 pikchr: input text,
70 result: rendered result (SVG on success, HTML on error),
@@ -162,11 +162,11 @@
162 }
163 return;
164 };
165 console.warn("Unknown pikchr-worker message type:",ev);
166 };
167
168 /**
169 emscripten module for use with build mode -sMODULARIZE.
170 */
171 const pikchrModule = {
172 print: function(){wMsg('stdout', Array.prototype.slice.call(arguments));},
173
--- extsrc/pikchr-worker.js
+++ extsrc/pikchr-worker.js
@@ -36,11 +36,11 @@
36 pikchr: source code for the pikchr,
37 darkMode: boolean true to adjust colors for a dark color scheme,
38 cssClass: CSS class name to add to the SVG
39 }
40
41 Workers-to-Main message types:
42
43 - stdout, stderr: indicate stdout/stderr output from the wasm
44 layer. The data property is the string of the output, noting
45 that the emscripten binding emits these one line at a time. Thus,
46 if a C-side puts() emits multiple lines in a single call, the JS
@@ -50,21 +50,21 @@
50
51 - module: Status text. This is intended to alert the main thread
52 about module loading status so that, e.g., the main thread can
53 update a progress widget and DTRT when the module is finished
54 loading and available for work. Status messages come in the form
55
56 {type:'module', data:{
57 type:'status',
58 data: {text:string|null, step:1-based-integer}
59 }
60
61 with an incrementing step value for each subsequent message. When
62 the module loading is complete, a message with a text value of
63 null is posted.
64
65 - pikchr:
66
67 {type: 'pikchr',
68 data:{
69 pikchr: input text,
70 result: rendered result (SVG on success, HTML on error),
@@ -162,11 +162,11 @@
162 }
163 return;
164 };
165 console.warn("Unknown pikchr-worker message type:",ev);
166 };
167
168 /**
169 emscripten module for use with build mode -sMODULARIZE.
170 */
171 const pikchrModule = {
172 print: function(){wMsg('stdout', Array.prototype.slice.call(arguments));},
173
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -524,11 +524,11 @@
524524
ForceResizeKludge();
525525
}/*onPikchrshowLoaded()*/;
526526
527527
528528
/**
529
- Predefined scripts. Each entry is an object:
529
+ Predefined example pikchr scripts. Each entry is an object:
530530
531531
{
532532
name: required string,
533533
code: optional code string. An entry with a falsy code is treated
534534
like a separator in the resulting SELECT element (a
535535
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -524,11 +524,11 @@
524 ForceResizeKludge();
525 }/*onPikchrshowLoaded()*/;
526
527
528 /**
529 Predefined scripts. Each entry is an object:
530
531 {
532 name: required string,
533 code: optional code string. An entry with a falsy code is treated
534 like a separator in the resulting SELECT element (a
535
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -524,11 +524,11 @@
524 ForceResizeKludge();
525 }/*onPikchrshowLoaded()*/;
526
527
528 /**
529 Predefined example pikchr scripts. Each entry is an object:
530
531 {
532 name: required string,
533 code: optional code string. An entry with a falsy code is treated
534 like a separator in the resulting SELECT element (a
535

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button