@reside-ic/skadi-chart 1.1.7-alpha.0 → 1.1.8
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/skadi-chart.d.ts +4 -4
- package/dist/skadi-chart.js +1932 -1915
- package/dist/skadi-chart.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/skadi-chart.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare module "types" {
|
|
|
43
43
|
padding?: number;
|
|
44
44
|
size?: number;
|
|
45
45
|
formatter?: (domainValue: Domain, index: number) => string;
|
|
46
|
-
|
|
46
|
+
enableMathJax?: boolean;
|
|
47
47
|
} & (Domain extends number ? {
|
|
48
48
|
count?: number;
|
|
49
49
|
specifier?: string;
|
|
@@ -148,7 +148,6 @@ declare module "layers/AxesLayer" {
|
|
|
148
148
|
constructor(labels: XYLabel, labelPositions: XY<number>);
|
|
149
149
|
private drawAxis;
|
|
150
150
|
draw: (layerArgs: LayerArgs) => void;
|
|
151
|
-
private rotateTickLabels;
|
|
152
151
|
private drawCategoricalAxis;
|
|
153
152
|
private drawNumericalAxis;
|
|
154
153
|
private drawLinePerpendicularToAxis;
|
|
@@ -277,16 +276,17 @@ declare module "Chart" {
|
|
|
277
276
|
import { LifecycleHooks, OptionalLayer } from "layers/Layer";
|
|
278
277
|
export type ChartOptions = {
|
|
279
278
|
logScale: XY<boolean>;
|
|
279
|
+
categoricalScalePaddingInner: XY<number>;
|
|
280
280
|
};
|
|
281
281
|
type PartialChartOptions = {
|
|
282
282
|
logScale?: Partial<XY<boolean>>;
|
|
283
283
|
animationDuration?: number;
|
|
284
|
+
categoricalScalePaddingInner?: Partial<XY<number>>;
|
|
284
285
|
tickConfig?: {
|
|
285
286
|
numerical?: Partial<XY<Partial<TickConfig<number>>>>;
|
|
286
287
|
categorical?: Partial<XY<Partial<TickConfig<string>>>>;
|
|
287
288
|
};
|
|
288
289
|
};
|
|
289
|
-
type CategoricalScales = Partial<XY<string[]>>;
|
|
290
290
|
export class Chart<Metadata = any> {
|
|
291
291
|
id: string;
|
|
292
292
|
optionalLayers: AllOptionalLayers[];
|
|
@@ -324,7 +324,7 @@ declare module "Chart" {
|
|
|
324
324
|
private processScales;
|
|
325
325
|
private appendClipPath;
|
|
326
326
|
private draw;
|
|
327
|
-
appendTo: (baseElement: HTMLDivElement, maxExtents?: PartialScales, initialExtents?: PartialScales,
|
|
327
|
+
appendTo: (baseElement: HTMLDivElement, maxExtents?: PartialScales, initialExtents?: PartialScales, categoricalDomains?: Partial<XY<string[]>>, margins?: Partial<Bounds["margin"]>, clipPathBoundsOptions?: ClipPathBounds) => this;
|
|
328
328
|
private createCategoricalScale;
|
|
329
329
|
}
|
|
330
330
|
}
|