@timelinekit/core 1.0.6 → 1.0.7
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.
|
@@ -3,6 +3,7 @@ import { BehaviorSubject } from "rxjs";
|
|
|
3
3
|
import { Cursor } from "./common";
|
|
4
4
|
import { ChartTimeline } from "./chart-time-axis";
|
|
5
5
|
import { BaseTheme } from "./base-theme";
|
|
6
|
+
import type { ProductScope } from "../licensing/features";
|
|
6
7
|
/**
|
|
7
8
|
* Minimal context interface that both GanttChartContext and ResourceSchedulerContext satisfy.
|
|
8
9
|
*
|
|
@@ -53,7 +54,7 @@ export declare abstract class BaseChart<TContext extends BaseChartContext> {
|
|
|
53
54
|
/** The full-typed context, accessible to subclasses. */
|
|
54
55
|
protected get ctx(): TContext;
|
|
55
56
|
protected get canvas(): HTMLCanvasElement;
|
|
56
|
-
constructor(ctx: TContext, chartElement: HTMLElement);
|
|
57
|
+
constructor(ctx: TContext, chartElement: HTMLElement, componentScope: ProductScope);
|
|
57
58
|
/**
|
|
58
59
|
* Must be called from subclass constructors after super().
|
|
59
60
|
* Separated from the constructor because ES private fields (#field) of
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseExportDimensions, ExportRendererBase } from "./export-utils";
|
|
2
|
+
import type { ProductScope } from "../licensing/features";
|
|
2
3
|
export declare class BaseImageExporter<TDims extends BaseExportDimensions> {
|
|
3
4
|
#private;
|
|
4
|
-
constructor(renderer: ExportRendererBase<TDims
|
|
5
|
+
constructor(renderer: ExportRendererBase<TDims>, componentScope: ProductScope);
|
|
5
6
|
exportToImage(): Promise<Blob>;
|
|
6
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseExportDimensions, ExportRendererBase, BasePdfExportOptions } from "./export-utils";
|
|
2
|
+
import type { ProductScope } from "../licensing/features";
|
|
2
3
|
export declare abstract class BasePdfExporter<TDims extends BaseExportDimensions> {
|
|
3
4
|
#private;
|
|
4
|
-
constructor(renderer: ExportRendererBase<TDims
|
|
5
|
+
constructor(renderer: ExportRendererBase<TDims>, componentScope: ProductScope);
|
|
5
6
|
protected get renderer(): ExportRendererBase<TDims>;
|
|
6
7
|
protected abstract computeVerticalPageBreaks(dims: TDims, contentHeightPx: number, headerHeight: number): {
|
|
7
8
|
srcY: number;
|