Fossil SCM

Consolidated some minor code drift between pikchr's fiddle and fossil's pikchrshow.

stephan 2022-07-28 18:59 trunk
Commit 44cd9753925065c6efe985cfbd0bbe00fdd5d6cd07b554f132cc5c19bbf81143
--- extsrc/pikchr-worker.js
+++ extsrc/pikchr-worker.js
@@ -66,11 +66,11 @@
6666
6767
{type: 'pikchr',
6868
data:{
6969
pikchr: input text,
7070
result: rendered result (SVG on success, HTML on error),
71
- isError: bool, true if .result holds an error report,
71
+ isError: bool, true if .pikchr holds an error report,
7272
flags: integer: flags used to configure the pikchr rendering,
7373
width: if !isError, width (integer pixels) of the SVG,
7474
height: if !isError, height (integer pixels) of the SVG
7575
}
7676
}
@@ -214,8 +214,8 @@
214214
building with:
215215
216216
emcc ... -sMODULARIZE=1 -sEXPORT_NAME=initPikchrModule
217217
*/
218218
initPikchrModule(pikchrModule).then(function(thisModule){
219
- wMsg('pikchrshow-ready');
219
+ wMsg('pikchr-ready');
220220
});
221221
})();
222222
--- extsrc/pikchr-worker.js
+++ extsrc/pikchr-worker.js
@@ -66,11 +66,11 @@
66
67 {type: 'pikchr',
68 data:{
69 pikchr: input text,
70 result: rendered result (SVG on success, HTML on error),
71 isError: bool, true if .result holds an error report,
72 flags: integer: flags used to configure the pikchr rendering,
73 width: if !isError, width (integer pixels) of the SVG,
74 height: if !isError, height (integer pixels) of the SVG
75 }
76 }
@@ -214,8 +214,8 @@
214 building with:
215
216 emcc ... -sMODULARIZE=1 -sEXPORT_NAME=initPikchrModule
217 */
218 initPikchrModule(pikchrModule).then(function(thisModule){
219 wMsg('pikchrshow-ready');
220 });
221 })();
222
--- extsrc/pikchr-worker.js
+++ extsrc/pikchr-worker.js
@@ -66,11 +66,11 @@
66
67 {type: 'pikchr',
68 data:{
69 pikchr: input text,
70 result: rendered result (SVG on success, HTML on error),
71 isError: bool, true if .pikchr holds an error report,
72 flags: integer: flags used to configure the pikchr rendering,
73 width: if !isError, width (integer pixels) of the SVG,
74 height: if !isError, height (integer pixels) of the SVG
75 }
76 }
@@ -214,8 +214,8 @@
214 building with:
215
216 emcc ... -sMODULARIZE=1 -sEXPORT_NAME=initPikchrModule
217 */
218 initPikchrModule(pikchrModule).then(function(thisModule){
219 wMsg('pikchr-ready');
220 });
221 })();
222
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -170,14 +170,14 @@
170170
171171
PS.e.previewModeLabel.innerText =
172172
PS.renderModeLabels[PS.renderModes[PS.renderModes.selectedIndex]];
173173
174174
/**
175
- The 'pikchrshow-ready' event is fired (with no payload) when the
175
+ The 'pikchr-ready' event is fired (with no payload) when the
176176
wasm module has finished loading. */
177
- PS.addMsgHandler('pikchrshow-ready', function(){
178
- PS.clearMsgHandlers('pikchrshow-ready');
177
+ PS.addMsgHandler('pikchr-ready', function(){
178
+ PS.clearMsgHandlers('pikchr-ready');
179179
F.page.onPikchrshowLoaded();
180180
});
181181
182182
/**
183183
Performs all app initialization which must wait until after the
184184
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -170,14 +170,14 @@
170
171 PS.e.previewModeLabel.innerText =
172 PS.renderModeLabels[PS.renderModes[PS.renderModes.selectedIndex]];
173
174 /**
175 The 'pikchrshow-ready' event is fired (with no payload) when the
176 wasm module has finished loading. */
177 PS.addMsgHandler('pikchrshow-ready', function(){
178 PS.clearMsgHandlers('pikchrshow-ready');
179 F.page.onPikchrshowLoaded();
180 });
181
182 /**
183 Performs all app initialization which must wait until after the
184
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -170,14 +170,14 @@
170
171 PS.e.previewModeLabel.innerText =
172 PS.renderModeLabels[PS.renderModes[PS.renderModes.selectedIndex]];
173
174 /**
175 The 'pikchr-ready' event is fired (with no payload) when the
176 wasm module has finished loading. */
177 PS.addMsgHandler('pikchr-ready', function(){
178 PS.clearMsgHandlers('pikchr-ready');
179 F.page.onPikchrshowLoaded();
180 });
181
182 /**
183 Performs all app initialization which must wait until after the
184

Keyboard Shortcuts

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