Fossil SCM
pikchrshow: swap default config value for position of input/output areas.
Commit
3bd30e66a8c1ad9040aaee5b4ae578cb317f3bc2e8fa6cd83bb648395557c5db
Parent
63d510764e93fb9…
1 file changed
+8
-8
+8
-8
| --- src/fossil.page.pikchrshowasm.js | ||
| +++ src/fossil.page.pikchrshowasm.js | ||
| @@ -21,11 +21,11 @@ | ||
| 21 | 21 | 'use strict'; |
| 22 | 22 | |
| 23 | 23 | /* Recall that the 'self' symbol, except where locally |
| 24 | 24 | overwritten, refers to the global window or worker object. */ |
| 25 | 25 | |
| 26 | - /** Name of the stored copy of PikchrFiddle.config. */ | |
| 26 | + /** Name of the stored copy of this app's config. */ | |
| 27 | 27 | const configStorageKey = 'pikchrshow-config'; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | The PikchrFiddle object is intended to be the primary app-level |
| 31 | 31 | object for the main-thread side of the fiddle application. It |
| @@ -33,20 +33,20 @@ | ||
| 33 | 33 | with it. |
| 34 | 34 | */ |
| 35 | 35 | const PS/*local convenience alias*/ = F.PikchrShow/*canonical name*/ = { |
| 36 | 36 | /* Config options. */ |
| 37 | 37 | config: { |
| 38 | - /* If true, display input/output areas side-by-side. */ | |
| 38 | + /* If true, display input/output areas side-by-side, else stack | |
| 39 | + them vertically. */ | |
| 39 | 40 | sideBySide: true, |
| 40 | 41 | /* If true, swap positions of the input/output areas. */ |
| 41 | - swapInOut: true, | |
| 42 | - /* If true, the SVG is allowed to resize to fit the | |
| 43 | - parent content area, else the parent is resized to | |
| 44 | - fit the rendered SVG. */ | |
| 42 | + swapInOut: false, | |
| 43 | + /* If true, the SVG is allowed to resize to fit the parent | |
| 44 | + content area, else the parent is resized to fit the rendered | |
| 45 | + SVG (as sized by pikchr). */ | |
| 45 | 46 | renderAutoScale: false, |
| 46 | - /* If true, automatically render while the user is | |
| 47 | - typing. */ | |
| 47 | + /* If true, automatically render while the user is typing. */ | |
| 48 | 48 | renderWhileTyping: false |
| 49 | 49 | }, |
| 50 | 50 | renderMode: 'html'/*one of: 'text','html'*/, |
| 51 | 51 | _msgMap: {}, |
| 52 | 52 | /** Adds a worker message handler for messages of the given |
| 53 | 53 |
| --- src/fossil.page.pikchrshowasm.js | |
| +++ src/fossil.page.pikchrshowasm.js | |
| @@ -21,11 +21,11 @@ | |
| 21 | 'use strict'; |
| 22 | |
| 23 | /* Recall that the 'self' symbol, except where locally |
| 24 | overwritten, refers to the global window or worker object. */ |
| 25 | |
| 26 | /** Name of the stored copy of PikchrFiddle.config. */ |
| 27 | const configStorageKey = 'pikchrshow-config'; |
| 28 | |
| 29 | /** |
| 30 | The PikchrFiddle object is intended to be the primary app-level |
| 31 | object for the main-thread side of the fiddle application. It |
| @@ -33,20 +33,20 @@ | |
| 33 | with it. |
| 34 | */ |
| 35 | const PS/*local convenience alias*/ = F.PikchrShow/*canonical name*/ = { |
| 36 | /* Config options. */ |
| 37 | config: { |
| 38 | /* If true, display input/output areas side-by-side. */ |
| 39 | sideBySide: true, |
| 40 | /* If true, swap positions of the input/output areas. */ |
| 41 | swapInOut: true, |
| 42 | /* If true, the SVG is allowed to resize to fit the |
| 43 | parent content area, else the parent is resized to |
| 44 | fit the rendered SVG. */ |
| 45 | renderAutoScale: false, |
| 46 | /* If true, automatically render while the user is |
| 47 | typing. */ |
| 48 | renderWhileTyping: false |
| 49 | }, |
| 50 | renderMode: 'html'/*one of: 'text','html'*/, |
| 51 | _msgMap: {}, |
| 52 | /** Adds a worker message handler for messages of the given |
| 53 |
| --- src/fossil.page.pikchrshowasm.js | |
| +++ src/fossil.page.pikchrshowasm.js | |
| @@ -21,11 +21,11 @@ | |
| 21 | 'use strict'; |
| 22 | |
| 23 | /* Recall that the 'self' symbol, except where locally |
| 24 | overwritten, refers to the global window or worker object. */ |
| 25 | |
| 26 | /** Name of the stored copy of this app's config. */ |
| 27 | const configStorageKey = 'pikchrshow-config'; |
| 28 | |
| 29 | /** |
| 30 | The PikchrFiddle object is intended to be the primary app-level |
| 31 | object for the main-thread side of the fiddle application. It |
| @@ -33,20 +33,20 @@ | |
| 33 | with it. |
| 34 | */ |
| 35 | const PS/*local convenience alias*/ = F.PikchrShow/*canonical name*/ = { |
| 36 | /* Config options. */ |
| 37 | config: { |
| 38 | /* If true, display input/output areas side-by-side, else stack |
| 39 | them vertically. */ |
| 40 | sideBySide: true, |
| 41 | /* If true, swap positions of the input/output areas. */ |
| 42 | swapInOut: false, |
| 43 | /* If true, the SVG is allowed to resize to fit the parent |
| 44 | content area, else the parent is resized to fit the rendered |
| 45 | SVG (as sized by pikchr). */ |
| 46 | renderAutoScale: false, |
| 47 | /* If true, automatically render while the user is typing. */ |
| 48 | renderWhileTyping: false |
| 49 | }, |
| 50 | renderMode: 'html'/*one of: 'text','html'*/, |
| 51 | _msgMap: {}, |
| 52 | /** Adds a worker message handler for messages of the given |
| 53 |