@graphlearning/graphl-flow 0.9.0 → 0.10.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 +23 -15
- package/dist/fit.d.ts +1 -1
- package/dist/index.js +1086 -1079
- package/dist/index.js.map +1 -1
- package/dist/styles.css +5 -0
- package/dist/types.d.ts +16 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -142,6 +142,8 @@
|
|
|
142
142
|
its blank lines, man's 7-column indent was gone). A row is always one row tall; runs are spans. */
|
|
143
143
|
.gf-line { min-height: 1lh; }
|
|
144
144
|
.gf-code[data-terminal] .gf-line { padding-left: 14px; }
|
|
145
|
+
/* wrap: the text cell takes what is left of the line and breaks anywhere, under its own first character. */
|
|
146
|
+
.gf-code[data-wrap] .gf-line > span:last-child { flex: 1 1 0; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
145
147
|
.gf-ln { flex: none; box-sizing: content-box; min-width: 3ch; padding: 0 12px 0 10px; text-align: right; color: var(--gf-code-gutter); user-select: none; }
|
|
146
148
|
.gf-line[data-lit] { background: color-mix(in srgb, var(--gf-accent) 16%, transparent); box-shadow: inset 3px 0 0 var(--gf-accent); }
|
|
147
149
|
.gf-line[data-lit] .gf-ln { color: var(--gf-accent); }
|
|
@@ -213,6 +215,9 @@
|
|
|
213
215
|
.gf-tree-row[data-state='new'] .gf-tree-note { color: var(--gf-ok); }
|
|
214
216
|
.gf-tree-row[data-state='muted'] .gf-tree-note { margin-left: 0; font: italic 14px 'IBM Plex Sans', system-ui, sans-serif; }
|
|
215
217
|
.gf-tree-icon { display: inline-flex; flex: none; line-height: 0; }
|
|
218
|
+
.gf-tree[data-compact] .gf-tree-title { padding: 6px 10px; font-size: 11px; }
|
|
219
|
+
.gf-tree[data-compact] .gf-tree-row { gap: 4px; padding-right: 6px; font-size: 13px; }
|
|
220
|
+
.gf-tree[data-compact] .gf-tree-note { font-size: 11px; padding-left: 10px; }
|
|
216
221
|
|
|
217
222
|
/* A note fills its column and wraps; capped so a note in an unbounded row stays a paragraph. */
|
|
218
223
|
.gf-note {
|
package/dist/types.d.ts
CHANGED
|
@@ -116,6 +116,12 @@ export interface Code extends Base {
|
|
|
116
116
|
show?: [number, number][];
|
|
117
117
|
/** Line numbers (the file's) to tint. */
|
|
118
118
|
highlight?: number[];
|
|
119
|
+
/**
|
|
120
|
+
* Soft-wrap a line wider than the pane, as an editor's word wrap does: the rest continues under
|
|
121
|
+
* the line's own text, beside an empty gutter, and the file's line numbers stay the file's. Each
|
|
122
|
+
* wrapped piece is a ROW — a template that counts rows must count them. Editor panes only.
|
|
123
|
+
*/
|
|
124
|
+
wrap?: boolean;
|
|
119
125
|
/** A terminal: `$ cmd` lines are commands, `! text` errors, the rest output. No line numbers. */
|
|
120
126
|
terminal?: boolean;
|
|
121
127
|
/** A notebook cell's printed output: plain text, no frame or line numbers; `! text` is an error. */
|
|
@@ -185,7 +191,9 @@ export interface Plot extends Base {
|
|
|
185
191
|
axes?: 'origin' | 'corner';
|
|
186
192
|
/** Gridlines at the ticks. Default true. */
|
|
187
193
|
grid?: boolean;
|
|
188
|
-
/** The second fixed size (420×280 drawing area) — a chart in a side pane, at full text size.
|
|
194
|
+
/** The second fixed size (420×280 drawing area) — a chart in a side pane, at full text size. With
|
|
195
|
+
* `w`, the plot is that wide (borders included) and its drawing area takes what the gutters leave:
|
|
196
|
+
* a chart in a column narrower than the compact size. */
|
|
189
197
|
compact?: boolean;
|
|
190
198
|
}
|
|
191
199
|
export interface TreeEntry {
|
|
@@ -206,6 +214,8 @@ export interface Tree extends Base {
|
|
|
206
214
|
/** The panel heading. Default `Explorer`. */
|
|
207
215
|
title?: string;
|
|
208
216
|
entries: TreeEntry[];
|
|
217
|
+
/** Smaller type and indent (13px rows, 11px per level): a sidebar beside a code pane, not the subject. */
|
|
218
|
+
compact?: boolean;
|
|
209
219
|
}
|
|
210
220
|
/** A callout: wrapping prose in a dashed frame of its tone. Fills its column's width. */
|
|
211
221
|
export interface Note extends Base {
|
|
@@ -231,5 +241,10 @@ export interface Scene {
|
|
|
231
241
|
edges?: Edge[];
|
|
232
242
|
/** A dot travels every edge once per 2.4 s (the recorder's loop). Default true. */
|
|
233
243
|
pulse?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* The fit's margin per side, as a fraction of the pane (0–0.2). Default `FIT_PADDING` (0.04). A
|
|
246
|
+
* fixed frame template sized to the pane's aspect (an IDE frame) lowers it to fill the recording.
|
|
247
|
+
*/
|
|
248
|
+
padding?: number;
|
|
234
249
|
}
|
|
235
250
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphlearning/graphl-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Declarative diagram engine — authors describe groups, items and edges; the browser lays them out and the engine draws the edges.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|