spyret 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/dist/spyret-browser.amd.js +28 -28
- package/dist/spyret-browser.global.js +28 -28
- package/dist/spyret-browser.js +28 -28
- package/dist/spyret-browser.mjs +26 -26
- package/dist/spyret.global.js +10 -10
- package/dist/spyret.js +10 -10
- package/dist/spyret.mjs +9 -9
- package/dist/spyret.pyret.js +29 -29
- package/docs/BROWSER_LIBRARY.md +9 -4
- package/docs/RELEASING.md +45 -6
- package/docs/SPYTIAL_HOOKS.md +8 -10
- package/docs/SPYTIAL_LANGUAGE.md +194 -0
- package/docs/SPYTIAL_RULES_REFERENCE.md +23 -21
- package/package.json +1 -1
- package/pyret/spytial.arr +82 -392
package/README.md
CHANGED
|
@@ -37,8 +37,10 @@ runtime requirements. For portable snapshots and reconstruction, see the
|
|
|
37
37
|
## Pyret: import, describe, display
|
|
38
38
|
|
|
39
39
|
A maintainer runs `npm run release:drive` and follows the
|
|
40
|
-
[
|
|
41
|
-
|
|
40
|
+
[CPO-save and Drive publishing instructions](docs/RELEASING.md). The native
|
|
41
|
+
JavaScript file needs CPO per-file authorization; a public Drive upload alone
|
|
42
|
+
is insufficient. Verify access with a second account before distributing the
|
|
43
|
+
versioned wrapper, which combines typed rule constructors and diagram functions:
|
|
42
44
|
|
|
43
45
|
```pyret
|
|
44
46
|
# Use the import line supplied by the library maintainer.
|
|
@@ -49,7 +51,7 @@ data Tree:
|
|
|
49
51
|
| branch(left, right)
|
|
50
52
|
sharing:
|
|
51
53
|
method _spytial(self):
|
|
52
|
-
[list: S.orientation("left + right", [list: S.
|
|
54
|
+
[list: S.orientation("left + right", [list: S.below])]
|
|
53
55
|
end
|
|
54
56
|
end
|
|
55
57
|
|
|
@@ -61,7 +63,12 @@ a diagram. Compose rules with ordinary Pyret lists; constructors such as
|
|
|
61
63
|
`orientation`, `align` and `group` handle their constraint/directive category.
|
|
62
64
|
`S.diagram([list: 1, 2, 3])` also works without any hooks. To supply rules explicitly,
|
|
63
65
|
use `S.diagram-with-rules(value, rules)`, or `S.diagram(value, yaml)` for YAML.
|
|
64
|
-
See the [rule
|
|
66
|
+
See the [layout rule guide](docs/SPYTIAL_LANGUAGE.md) for examples and meaning,
|
|
67
|
+
and the [rule reference](docs/SPYTIAL_RULES_REFERENCE.md) for every constructor.
|
|
68
|
+
These examples use the 0.3.0 source API. The published v0.2.0 release wrapper
|
|
69
|
+
uses names such as `S.direction-below`; `release:drive` prints an example
|
|
70
|
+
matching the release it downloads. Version 0.3.0 also replaces fluent
|
|
71
|
+
`.with-*` style options with named records and typed style blocks.
|
|
65
72
|
|
|
66
73
|
The import form depends on the host and file:
|
|
67
74
|
|