tickup 1.0.33 → 1.0.34
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/dist/components/Canvas/ChartCanvas.d.ts +2 -0
- package/dist/components/Canvas/TickUpStage.d.ts +2 -0
- package/dist/hooks/useChartData.d.ts +3 -1
- package/dist/tickup-full.cjs.js +6 -4
- package/dist/tickup-full.cjs.js.map +1 -1
- package/dist/tickup-full.es.js +8 -6
- package/dist/tickup-full.es.js.map +1 -1
- package/dist/tickup.cjs.js +9 -7
- package/dist/tickup.cjs.js.map +1 -1
- package/dist/tickup.es.js +5 -3
- package/dist/tickup.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ interface ChartCanvasProps {
|
|
|
22
22
|
windowSpread: WindowSpreadOptions;
|
|
23
23
|
/** Draw bundled TickUp marks inside plot / histogram (no DOM footer). */
|
|
24
24
|
showBrandWatermark?: boolean;
|
|
25
|
+
/** Prime-licensed sessions bypass source-level history limits. */
|
|
26
|
+
isPrimeLicensed?: boolean;
|
|
25
27
|
/** Matches chart `base.theme` for choosing light / dark / grey mark artwork. */
|
|
26
28
|
brandTheme?: ChartTheme;
|
|
27
29
|
}
|
|
@@ -44,6 +44,8 @@ export interface TickUpStageProps {
|
|
|
44
44
|
/** Sync with app chart theme for fullscreen modals */
|
|
45
45
|
themeVariant?: ChartTheme;
|
|
46
46
|
showBrandWatermark?: boolean;
|
|
47
|
+
/** Prime-licensed sessions bypass core throttles/limits. */
|
|
48
|
+
isPrimeLicensed?: boolean;
|
|
47
49
|
/** Search/validation flow for interval changes (e.g. swap data feed). */
|
|
48
50
|
onIntervalSearch?: (tf: string) => void | boolean | Promise<void | boolean>;
|
|
49
51
|
}
|
|
@@ -5,7 +5,9 @@ type VisibleRangeInput = TimeRange & Partial<{
|
|
|
5
5
|
startIndex: number;
|
|
6
6
|
endIndex: number;
|
|
7
7
|
}>;
|
|
8
|
-
export declare
|
|
8
|
+
export declare const MAX_CORE_CANDLES = 2000;
|
|
9
|
+
export declare const CORE_TICK_THROTTLE_MS = 1000;
|
|
10
|
+
export declare function useChartData(intervalsArray: Interval[], isPrimeLicensed: boolean, visibleRange: VisibleRangeInput, currentPoint: {
|
|
9
11
|
x: number;
|
|
10
12
|
y: number;
|
|
11
13
|
} | null, canvasWidth: number, canvasHeight: number): {
|