realchart 0.9.23 → 0.9.24
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/index.d.ts +28 -7
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -114,6 +114,23 @@ interface IRect {
|
|
|
114
114
|
height: number;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
declare class Sides {
|
|
118
|
+
top: number;
|
|
119
|
+
bottom: number;
|
|
120
|
+
left: number;
|
|
121
|
+
right: number;
|
|
122
|
+
static readonly Empty: Readonly<Sides>;
|
|
123
|
+
static Temp: Sides;
|
|
124
|
+
static create(top: number, bottom?: number, left?: number, right?: number): Sides;
|
|
125
|
+
static createFrom(value: string): Sides;
|
|
126
|
+
constructor(top?: number, bottom?: number, left?: number, right?: number);
|
|
127
|
+
clone(): Sides;
|
|
128
|
+
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
129
|
+
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
130
|
+
shrink(r: IRect): IRect;
|
|
131
|
+
toString(): string;
|
|
132
|
+
}
|
|
133
|
+
|
|
117
134
|
interface IPointerHandler {
|
|
118
135
|
handleDown(ev: PointerEvent): void;
|
|
119
136
|
handleUp(ev: PointerEvent): void;
|
|
@@ -339,6 +356,7 @@ declare class ClipElement extends RcElement {
|
|
|
339
356
|
constructor(doc: Document, x?: number, y?: number, width?: number, height?: number, rx?: number, ry?: number);
|
|
340
357
|
get id(): string;
|
|
341
358
|
setBounds(x: number, y: number, w: number, h: number): RcElement;
|
|
359
|
+
resize(width: number, height: number, attr?: boolean): RcElement;
|
|
342
360
|
get x(): number;
|
|
343
361
|
set x(value: number);
|
|
344
362
|
get y(): number;
|
|
@@ -426,6 +444,7 @@ declare class SvgRichText {
|
|
|
426
444
|
setFormat(value: string): void;
|
|
427
445
|
lines(): SvgLine[];
|
|
428
446
|
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain: RichTextParamCallback): void;
|
|
447
|
+
layout(view: TextElement, align: Align, width: number, height: number, padding: Sides): void;
|
|
429
448
|
$_parse(fmt: string): void;
|
|
430
449
|
}
|
|
431
450
|
|
|
@@ -577,11 +596,11 @@ declare class Body extends ChartItem {
|
|
|
577
596
|
declare enum Shape {
|
|
578
597
|
CIRCLE = "circle",
|
|
579
598
|
DIAMOND = "diamond",
|
|
580
|
-
RECTANGLE = "rectangle",
|
|
581
599
|
SQUARE = "square",
|
|
582
600
|
TRIANGLE = "triangle",
|
|
601
|
+
STAR = "star",
|
|
583
602
|
ITRIANGLE = "itriangle",
|
|
584
|
-
|
|
603
|
+
RECTANGLE = "rectangle"
|
|
585
604
|
}
|
|
586
605
|
|
|
587
606
|
declare enum LineType {
|
|
@@ -804,7 +823,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
804
823
|
pointColors: boolean | string[];
|
|
805
824
|
viewRanges: IValueRange[] | IValueRanges;
|
|
806
825
|
viewRangeValue: 'x' | 'y' | 'z';
|
|
807
|
-
|
|
826
|
+
noClip: boolean;
|
|
808
827
|
visibleInLegend: boolean;
|
|
809
828
|
visibleInNavigator: boolean;
|
|
810
829
|
pointStyleCallback: PointStyleCallback;
|
|
@@ -1042,7 +1061,8 @@ declare class Title extends ChartItem {
|
|
|
1042
1061
|
alignBase: AlignBase;
|
|
1043
1062
|
align: Align;
|
|
1044
1063
|
backgroundStyle: SVGStyleOrClass;
|
|
1045
|
-
|
|
1064
|
+
gap: number;
|
|
1065
|
+
textAlign: Align;
|
|
1046
1066
|
isVisible(): boolean;
|
|
1047
1067
|
protected _doLoadSimple(source: any): boolean;
|
|
1048
1068
|
}
|
|
@@ -1056,7 +1076,7 @@ declare class Subtitle extends Title {
|
|
|
1056
1076
|
position: SubtitlePosition;
|
|
1057
1077
|
verticalAlign: VerticalAlign;
|
|
1058
1078
|
text: string;
|
|
1059
|
-
|
|
1079
|
+
titleGap: number;
|
|
1060
1080
|
}
|
|
1061
1081
|
|
|
1062
1082
|
declare abstract class GaugeBase extends Widget {
|
|
@@ -1526,6 +1546,8 @@ declare class AxisGuideLabel extends FormattableText {
|
|
|
1526
1546
|
constructor(chart: IChart);
|
|
1527
1547
|
align: Align;
|
|
1528
1548
|
verticalAlign: VerticalAlign;
|
|
1549
|
+
offsetX: number;
|
|
1550
|
+
offsetY: number;
|
|
1529
1551
|
}
|
|
1530
1552
|
declare abstract class AxisGuide extends AxisItem {
|
|
1531
1553
|
constructor(axis: Axis);
|
|
@@ -1538,7 +1560,7 @@ declare abstract class AxisGuide extends AxisItem {
|
|
|
1538
1560
|
}
|
|
1539
1561
|
declare abstract class AxisTick extends AxisItem {
|
|
1540
1562
|
length: number;
|
|
1541
|
-
|
|
1563
|
+
gap: number;
|
|
1542
1564
|
integral: boolean;
|
|
1543
1565
|
showFirst: boolean;
|
|
1544
1566
|
showLast: boolean;
|
|
@@ -1574,7 +1596,6 @@ declare abstract class AxisLabel extends FormattableText {
|
|
|
1574
1596
|
protected _getParamValue(tick: IAxisTick, param: string): any;
|
|
1575
1597
|
getLabelText(tick: IAxisTick): string;
|
|
1576
1598
|
getLabelStyle(tick: IAxisTick): any;
|
|
1577
|
-
getRotation(): number;
|
|
1578
1599
|
}
|
|
1579
1600
|
interface IAxisTick {
|
|
1580
1601
|
index: number;
|