@grapecity/wijmo.chart 5.20241.9 → 5.20242.21

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20242.21
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -607,6 +607,7 @@ export declare class _SvgRenderEngine implements IRenderEngine {
607
607
  private _isRtl;
608
608
  private _precision;
609
609
  private _options;
610
+ _htmlText: boolean;
610
611
  constructor(element?: HTMLElement);
611
612
  attach(el: HTMLElement): void;
612
613
  detach(): void;
@@ -635,8 +636,15 @@ export declare class _SvgRenderEngine implements IRenderEngine {
635
636
  drawPieSegment(cx: number, cy: number, r: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): SVGElement;
636
637
  drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): SVGElement;
637
638
  drawString(s: string, pt: Point, className?: string, style?: any): SVGElement;
639
+ _isHtmlString(s: string): boolean;
640
+ _drawString(s: string, pt: Point, className?: string, style?: any): SVGElement;
641
+ _drawStringHtml(s: string, pt: Point, className?: string, style?: any): SVGElement;
638
642
  drawStringRotated(s: string, pt: Point, center: Point, angle: number, className?: string, style?: any): SVGElement;
643
+ _drawStringRotated(s: string, pt: Point, center: Point, angle: number, className?: string, style?: any): SVGElement;
644
+ _drawStringRotatedHtml(s: string, pt: Point, center: Point, angle: number, className?: string, style?: any): SVGElement;
639
645
  measureString(s: string, className?: string, groupName?: string, style?: any): Size;
646
+ _measureString(s: string, className?: string, groupName?: string, style?: any): Size;
647
+ _measureStringHtml(s: string, className?: string, groupName?: string, style?: any): Size;
640
648
  startGroup(className?: string, clipPath?: string, createTransform?: boolean): SVGElement;
641
649
  endGroup(): void;
642
650
  drawImage(imageHref: string, x: number, y: number, w: number, h: number): SVGElement;
@@ -666,6 +674,7 @@ export declare class SvgRenderEngine extends _SvgRenderEngine {
666
674
  export declare class Legend {
667
675
  _chart: FlexChartBase;
668
676
  _position: Position;
677
+ _reverse: boolean;
669
678
  private _title;
670
679
  private _titleAlign;
671
680
  private _titlePadding;
@@ -686,6 +695,14 @@ export declare class Legend {
686
695
  * appears in relation to the plot area.
687
696
  */
688
697
  position: Position;
698
+ /**
699
+ * Gets or sets a value that determines whether the legend would be shown in reverse order or not
700
+ * The value should be 'true' or 'false' or undefined. Default value is undefined.
701
+ * If true, legends wwould be shown in reverse order
702
+ * If false, legends would be shown in non-reverse order
703
+ * If undefined, it would be decided automatically by the chart.
704
+ */
705
+ reverse: boolean;
689
706
  /**
690
707
  * Gets or sets a value that determines the title of the legend.
691
708
  */
@@ -812,6 +829,7 @@ export declare enum SelectionMode {
812
829
  }
813
830
  /**
814
831
  * Specifies the position of an axis or legend on the chart.
832
+ * TopLeft, TopRight, BottomLeft, BottomRight, LeftTop, LeftBottom, RightTop and RightBottom are valid only for Legend Position
815
833
  */
816
834
  export declare enum Position {
817
835
  /** The item is not visible. */
@@ -825,7 +843,23 @@ export declare enum Position {
825
843
  /** The item appears below the chart. */
826
844
  Bottom = 4,
827
845
  /** The item is positioned automatically. */
828
- Auto = 5
846
+ Auto = 5,
847
+ /** The Item appears on the top left corner of the chart */
848
+ TopLeft = 6,
849
+ /** The Item appears on the top right corner of the chart */
850
+ TopRight = 7,
851
+ /** The Item appears on the bottom left corner of the chart */
852
+ BottomLeft = 8,
853
+ /** The Item appears on the bottom right corner of the chart */
854
+ BottomRight = 9,
855
+ /** The Item appears on the left top corner of the chart */
856
+ LeftTop = 10,
857
+ /** The Item appears on the left bottom corner of the chart */
858
+ LeftBottom = 11,
859
+ /** The Item appears on the right top corner of the chart */
860
+ RightTop = 12,
861
+ /** The Item appears on the rightbottom corner of the chart */
862
+ RightBottom = 13
829
863
  }
830
864
  /**
831
865
  * Specifies the element orientation.
@@ -1004,6 +1038,21 @@ export declare class FlexChartBase<T = any> extends Control implements _IPalette
1004
1038
  * {@sample: Chart/LineArea/CustomLineSegments/purejs Example}
1005
1039
  */
1006
1040
  itemFormatter: Function;
1041
+ /**
1042
+ * Gets or sets various chart options.
1043
+ *
1044
+ * The following options are supported:
1045
+ *
1046
+ * <b>htmlText</b>: If true, it allows to use HTML tags in chart text elements like header, footer
1047
+ * legend, axis and data labels. The default value is false.
1048
+ *
1049
+ * <pre>chart.header: 'Country <b>GDP</b>';
1050
+ * chart.options = {
1051
+ * htmlText: true
1052
+ * }</pre>
1053
+ *
1054
+ */
1055
+ options: any;
1007
1056
  /**
1008
1057
  * Occurs before the chart starts rendering data.
1009
1058
  */
@@ -1161,6 +1210,7 @@ export declare class FlexChartBase<T = any> extends Control implements _IPalette
1161
1210
  _getHostComputedStyle(): CSSStyleDeclaration;
1162
1211
  _find(elem: SVGElement, names: string[]): any[];
1163
1212
  _getLegendSize(sz: number, lsz: number): number;
1213
+ _isHtmlText(): boolean;
1164
1214
  static _contains(rect: Rect, pt: Point): boolean;
1165
1215
  static _intersects(rect1: Rect, rect2: Rect): boolean;
1166
1216
  static _epoch: number;
@@ -1632,6 +1682,14 @@ export declare class FlexChart extends FlexChartCore {
1632
1682
  *
1633
1683
  * The following options are supported:
1634
1684
  *
1685
+ * <b>htmlText</b>: If true, it allows to use HTML tags in chart text elements like header, footer
1686
+ * legend, axis and data labels. The default value is false.
1687
+ *
1688
+ * <pre>chart.header: 'Country <b>GDP</b>';
1689
+ * chart.options = {
1690
+ * htmlText: true
1691
+ * }</pre>
1692
+ *
1635
1693
  * <b>bubble.maxSize</b>: Specifies the maximum size
1636
1694
  * of symbols in the Bubble chart. The default value is 30 pixels.
1637
1695
  *
@@ -2017,6 +2075,9 @@ export declare class Axis implements _IAxis {
2017
2075
  reversed: boolean;
2018
2076
  /**
2019
2077
  * Gets or sets the position of the axis with respect to the plot area.
2078
+ * TopLeft, TopRight, BottomLeft, BottomRight, LeftTop, LeftBottom, RightTop and RightBottom are not valid for Axis Position. If set it would be changed to default Position of respective axis.
2079
+ * When Position set to X-Axis, None/Top/Bottom would be applicable and if other values are set, it would be change to X-Axis default Position value.
2080
+ * When Position set to Y-Axis, None/Left/Right would be applicable and if other values are set, it would be changed to Y-Axis default Position value.
2020
2081
  */
2021
2082
  position: Position;
2022
2083
  /**