/** The crowds outside there are: a share of the venues' seats, in percent. */ export declare const OUTSIDE_LEVELS: readonly [0, 25, 50, 75, 100]; export type OutsideLevel = (typeof OUTSIDE_LEVELS)[number]; /** The people of one district, in the plan's frame: where each stands (feet, as the plan's drawing has them), which venue's crowd it is, and how many the venues' seats asked for and the walkable ground could hold. */ export interface OutsideCrowd { /** The mask the crowd stands on. */ mask: string; venues: { key: string; seats: number; placed: number; }[]; /** The people, in order: venues interleaved, so that a prefix holds each venue's share. */ x: Float32Array; y: Float32Array; /** The index in `venues` of each person's venue. */ venue: Uint8Array; /** How many people the list holds. */ count: number; } /** How many people of the list stand outside at a level: the list is ordered, so these are its first. */ export declare const outsideCount: (crowd: Pick, level: OutsideLevel) => number; /** A person's width in metres. */ export declare const PERSON_METRES = 0.55; /** Where the crowd's pixels lie: a buffer `width` by `height`, with `(x0, y0)` the plan's feet at its top left corner and `scale` its pixels to a foot. */ export interface OutsideFrame { width: number; height: number; x0: number; y0: number; scale: number; } /** A person is drawn as a disc where they are wider than this many pixels, and as one pixel of density where they are not. */ export declare const DOTS_FROM = 1.2; /** What painting a level cost and drew: for the docs and the tests to quote. */ export interface OutsideStats { people: number; /** `dots` when a person is wider than a pixel and a fifth, else `density`. */ mode: "dots" | "density"; /** Pixels stamped, counting each time a person lands on one. */ stamps: number; } /** * The people of a crowd at a level (its first `outsideCount`) as RGBA bytes in a frame, in one colour with the alpha that says how many stand on each pixel. `ink` is `[red, green, blue]`. * It gives the bytes and what it drew. */ export declare function rasterOutside(crowd: OutsideCrowd, level: OutsideLevel, frame: OutsideFrame, ink: readonly [number, number, number]): { rgba: Uint8ClampedArray; stats: OutsideStats; }; /** The frame of a buffer that covers a view box of the plan (feet) in `width` pixels, as high as the box's shape makes it. */ export declare function frameOf(view: { x: number; y: number; w: number; h: number; }, width: number): OutsideFrame;