@evercam/ui 0.0.63-preview-fix-toggle-switch-issue-feee1bf69 → 0.0.63-preview-timeline-fix-start-end-dates-9d2d4d014

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,7 +46,3 @@ You can preview the components and their stories by running the [Histoire](https
46
46
  `yarn story:dev`
47
47
 
48
48
 
49
-
50
-
51
-
52
-
@@ -13,6 +13,8 @@ type ComputedEventRect = {
13
13
  textContent: string;
14
14
  groupedEvents?: TimelineEvent[];
15
15
  };
16
+ type EventData = TimelineEvent | ComputedEventRect;
17
+ type EventPatchFunction = (event: EventData) => EventData;
16
18
  declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
17
19
  classNames: {
18
20
  xAxis: string;
@@ -73,16 +75,17 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
73
75
  characterWidth: number;
74
76
  textPadding: number;
75
77
  }, {
76
- onMouseOver(e: MouseEvent, event: TimelineEvent | ComputedEventRect, type: string): void;
78
+ onMouseOver(e: MouseEvent, event: EventData, type: string): void;
77
79
  onMouseLeave(e: MouseEvent): void;
78
- onGroupedEventsMouseOver(e: MouseEvent, events: (TimelineEvent | ComputedEventRect)[], type: string): void;
80
+ onGroupedEventsMouseOver(e: MouseEvent, events: EventData[], type: string): void;
79
81
  getEventText(e: TimelineEvent, textPadding: number, characterWidth: number): string;
80
82
  getEventRectWidth(d: TimelineEvent, timeScale: d3.ScaleTime<any, any, unknown>, rectMinWidth: number): number;
81
83
  getEventRectX(d: TimelineEvent, timeScale: d3.ScaleTime<any, any, unknown>): any;
82
84
  tzStringToDate(timestamp: Timestamp): Date;
83
85
  dateToTzString(date: Date): string;
84
- convertEventTzStringToDate(event: TimelineEvent | ComputedEventRect): TimelineEvent;
85
- convertEventDateToTzString(event: TimelineEvent | ComputedEventRect): TimelineEvent;
86
+ convertEventTzStringToDate(event: EventData): TimelineEvent;
87
+ convertEventDateToTzString(event: EventData): TimelineEvent;
88
+ patchTimestampField(event: EventData, patchFn: EventPatchFunction): EventData;
86
89
  getFillColor(baseColor: string, k?: number, dark?: boolean): string;
87
90
  }, {
88
91
  rectStrokeWidth: number;