@mark1russell7/visuals 0.3.5 → 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,5 +1,5 @@
1
1
  import { n as Highlight } from "./highlight-BJ6xGp6V.js";
2
- import { Point, Rect } from "@mark1russell7/layout-contract";
2
+ import { LabelAlign, LayoutPicture, PathSegment, PictureBox, PictureLabel, PictureRoute, Point, Rect, Ring } from "@mark1russell7/layout-contract";
3
3
  /**
4
4
  * The camera of a flat picture: a zoom and the position of the origin.
5
5
  * A point `p` of the picture shows at the screen point `p * k + (x, y)`. Each screen length is in CSS pixels.
@@ -202,75 +202,228 @@ export declare function aimRects(rects: readonly Rect[], options: FrameOptions):
202
202
  * The rectangles are the bounds of the groups of the selection, the largest group first: `revealRects` selects one.
203
203
  */
204
204
  export declare function aimReveal(rects: readonly Rect[], options: RevealOptions): PictureAim;
205
- /** What a key does on a flat picture: it moves the camera to a view, or it shows a view by its name. */
206
- type PictureKeyAction = {
207
- readonly type: "move";
208
- readonly to: PictureView;
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;
209
213
  } | {
210
- readonly type: "view";
211
- readonly view: string;
214
+ readonly type: "route";
215
+ readonly id: string;
216
+ readonly route: PictureRoute;
212
217
  };
213
- /** The keys of a flat picture. */
214
- interface PictureKeyOptions {
215
- /** The name of the view of the keys `Home` and `0`. */
216
- readonly home: string;
217
- /** The name of the view of each other key, for example `{ f: "focus" }`. A letter has no case. */
218
- readonly views?: Readonly<Record<string, string>> | undefined;
219
- /** The limits of the zoom. The default is `ZOOM_LIMITS`. */
220
- readonly limits?: ZoomLimits | undefined;
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[];
221
235
  }
222
236
  /**
223
- * This function gives the action of a key on a flat picture, or `undefined` for a key with no action.
224
- *
225
- * `area` is the part of the screen that shows the picture. `freeArea` gives it.
226
- * An arrow key moves the camera by the part `KEY_PART` of the smaller side of the area.
227
- * The keys `+` and `-` zoom at the middle of the area, by the factor of one step of a key on a 3D stage.
228
- * The keys `Home` and `0` show the home view.
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.
229
240
  */
230
- export declare function pictureKeyAction(key: string, now: PictureView, area: Rect, options: PictureKeyOptions): PictureKeyAction | undefined;
231
- /** The pointers that are down on a picture: a mouse button, a pen or each finger of a hand. */
232
- interface Pointers {
233
- /** The screen position of each pointer that is down, by the id of the pointer. */
234
- readonly at: ReadonlyMap<number, Point>;
235
- /** The position where the first pointer went down. */
236
- readonly start: Point | undefined;
237
- /** This value is true after a second pointer went down. The pointers then make no click. */
238
- readonly many: boolean;
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[];
239
247
  }
240
- /** The pointers of a picture that no pointer is down on. */
241
- export declare const NO_POINTERS: Pointers;
242
- /** A finger moves more than a mouse between down and up. This is the distance of a click for a finger, in CSS pixels. */
243
- export declare const TOUCH_CLICK_DISTANCE = 10;
244
- /** This function gives the pointers after a pointer went down. The first pointer starts a possible click. */
245
- export declare function pointerDown(pointers: Pointers, id: number, at: Point): Pointers;
246
- /** The result of `pointerMove`: the pointers and the view after the move. */
247
- interface PointerMoveResult {
248
- readonly pointers: Pointers;
249
- readonly view: PictureView;
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>;
250
259
  }
251
260
  /**
252
- * This function gives the pointers and the view after a pointer moved.
261
+ * How near a record is to the focus of a picture.
253
262
  *
254
- * One pointer moves the picture, so the point of the picture below the pointer stays there.
255
- * Two pointers make a pinch: `pinchView` gives the view. Three pointers or more do not change the view.
256
- * A pointer that is not down changes nothing.
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.
257
267
  */
258
- export declare function pointerMove(pointers: Pointers, id: number, at: Point, view: PictureView, limits?: ZoomLimits): PointerMoveResult;
259
- /** The result of `pointerUp`: the pointers that stay down, and the answer if the pointer made a click. */
260
- interface PointerUpResult {
261
- readonly pointers: Pointers;
262
- /** This value is true when one pointer went down and up at almost the same position. */
263
- readonly click: boolean;
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;
264
294
  }
265
295
  /**
266
- * This function gives the pointers after a pointer went up, and tells if the pointer made a click.
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.
267
298
  *
268
- * A click is one pointer that went up not more than `limit` from its start, with no second pointer between.
269
- * The default of `limit` is `CLICK_DISTANCE`. Use `TOUCH_CLICK_DISTANCE` for a finger.
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.
270
301
  */
271
- export declare function pointerUp(pointers: Pointers, id: number, at: Point, limit?: number): PointerUpResult;
272
- /** This function gives the pointers after the browser stopped a pointer, for example for a gesture of the system. It makes no click. */
273
- export declare function pointerCancel(pointers: Pointers, id: number): Pointers;
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>;
274
427
  /** The record below the pointer of a flat picture: its name, and the value that the content gives for it. */
275
428
  interface PicturePick<P> {
276
429
  /** The name of the record. The highlights of the stage use this name. */
@@ -380,7 +533,10 @@ interface PictureStage<P, T> {
380
533
  highlight(records: readonly string[]): void;
381
534
  /** This function selects one record by its name, or no record. It does not start `onSelect`. */
382
535
  select(record: string | undefined): void;
383
- /** This function makes a new picture. Use it after a change of the content. */
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
+ */
384
540
  refresh(): void;
385
541
  /** This function removes the canvas, and disposes the content. */
386
542
  dispose(): void;
@@ -401,6 +557,243 @@ export declare const DOUBLE_CLICK_ZOOM = 2;
401
557
  * The function gives `undefined` when the browser gives no 2D context for a canvas. It does not throw.
402
558
  */
403
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;
728
+ /** What a key does on a flat picture: it moves the camera to a view, or it shows a view by its name. */
729
+ type PictureKeyAction = {
730
+ readonly type: "move";
731
+ readonly to: PictureView;
732
+ } | {
733
+ readonly type: "view";
734
+ readonly view: string;
735
+ };
736
+ /** The keys of a flat picture. */
737
+ interface PictureKeyOptions {
738
+ /** The name of the view of the keys `Home` and `0`. */
739
+ readonly home: string;
740
+ /** The name of the view of each other key, for example `{ f: "focus" }`. A letter has no case. */
741
+ readonly views?: Readonly<Record<string, string>> | undefined;
742
+ /** The limits of the zoom. The default is `ZOOM_LIMITS`. */
743
+ readonly limits?: ZoomLimits | undefined;
744
+ }
745
+ /**
746
+ * This function gives the action of a key on a flat picture, or `undefined` for a key with no action.
747
+ *
748
+ * `area` is the part of the screen that shows the picture. `freeArea` gives it.
749
+ * An arrow key moves the camera by the part `KEY_PART` of the smaller side of the area.
750
+ * The keys `+` and `-` zoom at the middle of the area, by the factor of one step of a key on a 3D stage.
751
+ * The keys `Home` and `0` show the home view.
752
+ */
753
+ export declare function pictureKeyAction(key: string, now: PictureView, area: Rect, options: PictureKeyOptions): PictureKeyAction | undefined;
754
+ /** The pointers that are down on a picture: a mouse button, a pen or each finger of a hand. */
755
+ interface Pointers {
756
+ /** The screen position of each pointer that is down, by the id of the pointer. */
757
+ readonly at: ReadonlyMap<number, Point>;
758
+ /** The position where the first pointer went down. */
759
+ readonly start: Point | undefined;
760
+ /** This value is true after a second pointer went down. The pointers then make no click. */
761
+ readonly many: boolean;
762
+ }
763
+ /** The pointers of a picture that no pointer is down on. */
764
+ export declare const NO_POINTERS: Pointers;
765
+ /** A finger moves more than a mouse between down and up. This is the distance of a click for a finger, in CSS pixels. */
766
+ export declare const TOUCH_CLICK_DISTANCE = 10;
767
+ /** This function gives the pointers after a pointer went down. The first pointer starts a possible click. */
768
+ export declare function pointerDown(pointers: Pointers, id: number, at: Point): Pointers;
769
+ /** The result of `pointerMove`: the pointers and the view after the move. */
770
+ interface PointerMoveResult {
771
+ readonly pointers: Pointers;
772
+ readonly view: PictureView;
773
+ }
774
+ /**
775
+ * This function gives the pointers and the view after a pointer moved.
776
+ *
777
+ * One pointer moves the picture, so the point of the picture below the pointer stays there.
778
+ * Two pointers make a pinch: `pinchView` gives the view. Three pointers or more do not change the view.
779
+ * A pointer that is not down changes nothing.
780
+ */
781
+ export declare function pointerMove(pointers: Pointers, id: number, at: Point, view: PictureView, limits?: ZoomLimits): PointerMoveResult;
782
+ /** The result of `pointerUp`: the pointers that stay down, and the answer if the pointer made a click. */
783
+ interface PointerUpResult {
784
+ readonly pointers: Pointers;
785
+ /** This value is true when one pointer went down and up at almost the same position. */
786
+ readonly click: boolean;
787
+ }
788
+ /**
789
+ * This function gives the pointers after a pointer went up, and tells if the pointer made a click.
790
+ *
791
+ * A click is one pointer that went up not more than `limit` from its start, with no second pointer between.
792
+ * The default of `limit` is `CLICK_DISTANCE`. Use `TOUCH_CLICK_DISTANCE` for a finger.
793
+ */
794
+ export declare function pointerUp(pointers: Pointers, id: number, at: Point, limit?: number): PointerUpResult;
795
+ /** This function gives the pointers after the browser stopped a pointer, for example for a gesture of the system. It makes no click. */
796
+ export declare function pointerCancel(pointers: Pointers, id: number): Pointers;
404
797
  /**
405
798
  * This function makes one content from a list of contents, for a flat stage that shows them together.
406
799
  * An example is a layer of boxes below a layer of routes and a layer of labels.
@@ -413,5 +806,5 @@ export declare function createPictureStage<P, T>(container: HTMLElement, options
413
806
  * - The stage disposes the stack, and the stack disposes each content.
414
807
  */
415
808
  export declare function stackPictureContents<P, T>(contents: readonly [PictureContent<P, T>, ...PictureContent<P, T>[]]): PictureContent<P, T>;
416
- export type { AimFrame, FitOptions, FrameOptions, Insets, PickAt, PictureAim, PictureContent, PictureFrame, PictureKeyAction, PictureKeyOptions, PictureMove, PictureMoveStep, PicturePick, PictureStage, PictureStageOptions, PictureView, PointerMoveResult, PointerPair, PointerUpResult, Pointers, RevealOptions, ZoomLimits };
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 };
417
810
  //# sourceMappingURL=graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","names":[],"sources":["../src/graph/camera.ts","../src/graph/aim.ts","../src/graph/keys.ts","../src/graph/pointers.ts","../src/graph/stage.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,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;;;;;;wBAsBJ,QAAQ,MAAM,MAAM,MAAM,MAAM,UAAS,aAAkB;;;;;;;wBAY3D,cAAc,QAAQ,MAAM,MAAM,MAAM,SAAQ,YAA0B,mBAAgC;;qBAM7G;;;;;;;;;wBAgBG,SAAS,MAAM,aAAa,MAAM,M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EP,QAAQ;;WAER,MAAM;;WAEN;;;UAIM;;WAEN,MAAM;;WAEN;;WAEA;;WAEA,MAAM;;WAEN;;WAEA;;;;;WAKA;;;;;;UAOM,eAAe,GAAG;;WAExB,QAAQ;;EAEjB,IAAI;;EAEJ,KAAK,IAAI,SAAS,YAAY;;;;;;EAM9B,KAAK,SAAS,0BAA0B,OAAO,cAAc,OAAO,GAAG,YAAY,mBAAmB;;EAEtG;;;UAIe,oBAAoB,GAAG;;WAE7B,SAAS,eAAe,GAAG;WAC3B,OAAO;;WAEP;;WAEA,QAAQ,SAAS,eAAe;;WAEhC;;WAEA,OAAO,SAAS;;WAEhB,SAAS;;WAET,SAAS,QAAQ;;;;;WAKjB;;WAEA,YAAY,MAAM;;WAElB,aAAa,MAAM;;WAEnB,WAAW,MAAM;;;UAIX,aAAa,GAAG;;WAEtB,QAAQ;;EAEjB,WAAW,SAAS,eAAe,GAAG;;EAEtC,SAAS,OAAO;;EAEhB,QAAQ,eAAe,YAAY;;EAEnC,UAAU,QAAQ,QAAQ;;EAE1B,QAAQ;;EAER,QAAQ;;EAER,OAAO,gBAAgB;;EAEvB,UAAU;;EAEV,OAAO;;EAEP;;EAEA;;;qBAIW;;qBAGA;;qBAGA;;;;;;;;;;wBAcG,mBAAmB,GAAG,GAAG,WAAW,aAAa,SAAS,oBAAoB,GAAG,KAAK,aAAa,GAAG;;;;;;;;;;;;wBC1JtG,qBAAqB,GAAG,GAAG,oBAAoB,eAAe,GAAG,OAAO,eAAe,GAAG,QAAQ,eAAe,GAAG"}
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;W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