officekit
Version:
A toolkit to represent and visualize office spaces. It also provides functionality to simulate usage of offices, and calculate a score given a fitness function. It also have functionatlity for automatic allocation of offices using a genetic algorithm.
17 lines (16 loc) • 696 B
TypeScript
import type { Seat } from '$lib/office/Seat';
import * as d3 from 'd3';
import type { VizFloor } from '../VizFloor';
import { BasicSeatViz } from './BasicSeatViz';
import type { OfficeFloor } from '$lib/office/OfficeFloor';
import { SeatMarker } from './markers/SeatMarker';
export declare class SelectedSeatViz extends BasicSeatViz {
private tooltipInstance;
selected: Seat | null;
colorScaleTeam: d3.ScaleOrdinal<string, string>;
constructor();
select(seat: Seat): void;
seatColor(seat: SeatMarker): "#99ccff" | "#eee" | "#5599cc";
createSeatMarkers(viz: VizFloor, floor: OfficeFloor): SeatMarker[];
render(viz: VizFloor, element: any, radius?: number): void;
}