Fossil SCM

Re-imported pikchr's example scripts using the output from its new example-to-js converter.

stephan 2020-09-12 19:28 trunk
Commit 4d946271f73ed3f23a52fee81bda030187c9fd18c6e84847a9c79b60062cf89a
--- src/fossil.page.pikchrshow.js
+++ src/fossil.page.pikchrshow.js
@@ -386,14 +386,13 @@
386386
P.predefinedPiks = [
387387
{name: "-- Example Scripts --"},
388388
/*
389389
The following were imported from the pikchr test scripts:
390390
391
- https://fossil-scm.org/pikchr/dir/tests
391
+ https://fossil-scm.org/pikchr/dir/examples
392392
*/
393
-
394
-{name: "headings01", code:` linerad = 5px
393
+{name:"Cardinal headings",code:` linerad = 5px
395394
C: circle "Center" rad 150%
396395
circle "N" at 1.0 n of C; arrow from C to last chop ->
397396
circle "NE" at 1.0 ne of C; arrow from C to last chop <-
398397
circle "E" at 1.0 e of C; arrow from C to last chop <->
399398
circle "SE" at 1.0 se of C; arrow from C to last chop ->
@@ -408,12 +407,11 @@
408407
thickness 150% fill lightblue radius 75%
409408
arrow from Center to ESE thickness 150% <-> chop
410409
arrow from ESE up 1.35 then to NE chop
411410
line dashed <- from E.e to (ESE.x,E.y)
412411
line dotted <-> thickness 50% from N to NW chop
413
-`},
414
-{name: "objects", code:`AllObjects: [
412
+`},{name:"Core object types",code:`AllObjects: [
415413
416414
# First row of objects
417415
box "box"
418416
box rad 10px "box (with" "rounded" "corners)" at 1in right of previous
419417
circle "circle" at 1in right of previous
@@ -460,12 +458,11 @@
460458
461459
] # end of AllObjects
462460
463461
# Label the whole diagram
464462
text "Examples Of Pikchr Objects" big bold at .8cm above north of AllObjects
465
-`},
466
-{name: "swimlane", code:` $laneh = 0.75
463
+`},{name:"Swimlanes",code:` $laneh = 0.75
467464
468465
# Draw the lanes
469466
down
470467
box width 3.5in height $laneh fill 0xacc9e3
471468
box same fill 0xc5d8ef
472469
--- src/fossil.page.pikchrshow.js
+++ src/fossil.page.pikchrshow.js
@@ -386,14 +386,13 @@
386 P.predefinedPiks = [
387 {name: "-- Example Scripts --"},
388 /*
389 The following were imported from the pikchr test scripts:
390
391 https://fossil-scm.org/pikchr/dir/tests
392 */
393
394 {name: "headings01", code:` linerad = 5px
395 C: circle "Center" rad 150%
396 circle "N" at 1.0 n of C; arrow from C to last chop ->
397 circle "NE" at 1.0 ne of C; arrow from C to last chop <-
398 circle "E" at 1.0 e of C; arrow from C to last chop <->
399 circle "SE" at 1.0 se of C; arrow from C to last chop ->
@@ -408,12 +407,11 @@
408 thickness 150% fill lightblue radius 75%
409 arrow from Center to ESE thickness 150% <-> chop
410 arrow from ESE up 1.35 then to NE chop
411 line dashed <- from E.e to (ESE.x,E.y)
412 line dotted <-> thickness 50% from N to NW chop
413 `},
414 {name: "objects", code:`AllObjects: [
415
416 # First row of objects
417 box "box"
418 box rad 10px "box (with" "rounded" "corners)" at 1in right of previous
419 circle "circle" at 1in right of previous
@@ -460,12 +458,11 @@
460
461 ] # end of AllObjects
462
463 # Label the whole diagram
464 text "Examples Of Pikchr Objects" big bold at .8cm above north of AllObjects
465 `},
466 {name: "swimlane", code:` $laneh = 0.75
467
468 # Draw the lanes
469 down
470 box width 3.5in height $laneh fill 0xacc9e3
471 box same fill 0xc5d8ef
472
--- src/fossil.page.pikchrshow.js
+++ src/fossil.page.pikchrshow.js
@@ -386,14 +386,13 @@
386 P.predefinedPiks = [
387 {name: "-- Example Scripts --"},
388 /*
389 The following were imported from the pikchr test scripts:
390
391 https://fossil-scm.org/pikchr/dir/examples
392 */
393 {name:"Cardinal headings",code:` linerad = 5px
 
394 C: circle "Center" rad 150%
395 circle "N" at 1.0 n of C; arrow from C to last chop ->
396 circle "NE" at 1.0 ne of C; arrow from C to last chop <-
397 circle "E" at 1.0 e of C; arrow from C to last chop <->
398 circle "SE" at 1.0 se of C; arrow from C to last chop ->
@@ -408,12 +407,11 @@
407 thickness 150% fill lightblue radius 75%
408 arrow from Center to ESE thickness 150% <-> chop
409 arrow from ESE up 1.35 then to NE chop
410 line dashed <- from E.e to (ESE.x,E.y)
411 line dotted <-> thickness 50% from N to NW chop
412 `},{name:"Core object types",code:`AllObjects: [
 
413
414 # First row of objects
415 box "box"
416 box rad 10px "box (with" "rounded" "corners)" at 1in right of previous
417 circle "circle" at 1in right of previous
@@ -460,12 +458,11 @@
458
459 ] # end of AllObjects
460
461 # Label the whole diagram
462 text "Examples Of Pikchr Objects" big bold at .8cm above north of AllObjects
463 `},{name:"Swimlanes",code:` $laneh = 0.75
 
464
465 # Draw the lanes
466 down
467 box width 3.5in height $laneh fill 0xacc9e3
468 box same fill 0xc5d8ef
469

Keyboard Shortcuts

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