@mark1russell7/visuals 0.3.4 → 0.3.6

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/build/graph.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Point, Rect } from "@mark1russell7/layout-contract";
1
+ import { n as Highlight } from "./highlight-BJ6xGp6V.js";
2
+ import { LabelAlign, LayoutPicture, PathSegment, PictureBox, PictureLabel, PictureRoute, Point, Rect, Ring } from "@mark1russell7/layout-contract";
2
3
  /**
3
4
  * The camera of a flat picture: a zoom and the position of the origin.
4
5
  * A point `p` of the picture shows at the screen point `p * k + (x, y)`. Each screen length is in CSS pixels.
@@ -94,6 +95,24 @@ interface FitOptions {
94
95
  * The middle of the rectangle is at the middle of the area. A rectangle with no size gets the largest zoom.
95
96
  */
96
97
  export declare function fitRect(rect: Rect, area: Rect, options?: FitOptions): PictureView;
98
+ /**
99
+ * This function gives the limits of the zoom for a picture with the bounds `bounds`.
100
+ *
101
+ * The smallest zoom of the result shows all of the picture in the area, with a padding at each edge.
102
+ * A picture that fits at the smallest zoom of `limits` keeps `limits`. Thus a person can show all of a very large picture.
103
+ */
104
+ export declare function zoomLimitsFor(bounds: Rect, area: Rect, limits?: ZoomLimits, padding?: number): ZoomLimits;
105
+ /** The length of a picture that stays in the free area when a person moves the picture, in CSS pixels. */
106
+ export declare const KEEP_IN_VIEW = 64;
107
+ /**
108
+ * This function gives the view that keeps a part of a rectangle of the picture in an area of the screen.
109
+ * A person who moves the picture then cannot lose it.
110
+ *
111
+ * `least` is the length of the rectangle that stays in the area on each axis, in CSS pixels.
112
+ * A rectangle that is smaller on the screen stays in the area fully. The zoom does not change.
113
+ * The result is `view` itself when the view keeps the rectangle.
114
+ */
115
+ export declare function keepRect(view: PictureView, rect: Rect, area: Rect, least?: number): PictureView;
97
116
  /** The options of `frameRects`. */
98
117
  interface FrameOptions extends FitOptions {
99
118
  /** The smallest zoom at which a person reads the content of a rectangle. */
@@ -155,6 +174,557 @@ interface PictureMoveStep {
155
174
  * The move has a slow start and a slow end. A move with no duration is at its end immediately.
156
175
  */
157
176
  export declare function pictureMoveAt(move: PictureMove, now: number): PictureMoveStep;
177
+ /** What an aim gets: the picture and the screen at the time of the aim. */
178
+ interface AimFrame {
179
+ /** The bounds of the content, in the unit of the picture. */
180
+ readonly bounds: Rect;
181
+ /** The free area of the picture on the screen, in CSS pixels. */
182
+ readonly area: Rect;
183
+ /** The view of the camera before the aim. */
184
+ readonly view: PictureView;
185
+ /** The limits of the zoom. */
186
+ readonly limits: ZoomLimits;
187
+ }
188
+ /**
189
+ * An aim of the camera of a flat picture: a function that gives the view for a picture and a screen.
190
+ * A stage asks the aim again after a change of the size of the picture, so the view stays correct.
191
+ */
192
+ type PictureAim = (frame: AimFrame) => PictureView;
193
+ /** This function makes the aim that shows all of the picture, as large as the free area permits. */
194
+ export declare function aimAll(options?: FitOptions): PictureAim;
195
+ /**
196
+ * This function makes the aim that shows a group of boxes at a zoom that a person reads.
197
+ * The rectangles are the bounds of the groups, the largest group first: `frameRects` selects one. An empty list keeps the view.
198
+ */
199
+ export declare function aimRects(rects: readonly Rect[], options: FrameOptions): PictureAim;
200
+ /**
201
+ * This function makes the aim that shows a selection, and keeps the view when the selection is in view.
202
+ * The rectangles are the bounds of the groups of the selection, the largest group first: `revealRects` selects one.
203
+ */
204
+ export declare function aimReveal(rects: readonly Rect[], options: RevealOptions): PictureAim;
205
+ /**
206
+ * A record of a picture that a person can point at: a box or a route. The name of the record is its id.
207
+ * A box and a route with the same id are one record for the highlights of a stage.
208
+ */
209
+ type PictureRecord = {
210
+ readonly type: "box";
211
+ readonly id: string;
212
+ readonly box: PictureBox;
213
+ } | {
214
+ readonly type: "route";
215
+ readonly id: string;
216
+ readonly route: PictureRoute;
217
+ };
218
+ /** The tables of a picture, for the functions that find its records. */
219
+ interface PictureIndex {
220
+ readonly picture: LayoutPicture;
221
+ /** Each box by its id. */
222
+ readonly boxes: ReadonlyMap<string, PictureBox>;
223
+ /** Each route by its id. */
224
+ readonly routes: ReadonlyMap<string, PictureRoute>;
225
+ /** The children of each box that has children, in the order of the picture. A box with children is a container. */
226
+ readonly children: ReadonlyMap<string, readonly PictureBox[]>;
227
+ /** The routes that start or end at each box, in the order of the picture. */
228
+ readonly routesAt: ReadonlyMap<string, readonly PictureRoute[]>;
229
+ /** The labels that name each box, in the order of the picture. */
230
+ readonly boxLabels: ReadonlyMap<string, readonly PictureLabel[]>;
231
+ /** The labels that name each route, in the order of the picture. */
232
+ readonly routeLabels: ReadonlyMap<string, readonly PictureLabel[]>;
233
+ /** The labels that name no record, in the order of the picture. */
234
+ readonly freeLabels: readonly PictureLabel[];
235
+ }
236
+ /**
237
+ * This function makes the tables of a picture. It does not examine the picture: `checkPicture` of `@mark1russell7/layout-contract` does that.
238
+ * For an id that two boxes have, the table has the last box. A label that names a record that the picture does not have is in no table.
239
+ * Thus a page that removes a route from a picture can keep the label of the route.
240
+ */
241
+ export declare function indexPicture(picture: LayoutPicture): PictureIndex;
242
+ /** The line of a route, for the functions that find it: its bounds, and a polyline that follows its path. */
243
+ interface RouteLine {
244
+ readonly bounds: Rect;
245
+ /** The polyline is 0.5 units or less from the path. */
246
+ readonly points: readonly Point[];
247
+ }
248
+ /**
249
+ * This function gives the line of a route, or `undefined` for a route with an empty path.
250
+ * It keeps the line of each route, so a second question about a route costs nothing.
251
+ */
252
+ export declare function routeLine(route: PictureRoute): RouteLine | undefined;
253
+ /** The focus of a picture: the records that stay clear, while each other record has less color. */
254
+ interface PictureFocus {
255
+ /** The ids of the boxes of the focus. */
256
+ readonly boxes: ReadonlySet<string>;
257
+ /** The ids of the routes of the focus. */
258
+ readonly routes: ReadonlySet<string>;
259
+ }
260
+ /**
261
+ * How near a record is to the focus of a picture.
262
+ *
263
+ * - `all`: the picture has no focus, so each record is clear.
264
+ * - `in`: the record is in the focus.
265
+ * - `beside`: the box is not in the focus, and its parent is. An example is a different row of the card of the selection.
266
+ * - `out`: the record is not in the focus.
267
+ */
268
+ type FocusLevel = "all" | "in" | "beside" | "out";
269
+ /** The share of the color that a record keeps at each focus level. */
270
+ export declare const FOCUS_OPACITY: Readonly<Record<FocusLevel, number>>;
271
+ /**
272
+ * This function gives the focus of a list of records, or `undefined` when the picture has none of them.
273
+ *
274
+ * - A box brings each box below it in the tree.
275
+ * - Each route at one of these boxes is in the focus, with the box at its other end.
276
+ * - A route brings its two boxes.
277
+ * - Each box of the focus brings each box above it in the tree, so the card of a row stays clear.
278
+ */
279
+ export declare function focusOf(index: PictureIndex, seeds: Iterable<string>): PictureFocus | undefined;
280
+ /** This function gives the focus level of a box. */
281
+ export declare function boxFocus(focus: PictureFocus | undefined, box: PictureBox): FocusLevel;
282
+ /** This function gives the focus level of a route: `all`, `in` or `out`. */
283
+ export declare function routeFocus(focus: PictureFocus | undefined, route: PictureRoute): FocusLevel;
284
+ /** What a look knows about a record at the time of a picture. */
285
+ interface RecordState {
286
+ /** The highlight of the record. A label has the highlight of the record that it names. */
287
+ readonly highlight: Highlight;
288
+ /** How near the record is to the focus of the picture. */
289
+ readonly focus: FocusLevel;
290
+ /** The zoom of the camera: the number of CSS pixels for one unit of the picture. */
291
+ readonly zoom: number;
292
+ /** This value is true for a box with children, and for a label of such a box. */
293
+ readonly container: boolean;
294
+ }
295
+ /**
296
+ * This function gives the size of one unit of a look, in the unit of the picture.
297
+ * The widths of the lines, the dashes and the sizes of the signs of a look are in this unit.
298
+ *
299
+ * At the zoom 1 or less, one unit is one CSS pixel. Thus a thin line stays clear in a small picture.
300
+ * Above the zoom 1, one unit is one unit of the picture. Thus a line grows with its box.
301
+ */
302
+ export declare function lookUnit(zoom: number): number;
303
+ /** A line around a box, off its border. A page shows a selection with it. */
304
+ interface BoxRing {
305
+ readonly color: string;
306
+ /** The width of the line, in units of a look. */
307
+ readonly width: number;
308
+ /** The distance from the border of the box to the line, in units of a look. A polygon has the line on its border. */
309
+ readonly gap: number;
310
+ }
311
+ /** A small sign in a box, for example for the state of its record. */
312
+ interface BoxMark {
313
+ /** A `dot` is a full circle, and a `ring` is the line of a circle. */
314
+ readonly shape: "dot" | "ring";
315
+ /** The middle of the sign from the left edge of the box, in the unit of the picture. */
316
+ readonly x: number;
317
+ /** The middle of the sign from the top edge of the box, in the unit of the picture. */
318
+ readonly y: number;
319
+ /** The radius of the sign, in units of a look. */
320
+ readonly radius: number;
321
+ readonly color: string;
322
+ /** The width of the line of a ring, in units of a look. The default is 1.5. */
323
+ readonly width?: number | undefined;
324
+ }
325
+ /** The look of a box. A box with no `fill` and no `stroke` shows only its ring and its signs. */
326
+ interface BoxLook {
327
+ /** The color of the inside. */
328
+ readonly fill?: string | undefined;
329
+ /** The color of the border. */
330
+ readonly stroke?: string | undefined;
331
+ /** The width of the border, in units of a look. The default is 1. */
332
+ readonly width?: number | undefined;
333
+ /** The lengths of the dashes and the gaps of the border, in units of a look. */
334
+ readonly dash?: readonly number[] | undefined;
335
+ /** The radius of the corners of a rectangle, in the unit of the picture. The default is 0. */
336
+ readonly radius?: number | undefined;
337
+ /** The share of its color that the box keeps, from 0 to 1. The focus of the picture decreases it more. The default is 1. */
338
+ readonly opacity?: number | undefined;
339
+ readonly ring?: BoxRing | undefined;
340
+ readonly marks?: readonly BoxMark[] | undefined;
341
+ }
342
+ /** The sign at an end of a route. */
343
+ interface RouteEnd {
344
+ /** An `arrow` points along the route, out of it. A `dot` is a full circle. */
345
+ readonly shape: "arrow" | "dot";
346
+ /** The length of an arrow or the radius of a dot, in units of a look. */
347
+ readonly size: number;
348
+ }
349
+ /** The look of a route. */
350
+ interface RouteLook {
351
+ readonly stroke: string;
352
+ /** The width of the line, in units of a look. The default is 1.25. */
353
+ readonly width?: number | undefined;
354
+ /** The lengths of the dashes and the gaps, in units of a look. */
355
+ readonly dash?: readonly number[] | undefined;
356
+ /** The share of its color that the route keeps, from 0 to 1. The default is 1. */
357
+ readonly opacity?: number | undefined;
358
+ /** The sign at the source of the route. */
359
+ readonly start?: RouteEnd | undefined;
360
+ /** The sign at the target of the route. */
361
+ readonly end?: RouteEnd | undefined;
362
+ }
363
+ /** The look of a label. */
364
+ interface LabelLook {
365
+ readonly color: string;
366
+ /** The share of its color that the label keeps, from 0 to 1. The default is 1. */
367
+ readonly opacity?: number | undefined;
368
+ /** The color of a line around each letter. A text on a route is clear with the color of the page. */
369
+ readonly halo?: string | undefined;
370
+ /** With `bars`, each line is a bar of its width: a person sees the form of a text that is too small to read. The default is `text`. */
371
+ readonly as?: "text" | "bars" | undefined;
372
+ }
373
+ /**
374
+ * The looks of a picture: one function for each type of record. `T` is the type of the theme.
375
+ * Each function gives the look of a record in a state, or `undefined` for a record that the picture does not show.
376
+ * A box that the picture does not show takes its labels with it, and a person cannot point at it.
377
+ */
378
+ interface PictureLooks<T> {
379
+ box(box: PictureBox, state: RecordState, theme: T): BoxLook | undefined;
380
+ route(route: PictureRoute, state: RecordState, theme: T): RouteLook | undefined;
381
+ /** `of` is the record that the label names, or `undefined` for a label that names no record. */
382
+ label(label: PictureLabel, state: RecordState, theme: T, of: PictureRecord | undefined): LabelLook | undefined;
383
+ }
384
+ /** The colors of a plain picture. */
385
+ interface PictureTheme {
386
+ /** The inside of a box with no child. */
387
+ readonly box: string;
388
+ /** The border of a box with no child. */
389
+ readonly boxLine: string;
390
+ /** The inside of a box with children. */
391
+ readonly container: string;
392
+ /** The border of a box with children, and the bars of a text that is too small to read. */
393
+ readonly containerLine: string;
394
+ readonly text: string;
395
+ /** The text of a box with children. */
396
+ readonly mutedText: string;
397
+ readonly route: string;
398
+ /** The color of a record with a highlight. */
399
+ readonly accent: string;
400
+ /** The color of the page behind the picture. The line around the text of a route has it. */
401
+ readonly paper: string;
402
+ }
403
+ /** The colors of a plain picture on a light page. */
404
+ export declare const LIGHT_PICTURE_THEME: PictureTheme;
405
+ /** The colors of a plain picture on a dark page. */
406
+ export declare const DARK_PICTURE_THEME: PictureTheme;
407
+ /** The smallest height of a line of text on the screen that a person can read, in CSS pixels. A smaller line is a bar in a plain picture. */
408
+ export declare const SMALLEST_TEXT_LINE = 11;
409
+ /** The smallest height of a line of text on the screen that a plain picture shows as a bar, in CSS pixels. */
410
+ export declare const SMALLEST_BAR_LINE = 2.5;
411
+ /** The options of `plainLooks`. */
412
+ interface PlainLookOptions {
413
+ /** The radius of the corners of each box, in the unit of the picture. The default is 6. */
414
+ readonly radius?: number | undefined;
415
+ /** The sign at the target of each route. The default is no sign. */
416
+ readonly end?: RouteEnd | undefined;
417
+ }
418
+ /**
419
+ * This function gives the looks of a plain picture: boxes with a border, routes as lines and the text of the labels.
420
+ *
421
+ * - A record below the pointer has the color `accent`. The selected record has a wider line too.
422
+ * - A box with children has the colors of a container, and its label has the muted color.
423
+ * - The label of a route has a line of the color `paper` around its letters.
424
+ * - A text that is too small to read is a row of bars. A text that is smaller than a bar has no paint.
425
+ */
426
+ export declare function plainLooks(options?: PlainLookOptions): PictureLooks<PictureTheme>;
427
+ /** The record below the pointer of a flat picture: its name, and the value that the content gives for it. */
428
+ interface PicturePick<P> {
429
+ /** The name of the record. The highlights of the stage use this name. */
430
+ readonly record: string;
431
+ /** The value of the record for the page, for example its kind and its source. */
432
+ readonly value: P;
433
+ }
434
+ /** The position of a pointer on a flat picture, for the pick of a content. */
435
+ interface PickAt {
436
+ /** The point of the picture below the pointer. */
437
+ readonly point: Point;
438
+ /** The position of the pointer on the screen, in CSS pixels from the top left corner of the picture. */
439
+ readonly screen: Point;
440
+ /** The view of the camera. */
441
+ readonly view: PictureView;
442
+ /** The distance from the pointer at which a thin part is below the pointer, in CSS pixels. A finger has a larger distance than a mouse. */
443
+ readonly slack: number;
444
+ }
445
+ /** One picture of a flat stage, for the drawing of its content. */
446
+ interface PictureFrame {
447
+ /** The view of the camera. */
448
+ readonly view: PictureView;
449
+ /** The width of the picture, in CSS pixels. */
450
+ readonly width: number;
451
+ /** The height of the picture, in CSS pixels. */
452
+ readonly height: number;
453
+ /** The part of the picture that the page does not cover, in CSS pixels. */
454
+ readonly area: Rect;
455
+ /** The number of pixels of the canvas for one CSS pixel. */
456
+ readonly pixelRatio: number;
457
+ /** The time since the last picture, in seconds. */
458
+ readonly seconds: number;
459
+ /**
460
+ * This value is true for the first picture of a content, and for a person who asks for less motion.
461
+ * Each change then has no time: the content sets each value to its goal immediately.
462
+ */
463
+ readonly settle: boolean;
464
+ }
465
+ /**
466
+ * The content of a flat stage: what the stage draws, and what the stage asks of it.
467
+ * `P` is the type of the value of a pick, and `T` is the type of the theme.
468
+ */
469
+ interface PictureContent<P, T> {
470
+ /** The bounds of the content, in the unit of the picture. The views and the limits of the camera come from them. */
471
+ readonly bounds: Rect;
472
+ /** This function tells if the content has a record with a name. */
473
+ has(record: string): boolean;
474
+ /** This function gives the record below a pointer, or `undefined` for no record. */
475
+ pick(at: PickAt): PicturePick<P> | undefined;
476
+ /**
477
+ * This function draws the content on a clear canvas. The unit of the context is the CSS pixel: the view is in the frame.
478
+ * `highlight` gives the highlight of a record. The function gives true while a part continues to change.
479
+ * The stage then makes the next picture.
480
+ */
481
+ draw(context: CanvasRenderingContext2D, frame: PictureFrame, theme: T, highlight: (record: string) => Highlight): boolean;
482
+ /** This function releases what the content keeps, for example its images. */
483
+ dispose?(): void;
484
+ }
485
+ /** The options of a flat stage. */
486
+ interface PictureStageOptions<P, T> {
487
+ /** The first content. The stage disposes each content that it gets. */
488
+ readonly content: PictureContent<P, T>;
489
+ readonly theme: T;
490
+ /** The name of the picture for a screen reader. */
491
+ readonly label: string;
492
+ /** The views of the stage, each with a name. The view `all` shows all of the picture, if the options do not give a different one. */
493
+ readonly views?: Readonly<Record<string, PictureAim>> | undefined;
494
+ /** The name of the first view. The keys `Home` and `0` show it. The default is `all`. */
495
+ readonly home?: string | undefined;
496
+ /** The name of the view of a key, for example `{ f: "focus" }`. A letter has no case. */
497
+ readonly keys?: Readonly<Record<string, string>> | undefined;
498
+ /** The limits of the zoom. The default is `ZOOM_LIMITS`. A very large picture gets a smaller least zoom, so a person can show all of it. */
499
+ readonly limits?: ZoomLimits | undefined;
500
+ /** The parts of the picture that the page covers, from each edge, in CSS pixels. */
501
+ readonly insets?: Partial<Insets> | undefined;
502
+ /**
503
+ * When the wheel changes the zoom. With `in-use`, the wheel moves the page until a person uses the picture.
504
+ * With `always`, the wheel changes the zoom at each time. The default is `in-use`. A pinch on a touch pad changes the zoom always.
505
+ */
506
+ readonly wheel?: "always" | "in-use" | undefined;
507
+ /** The stage starts this function when the pointer goes to a different record, or to no record. */
508
+ readonly onHover?: ((pick: P | undefined) => void) | undefined;
509
+ /** The stage starts this function when a person selects a record with the pointer, or selects no record. */
510
+ readonly onSelect?: ((pick: P | undefined) => void) | undefined;
511
+ /** The stage starts this function after a change of the view, one time for each picture at most. */
512
+ readonly onView?: ((view: PictureView) => void) | undefined;
513
+ }
514
+ /** A flat stage in a page: one canvas with a camera that a person moves, and one content. */
515
+ interface PictureStage<P, T> {
516
+ /** The canvas of the stage. It is in the container. */
517
+ readonly canvas: HTMLCanvasElement;
518
+ /** This function shows a different content, and disposes the old content. The view stays if a person moved it. */
519
+ setContent(content: PictureContent<P, T>): void;
520
+ /** This function changes the colors. */
521
+ setTheme(theme: T): void;
522
+ /** This function moves the camera to a view: a name of the options, or an aim. `animate` has the default true. */
523
+ setView(view: string | PictureAim, animate?: boolean): void;
524
+ /** This function tells the stage which parts of the picture the page covers. The camera goes to its view again if no person moved it. */
525
+ setInsets(insets: Partial<Insets>): void;
526
+ /** This function gives the view of the camera. */
527
+ view(): PictureView;
528
+ /** This function gives the part of the picture that the page does not cover, in CSS pixels. */
529
+ area(): Rect;
530
+ /** This function changes the zoom by a factor, at the middle of the free area. Use it for the buttons of a page. `animate` has the default true. */
531
+ zoomBy(factor: number, animate?: boolean): void;
532
+ /** This function highlights records by their names, as the pointer does. An empty list removes the highlights. */
533
+ highlight(records: readonly string[]): void;
534
+ /** This function selects one record by its name, or no record. It does not start `onSelect`. */
535
+ select(record: string | undefined): void;
536
+ /**
537
+ * This function makes a new picture. Use it after a change of the content.
538
+ * After a change of the bounds of the content, the camera goes to its view again if no person moved it.
539
+ */
540
+ refresh(): void;
541
+ /** This function removes the canvas, and disposes the content. */
542
+ dispose(): void;
543
+ }
544
+ /** The distance from a mouse at which a thin part is below the pointer, in CSS pixels. */
545
+ export declare const PICK_SLACK = 5;
546
+ /** The distance from a finger or a pen at which a thin part is below the pointer, in CSS pixels. */
547
+ export declare const TOUCH_PICK_SLACK = 12;
548
+ /** The factor of the zoom for a double click. */
549
+ export declare const DOUBLE_CLICK_ZOOM = 2;
550
+ /**
551
+ * This function makes a flat stage in a container of a page. The stage fills the container, so give the container a size.
552
+ *
553
+ * A person moves the picture with a drag, and changes the zoom with the wheel, with two fingers or with a double click.
554
+ * A click selects the record below the pointer. With the keyboard, the arrow keys move the camera, `+` and `-` change the zoom,
555
+ * and `Home` shows the first view. The stage makes a picture only after a change.
556
+ *
557
+ * The function gives `undefined` when the browser gives no 2D context for a canvas. It does not throw.
558
+ */
559
+ export declare function createPictureStage<P, T>(container: HTMLElement, options: PictureStageOptions<P, T>): PictureStage<P, T> | undefined;
560
+ /** The time in which the color of a record goes most of the way to its goal after a change of the focus, in seconds. */
561
+ export declare const FOCUS_FADE = .08;
562
+ /** The options of `createPictureContent`. `T` is the type of the theme. */
563
+ interface PictureContentOptions<T> {
564
+ /** The looks of the records. `plainLooks` gives the looks of a plain picture. */
565
+ readonly looks: PictureLooks<T>;
566
+ /** This function tells if a person can point at a record. The default permits each box and no route. */
567
+ readonly picks?: ((record: PictureRecord) => boolean) | undefined;
568
+ /**
569
+ * The records of the focus. With `selection`, the selected record and the records at it stay clear, and each other record has less color.
570
+ * With `none`, the picture has no focus until the page gives one with `setFocus`. The default is `selection`.
571
+ */
572
+ readonly focus?: "selection" | "none" | undefined;
573
+ }
574
+ /** The content of a flat stage that shows a picture of `@mark1russell7/layout-contract`. The value of a pick is the record. */
575
+ interface LayoutPictureContent<T> extends PictureContent<PictureRecord, T> {
576
+ /** This function shows a different picture, for example after a new layout. Start `refresh` of the stage after it. */
577
+ setPicture(picture: LayoutPicture): void;
578
+ /**
579
+ * This function sets the records of the focus by their names. An empty list gives no focus.
580
+ * `undefined` gives the focus of the options again. Start `refresh` of the stage after it.
581
+ */
582
+ setFocus(records: readonly string[] | undefined): void;
583
+ }
584
+ /**
585
+ * This function makes the content of a flat stage from a picture: its boxes, its routes and its labels.
586
+ *
587
+ * - The looks give the colors, the lines and the signs of each record from its state.
588
+ * - A person points at the top box below the pointer, or at a route that the option `picks` permits.
589
+ * - A change of the focus changes the colors in a short time.
590
+ * - The content makes shapes only for the records in view.
591
+ *
592
+ * The picture must be good (`checkPicture` of `@mark1russell7/layout-contract`). The content does not change it.
593
+ */
594
+ export declare function createPictureContent<T>(picture: LayoutPicture, options: PictureContentOptions<T>): LayoutPictureContent<T>;
595
+ /** The outline of a shape of a paint list, in the unit of the picture. */
596
+ type PaintOutline = {
597
+ readonly kind: "rect";
598
+ readonly x: number;
599
+ readonly y: number;
600
+ readonly w: number;
601
+ readonly h: number;
602
+ readonly radius: number;
603
+ } | {
604
+ readonly kind: "ellipse";
605
+ readonly cx: number;
606
+ readonly cy: number;
607
+ readonly rx: number;
608
+ readonly ry: number;
609
+ } | {
610
+ readonly kind: "polygon";
611
+ readonly rings: readonly Ring[];
612
+ } | {
613
+ readonly kind: "path";
614
+ readonly path: readonly PathSegment[];
615
+ };
616
+ /** A shape of a paint list with an outline: an inside, a line, or the two. */
617
+ interface PaintOutlined {
618
+ readonly type: "shape";
619
+ readonly outline: PaintOutline;
620
+ /** The color of the inside. */
621
+ readonly fill?: string | undefined;
622
+ /** The color of the line. */
623
+ readonly stroke?: string | undefined;
624
+ /** The width of the line, in the unit of the picture. */
625
+ readonly lineWidth?: number | undefined;
626
+ /** The lengths of the dashes and the gaps of the line, in the unit of the picture. */
627
+ readonly dash?: readonly number[] | undefined;
628
+ /** The share of its color that the shape keeps, above 0 and to 1. */
629
+ readonly opacity: number;
630
+ }
631
+ /** One line of text of a paint list. */
632
+ interface PaintText {
633
+ readonly type: "text";
634
+ readonly text: string;
635
+ /** The point of the line on the x axis: its left end, its middle or its right end, as `align` tells. */
636
+ readonly x: number;
637
+ /** The middle of the height of the line. */
638
+ readonly y: number;
639
+ /** The font, as the CSS property `font`. Its size is in the unit of the picture. */
640
+ readonly font: string;
641
+ readonly align: LabelAlign;
642
+ readonly fill: string;
643
+ /** A line around each letter, below the letters. Its width is in the unit of the picture. */
644
+ readonly halo?: {
645
+ readonly color: string;
646
+ readonly width: number;
647
+ } | undefined;
648
+ /** The share of its color that the text keeps, above 0 and to 1. */
649
+ readonly opacity: number;
650
+ }
651
+ /** One shape of a paint list. The list is in the order of the paint, so its first shape is at the back. */
652
+ type PaintShape = PaintOutlined | PaintText;
653
+ /** The state of a picture at the time of a paint. */
654
+ interface PaintState {
655
+ /** The zoom of the camera: the number of CSS pixels for one unit of the picture. */
656
+ readonly zoom: number;
657
+ /** This function gives the highlight of a record by its name. */
658
+ readonly highlight: (record: string) => Highlight;
659
+ /** The focus of the picture. Without it, each record is clear. */
660
+ readonly focus?: PictureFocus | undefined;
661
+ /** The part of the picture in view. A record out of it gets no shape. Without it, each record gets its shapes. */
662
+ readonly visible?: Rect | undefined;
663
+ /** This function gives the width of a text in a font, in the unit of the picture. A bar of a label has this width, or the width of the label. */
664
+ readonly measure?: ((font: string, text: string) => number) | undefined;
665
+ /**
666
+ * This function gives the share of its color that a record keeps. `key` is the key of the record, and `goal` is the share of its focus level.
667
+ * A content gives a function that goes to the goal with time. Without it, the share is the goal.
668
+ */
669
+ readonly fade?: ((key: string, goal: number) => number) | undefined;
670
+ }
671
+ /** The key of the labels that name no record, for `fade`. */
672
+ export declare const FREE_LABELS = "labels";
673
+ /** The distance out of the view at which a record keeps its shapes, in units of a look. A ring, a sign or a wide line can be this far from its record. */
674
+ export declare const VIEW_MARGIN = 24;
675
+ /** The height of a bar of a label, as a share of the height of its line. */
676
+ export declare const BAR_HEIGHT = .42;
677
+ /** The width of the line around the letters of a label, as a share of the height of its line. */
678
+ export declare const HALO_WIDTH = .25;
679
+ /** The half width of an arrow at the end of a route, as a share of its length. */
680
+ export declare const ARROW_SPREAD = .45;
681
+ /** This function gives the key of a record for `fade`: its type, a colon and its id. A box and a route with the same id have different keys. */
682
+ export declare function recordKey(type: PictureRecord["type"], id: string): string;
683
+ /** This function gives the state of a box for its look. */
684
+ export declare function boxState(index: PictureIndex, box: PictureBox, state: PaintState): RecordState;
685
+ /** This function gives the state of a route for its look. */
686
+ export declare function routeState(route: PictureRoute, state: PaintState): RecordState;
687
+ /**
688
+ * This function gives the paint list of a picture: the shapes that a renderer draws, in the order of the paint.
689
+ * The function is pure, so a test examines a picture with no browser. `drawShapes` draws the list on a canvas.
690
+ *
691
+ * The layers are, from the back:
692
+ *
693
+ * - The boxes with children, each with its labels.
694
+ * - The routes. The routes of the focus and those with a highlight are after the others.
695
+ * - The boxes with no child, each with its labels.
696
+ * - The labels of the routes, then the labels that name no record.
697
+ *
698
+ * In a layer, the records are in the order of the picture. A label has the state of the record that it names.
699
+ * The focus of the picture decreases the color of each record out of it (`FOCUS_OPACITY`).
700
+ */
701
+ export declare function paintPicture<T>(index: PictureIndex, looks: PictureLooks<T>, theme: T, state: PaintState): PaintShape[];
702
+ /**
703
+ * This function draws a paint list on a canvas, in the order of the list. `paintPicture` makes the list.
704
+ *
705
+ * The unit of the context is the CSS pixel, as a flat stage gives it: the function applies the view of the camera.
706
+ * The function keeps the state of the context: after it, the context has the transform and the styles that it had before.
707
+ */
708
+ export declare function drawShapes(context: CanvasRenderingContext2D, shapes: readonly PaintShape[], view: PictureView): void;
709
+ /** The options of `pickRecord`. */
710
+ interface PickOptions {
711
+ /** The distance from the point at which a record is below the point, in the unit of the picture. The default is 0. */
712
+ readonly slack?: number | undefined;
713
+ /** This function tells if a person can point at a record. The default permits each box and no route. */
714
+ readonly picks?: ((record: PictureRecord) => boolean) | undefined;
715
+ }
716
+ /** This function gives the distance from a point to a box, and 0 for a point in the box. A box with a `shape` is that region. */
717
+ export declare function boxDistance(box: PictureBox, point: Point): number;
718
+ /**
719
+ * This function gives the record of a picture below a point, or `undefined` for no record.
720
+ *
721
+ * - A box with no child comes first: the top box at the point, then the nearest box in the slack.
722
+ * - A route comes next: the nearest route in the slack. A route is thin, so it comes before a container.
723
+ * - A box with children comes last: the top one at the point, then the nearest one in the slack.
724
+ *
725
+ * The last record of a list of the picture is the top one. The distance to a route has an error of 0.5 units or less.
726
+ */
727
+ export declare function pickRecord(index: PictureIndex, point: Point, options?: PickOptions): PictureRecord | undefined;
158
728
  /** What a key does on a flat picture: it moves the camera to a view, or it shows a view by its name. */
159
729
  type PictureKeyAction = {
160
730
  readonly type: "move";
@@ -224,5 +794,17 @@ interface PointerUpResult {
224
794
  export declare function pointerUp(pointers: Pointers, id: number, at: Point, limit?: number): PointerUpResult;
225
795
  /** This function gives the pointers after the browser stopped a pointer, for example for a gesture of the system. It makes no click. */
226
796
  export declare function pointerCancel(pointers: Pointers, id: number): Pointers;
227
- export type { FitOptions, FrameOptions, Insets, PictureKeyAction, PictureKeyOptions, PictureMove, PictureMoveStep, PictureView, PointerMoveResult, PointerPair, PointerUpResult, Pointers, RevealOptions, ZoomLimits };
797
+ /**
798
+ * This function makes one content from a list of contents, for a flat stage that shows them together.
799
+ * An example is a layer of boxes below a layer of routes and a layer of labels.
800
+ *
801
+ * - The first content gives the bounds: the views and the limits of the camera come from it.
802
+ * - The stack draws the contents in their sequence, so the last content is on top.
803
+ * - A pick asks the last content first. The first record that a content gives is the record.
804
+ * - A record that two contents have is one record: each of them gets its highlight.
805
+ * - A content does not get the state of the canvas of an earlier content: the stack restores it.
806
+ * - The stage disposes the stack, and the stack disposes each content.
807
+ */
808
+ export declare function stackPictureContents<P, T>(contents: readonly [PictureContent<P, T>, ...PictureContent<P, T>[]]): PictureContent<P, T>;
809
+ export type { AimFrame, BoxLook, BoxMark, BoxRing, FitOptions, FocusLevel, FrameOptions, Insets, LabelLook, LayoutPictureContent, PaintOutline, PaintOutlined, PaintShape, PaintState, PaintText, PickAt, PickOptions, PictureAim, PictureContent, PictureContentOptions, PictureFocus, PictureFrame, PictureIndex, PictureKeyAction, PictureKeyOptions, PictureLooks, PictureMove, PictureMoveStep, PicturePick, PictureRecord, PictureStage, PictureStageOptions, PictureTheme, PictureView, PlainLookOptions, PointerMoveResult, PointerPair, PointerUpResult, Pointers, RecordState, RevealOptions, RouteEnd, RouteLine, RouteLook, ZoomLimits };
228
810
  //# sourceMappingURL=graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","names":[],"sources":["../src/graph/camera.ts","../src/graph/keys.ts","../src/graph/pointers.ts"],"mappings":";;;;;UAOiB;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;;;qBAIE,aAAa;;qBAGb,WAAW;;wBAGR,UAAU,WAAW,SAAQ;;wBAK7B,UAAU,MAAM,aAAa,QAAQ,QAAQ;;wBAK7C,SAAS,MAAM,aAAa,OAAO,QAAQ;;wBAK3C,aAAa,MAAM,aAAa,MAAM,OAAO;;wBAK7C,OAAO,OAAO,OAAO,IAAI,OAAO,YAAY;;wBAK5C,QAAQ,MAAM,aAAa,YAAY,aAAa;;;;;wBAQpD,SAAS,MAAM,aAAa,IAAI,OAAO,gBAAgB,SAAQ,aAA2B;;KAO9F,wBAAwB,OAAO;;;;;;;;wBAS3B,UAAU,MAAM,aAAa,QAAQ,aAAa,OAAO,aAAa,SAAQ,aAA2B;;qBAW5G;;qBAGA;;qBAGA;;;;;;;wBAQG,YAAY,gBAAgB,oBAAuB;;UAMlD;WACN;WACA;WACA;WACA;;;qBAIE;;;;;;wBAOG,SAAS;WAAiB;WAAwB;GAAkB,SAAQ,QAAQ,UAAe;;qBAYtG;;UAGI;;WAEN;;WAEA;;WAEA,SAAS;;;;;;wBAYJ,QAAQ,MAAM,MAAM,MAAM,MAAM,UAAS,aAAkB;;UAU1D,qBAAqB;;WAE3B;;;;;;;;;wBAUK,WAAW,gBAAgB,QAAQ,MAAM,MAAM,SAAS,eAAe;;;;;wBAcvE,UAAU,MAAM,aAAa,MAAM,MAAM,MAAM,MAAM;;UAMpD,sBAAsB;;WAE5B;;;;;;;;;;wBAWK,YAAY,MAAM,aAAa,gBAAgB,QAAQ,MAAM,MAAM,SAAS,gBAAgB;;;;;;;;;wBAiB5F,YAAY,MAAM,aAAa,IAAI,aAAa,eAAe;;UAW9D;WACN,MAAM;WACN,IAAI;;WAEJ;;WAEA;;;UAIM;WACN,MAAM;;WAEN;;;;;;wBAOK,cAAc,MAAM,aAAa,cAAc;;KC/PnD;WAA8B;WAAuB,IAAI;;WAA2B;WAAuB;;;UAGtG;;WAEN;;WAEA,QAAQ,SAAS;;WAEjB,SAAS;;;;;;;;;;wBAWJ,iBAAiB,aAAa,KAAK,aAAa,MAAM,MAAM,SAAS,oBAAoB;;UCpBxF;;WAEN,IAAI,oBAAoB;;WAExB,OAAO;;WAEP;;;qBAIE,aAAa;;qBAGb;;wBAGG,YAAY,UAAU,UAAU,YAAY,IAAI,QAAQ;;UAQvD;WACN,UAAU;WACV,MAAM;;;;;;;;;wBAUD,YAAY,UAAU,UAAU,YAAY,IAAI,OAAO,MAAM,aAAa,SAAQ,aAA2B;;UAa5G;WACN,UAAU;;WAEV;;;;;;;;wBASK,UAAU,UAAU,UAAU,YAAY,IAAI,OAAO,iBAAiC;;wBAStF,cAAc,UAAU,UAAU,aAAa"}
1
+ {"version":3,"file":"graph.d.ts","names":[],"sources":["../src/graph/camera.ts","../src/graph/aim.ts","../src/graph/records.ts","../src/graph/focus.ts","../src/graph/looks.ts","../src/graph/stage.ts","../src/graph/content.ts","../src/graph/paint.ts","../src/graph/draw.ts","../src/graph/hit.ts","../src/graph/keys.ts","../src/graph/pointers.ts","../src/graph/stack.ts"],"mappings":";;;;;;UAOiB;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;;;qBAIE,aAAa;;qBAGb,WAAW;;wBAGR,UAAU,WAAW,SAAQ;;wBAK7B,UAAU,MAAM,aAAa,QAAQ,QAAQ;;wBAK7C,SAAS,MAAM,aAA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