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