Fossil SCM

pikchrshow: swap default config value for position of input/output areas.

stephan 2022-06-06 21:56 pikchrshow-wasm
Commit 3bd30e66a8c1ad9040aaee5b4ae578cb317f3bc2e8fa6cd83bb648395557c5db
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -21,11 +21,11 @@
2121
'use strict';
2222
2323
/* Recall that the 'self' symbol, except where locally
2424
overwritten, refers to the global window or worker object. */
2525
26
- /** Name of the stored copy of PikchrFiddle.config. */
26
+ /** Name of the stored copy of this app's config. */
2727
const configStorageKey = 'pikchrshow-config';
2828
2929
/**
3030
The PikchrFiddle object is intended to be the primary app-level
3131
object for the main-thread side of the fiddle application. It
@@ -33,20 +33,20 @@
3333
with it.
3434
*/
3535
const PS/*local convenience alias*/ = F.PikchrShow/*canonical name*/ = {
3636
/* Config options. */
3737
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. */
3940
sideBySide: true,
4041
/* 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). */
4546
renderAutoScale: false,
46
- /* If true, automatically render while the user is
47
- typing. */
47
+ /* If true, automatically render while the user is typing. */
4848
renderWhileTyping: false
4949
},
5050
renderMode: 'html'/*one of: 'text','html'*/,
5151
_msgMap: {},
5252
/** Adds a worker message handler for messages of the given
5353
--- 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

Keyboard Shortcuts

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