-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make multiple bands with different event sets possible
- Loading branch information
Showing
43 changed files
with
4,468 additions
and
3,371 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import { Ratio, Milliseconds } from "../constants"; | ||
import { RawEv3nt } from "./event"; | ||
import { Ratio } from "../constants"; | ||
import DomainConfig from "./domain.config"; | ||
export declare class AggregateEntry { | ||
count: number; | ||
year: number; | ||
} | ||
export default class Config { | ||
aggregate?: AggregateEntry[]; | ||
center?: Ratio; | ||
domains: DomainConfig[]; | ||
events: RawEv3nt[]; | ||
from: Milliseconds; | ||
rootElement: HTMLElement; | ||
rowCount: number; | ||
to: Milliseconds; | ||
domains?: DomainConfig[]; | ||
rootElement?: HTMLElement; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { Ratio, ComponentType } from "../constants"; | ||
import { Ratio, Pixels } from "../constants"; | ||
import { OrderedEvents } from "../utils/events.worker"; | ||
import { RawEv3nt } from "./event"; | ||
export default class DomainConfig { | ||
components: Set<ComponentType>; | ||
hasEvents?: boolean; | ||
hasIndicatorFor?: number; | ||
events?: RawEv3nt[]; | ||
targets?: number[]; | ||
heightRatio?: Ratio; | ||
hasRulers?: boolean; | ||
hasSparkline?: boolean; | ||
label?: string; | ||
orderedEvents?: OrderedEvents; | ||
rulers?: boolean; | ||
topOffsetRatio?: Ratio; | ||
type?: 'events' | 'minimap'; | ||
visibleRatio?: Ratio; | ||
constructor(props: any); | ||
constructor(config: DomainConfig, viewportWidth: Pixels); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import { Milliseconds, Grid, Pixels, Ratio } from "../constants"; | ||
import { RawEv3nt } from "../models/event"; | ||
export declare type OrderedEvents = [RawEv3nt[], Milliseconds, Milliseconds, Grid, number]; | ||
export declare class OrderedEvents { | ||
events: RawEv3nt[]; | ||
from: Milliseconds; | ||
to: Milliseconds; | ||
grid: Grid; | ||
rowCount: number; | ||
} | ||
export declare function orderEvents(events: RawEv3nt[], viewportWidth: Pixels, visibleRatio: Ratio): OrderedEvents; | ||
export declare function eventsWorker(e: { | ||
data: { | ||
events: RawEv3nt[]; | ||
orderEventsURL: string; | ||
}; | ||
}): void; | ||
declare const _default: (events: RawEv3nt[], done: (response: [RawEv3nt[], number, number, [number, number][][], number]) => void) => void; | ||
declare const _default: (events: RawEv3nt[], done: (response: OrderedEvents) => void) => void; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import DomainEvent from "../../../../../models/event"; | ||
export default class PointInTime { | ||
import Domain from "../../../../../models/domain"; | ||
export default class Interval { | ||
private domain; | ||
private event; | ||
private segmentOffset; | ||
constructor(event: DomainEvent, segmentOffset: number); | ||
constructor(domain: Domain, event: DomainEvent, segmentOffset: number); | ||
render(): any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import DomainEvent from "../../../../../models/event"; | ||
import Domain from "../../../../../models/domain"; | ||
export default class PointInTime { | ||
private domain; | ||
private event; | ||
private segmentOffset; | ||
constructor(event: DomainEvent, segmentOffset: number); | ||
constructor(domain: Domain, event: DomainEvent, segmentOffset: number); | ||
render(): any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.