You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
473 B
15 lines
473 B
6 years ago
|
import { Segment, SegmentId } from './segment'
|
||
6 years ago
|
|
||
|
export interface SegmentsSet<T extends Segment> {
|
||
|
getSegments(from?: number, to?: number): T[];
|
||
|
setSegments(segments: T[]): void;
|
||
|
addSegment(segment: T): void;
|
||
6 years ago
|
findSegments(point: number, rangeDist: number): T[];
|
||
6 years ago
|
removeInRange(from: number, to: number): T[];
|
||
6 years ago
|
remove(id: SegmentId): boolean;
|
||
|
has(id: SegmentId): boolean;
|
||
6 years ago
|
clear(): void;
|
||
6 years ago
|
updateId(fromId: SegmentId, toId: SegmentId): void;
|
||
6 years ago
|
length: number;
|
||
6 years ago
|
}
|