UNPKG

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.

19 lines (18 loc) 727 B
import type { OfficeFloor } from './OfficeFloor'; import { Point } from './Point'; export declare class Seat extends Point { id: number; floor: OfficeFloor; constructor(floor: OfficeFloor, id: number, x: number, y: number); equals(other: Seat): boolean; equalsOneOf(others: Seat[]): boolean; distanceToPoint(point: Point): number; findNearestAvailable(): Seat; nearestDistanceTo(seats: Seat[]): number; allSeatsWithinRadius(radius: number): Seat[]; getSeatsWithinRadiusButFurtherAwayFrom(otherSeats: Seat[], currentRadius: number): Seat | null; distanceTo(seat: Seat): number; teamLabel(): string; personLabel(): string; isInRange(ranges: [number, number][]): boolean; }