Fossil SCM
Consolidated some minor code drift between pikchr's fiddle and fossil's pikchrshow.
Commit
44cd9753925065c6efe985cfbd0bbe00fdd5d6cd07b554f132cc5c19bbf81143
Parent
ffa1c7d0a0e6b32…
2 files changed
+2
-2
+3
-3
+2
-2
| --- extsrc/pikchr-worker.js | ||
| +++ extsrc/pikchr-worker.js | ||
| @@ -66,11 +66,11 @@ | ||
| 66 | 66 | |
| 67 | 67 | {type: 'pikchr', |
| 68 | 68 | data:{ |
| 69 | 69 | pikchr: input text, |
| 70 | 70 | 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, | |
| 72 | 72 | flags: integer: flags used to configure the pikchr rendering, |
| 73 | 73 | width: if !isError, width (integer pixels) of the SVG, |
| 74 | 74 | height: if !isError, height (integer pixels) of the SVG |
| 75 | 75 | } |
| 76 | 76 | } |
| @@ -214,8 +214,8 @@ | ||
| 214 | 214 | building with: |
| 215 | 215 | |
| 216 | 216 | emcc ... -sMODULARIZE=1 -sEXPORT_NAME=initPikchrModule |
| 217 | 217 | */ |
| 218 | 218 | initPikchrModule(pikchrModule).then(function(thisModule){ |
| 219 | - wMsg('pikchrshow-ready'); | |
| 219 | + wMsg('pikchr-ready'); | |
| 220 | 220 | }); |
| 221 | 221 | })(); |
| 222 | 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 .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 |
+3
-3
| --- src/fossil.page.pikchrshowasm.js | ||
| +++ src/fossil.page.pikchrshowasm.js | ||
| @@ -170,14 +170,14 @@ | ||
| 170 | 170 | |
| 171 | 171 | PS.e.previewModeLabel.innerText = |
| 172 | 172 | PS.renderModeLabels[PS.renderModes[PS.renderModes.selectedIndex]]; |
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | - The 'pikchrshow-ready' event is fired (with no payload) when the | |
| 175 | + The 'pikchr-ready' event is fired (with no payload) when the | |
| 176 | 176 | 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'); | |
| 179 | 179 | F.page.onPikchrshowLoaded(); |
| 180 | 180 | }); |
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | 183 | Performs all app initialization which must wait until after the |
| 184 | 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 '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 |