dhx-chart 9.1.0 → 9.1.2
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/codebase/chart.min.js +3 -3
- package/codebase/chart.min.js.map +1 -1
- package/codebase/types/ts-chart/sources/series/Bar.d.ts +1 -1
- package/codebase/types/ts-chart/sources/series/Line.d.ts +1 -1
- package/codebase/types/ts-chart/sources/series/ScaleSeria.d.ts +1 -0
- package/codebase/types/ts-chart/sources/series/Spline.d.ts +1 -1
- package/codebase/types/ts-common/core.d.ts +5 -1
- package/codebase/types/ts-common/dom.d.ts +1 -0
- package/codebase/types/ts-common/html.d.ts +4 -0
- package/codebase/types/ts-data/sources/helpers.d.ts +2 -1
- package/codebase/types/ts-data/sources/treecollection.d.ts +5 -1
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +6 -2
- package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
- package/codebase/types/ts-grid/sources/ui/editors/ComboboxEditor.d.ts +1 -0
- package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +1 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +9 -0
|
@@ -16,7 +16,7 @@ export default class Bar extends ScaleSeria {
|
|
|
16
16
|
class: string;
|
|
17
17
|
transform: string;
|
|
18
18
|
};
|
|
19
|
-
protected _getForm(points: PointData[],
|
|
19
|
+
protected _getForm(points: PointData[], _width: number, height: number, prev: PointData[]): object;
|
|
20
20
|
protected _getText(item: any): any;
|
|
21
21
|
protected _setDefaults(config: ISeriaConfig): void;
|
|
22
22
|
}
|
|
@@ -2,6 +2,6 @@ import { ISeriaConfig, PointData, SvgElement } from "../types";
|
|
|
2
2
|
import ScaleSeria from "./ScaleSeria";
|
|
3
3
|
export default class Line extends ScaleSeria {
|
|
4
4
|
paint(width: number, height: number): SvgElement;
|
|
5
|
-
protected _getForm(points: PointData[], config: any,
|
|
5
|
+
protected _getForm(points: PointData[], config: any, width: number, height: number): object;
|
|
6
6
|
protected _setDefaults(config: ISeriaConfig): void;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PointData } from "../types";
|
|
2
2
|
import Line from "./Line";
|
|
3
3
|
export default class Spline extends Line {
|
|
4
|
-
protected _getForm(points: PointData[], config: any,
|
|
4
|
+
protected _getForm(points: PointData[], config: any, width: number, height: number): object;
|
|
5
5
|
}
|
|
@@ -32,5 +32,9 @@ export interface IContainerConfig {
|
|
|
32
32
|
export declare const getStringWidth: (value: string, config?: IContainerConfig) => number;
|
|
33
33
|
export declare const rgbToHex: (color: string) => string;
|
|
34
34
|
export declare function getCloneObject(obj: any): any;
|
|
35
|
-
export declare function getTextLines(ctx
|
|
35
|
+
export declare function getTextLines({ ctx, text, maxWidth }: {
|
|
36
|
+
ctx: any;
|
|
37
|
+
text: any;
|
|
38
|
+
maxWidth: any;
|
|
39
|
+
}): string[];
|
|
36
40
|
export {};
|
|
@@ -21,3 +21,4 @@ export declare function resizer(handler: any): any;
|
|
|
21
21
|
export declare function resizeHandler(container: any, handler: any): any;
|
|
22
22
|
export declare function awaitRedraw(): Promise<void>;
|
|
23
23
|
export declare function setTheme(theme: TTheme, container: string | HTMLElement): void;
|
|
24
|
+
export declare function getViewHeight(view: VNode, width: number): number;
|
|
@@ -67,4 +67,8 @@ export declare function getLabelStyle(config: any): false | {
|
|
|
67
67
|
export declare function getPageInlineCss(): string;
|
|
68
68
|
export declare function getPageLinksCss(exportStyles?: string[]): string;
|
|
69
69
|
export declare function getElementFromPoint(e: MouseEvent | TouchEvent): Element | null;
|
|
70
|
+
export declare function getNodeOffset(node1: HTMLElement, node2: HTMLElement): {
|
|
71
|
+
left: number;
|
|
72
|
+
top: number;
|
|
73
|
+
};
|
|
70
74
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAnyObj } from "../../ts-common/types";
|
|
1
|
+
import { IAnyObj, Id } from "../../ts-common/types";
|
|
2
2
|
import { DataProxy } from "./dataproxy";
|
|
3
3
|
import { IFilterCallback, IFilterMode, IDataCollection, IDataItem, ITreeCollection, DataDriver, IDataDriver, IFilter } from "./types";
|
|
4
4
|
export declare function isEqualObj(a: any, b: any): boolean;
|
|
@@ -13,3 +13,4 @@ export declare function copyWithoutInner(obj: IAnyObj, forbidden?: IAnyObj): IAn
|
|
|
13
13
|
export declare function isTreeCollection(obj: IDataCollection<any> | ITreeCollection<any> | IDataItem[]): obj is ITreeCollection<any>;
|
|
14
14
|
export declare function hasJsonOrArrayStructure(str: any): boolean;
|
|
15
15
|
export declare function isOnlyPermanentFilters(filters: IFilter): boolean;
|
|
16
|
+
export declare function throwMoveWarning(id: Id, exists?: boolean): null;
|
|
@@ -2,12 +2,15 @@ import { IEventSystem } from "../../ts-common/events";
|
|
|
2
2
|
import { DataCollection } from "./datacollection";
|
|
3
3
|
import { DataCallback, DataEvents, IDataCollection, IDataItem, ITreeCollection, IFilterCallback, IFilterMode, IFilterComplexMode, ITreeFilterConfig, DataDriver, ISortMode, IDataDriver, IUpdateObject, ISortConfig } from "./types";
|
|
4
4
|
import { Id } from "../../ts-common/types";
|
|
5
|
+
export declare function addToOrder(store: any, obj: object, parent: Id, index: number): void;
|
|
5
6
|
export declare class TreeCollection<T extends IDataItem = IDataItem> extends DataCollection<T> implements ITreeCollection<T> {
|
|
6
7
|
protected _childs: {
|
|
7
8
|
[id: string]: T[];
|
|
8
9
|
};
|
|
9
10
|
protected _root: Id;
|
|
10
|
-
|
|
11
|
+
protected _initChilds: {
|
|
12
|
+
[id: string]: T[];
|
|
13
|
+
};
|
|
11
14
|
constructor(config?: any, events?: IEventSystem<DataEvents>);
|
|
12
15
|
add(newItem: IDataItem, index?: number, parent?: Id): Id;
|
|
13
16
|
add(newItem: IDataItem[], index?: number, parent?: Id): Id[];
|
|
@@ -42,6 +45,7 @@ export declare class TreeCollection<T extends IDataItem = IDataItem> extends Dat
|
|
|
42
45
|
protected _setParent(item: IDataItem, parent: Id): void;
|
|
43
46
|
protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
|
|
44
47
|
protected _move(id: Id, index: number, target?: ITreeCollection | IDataCollection, targetId?: Id, key?: number): Id;
|
|
48
|
+
protected _moveItem(id: any, targetId: any, index: any): void;
|
|
45
49
|
protected _reset(config: {
|
|
46
50
|
id?: Id;
|
|
47
51
|
grouping: any;
|
|
@@ -11,8 +11,12 @@ export declare function measureTextHeight({ text, width, lineHeight, font, htmlE
|
|
|
11
11
|
}): number;
|
|
12
12
|
export declare function countColumns(config: IGridConfig, columns: ICol[]): number;
|
|
13
13
|
export declare function calculateVisibleRange(viewPortSize: ISizes, scroll: IScrollState, config: IGridConfig, data: IRow[]): IRange;
|
|
14
|
-
export declare function getUnique(arr: any[], name: string, multiselection: boolean): any[];
|
|
15
|
-
export declare const getMaxRowHeight: (
|
|
14
|
+
export declare function getUnique(arr: any[], name: string, multiselection: boolean, editorType: ICol["editorType"]): any[];
|
|
15
|
+
export declare const getMaxRowHeight: ({ cols, row, config, }: {
|
|
16
|
+
row: IRow;
|
|
17
|
+
cols: ICol[];
|
|
18
|
+
config?: IContainerConfig;
|
|
19
|
+
}) => number;
|
|
16
20
|
export declare const getCalculatedRowHeight: (height: number, config?: {
|
|
17
21
|
rowHeight: number;
|
|
18
22
|
verticalOffset?: number;
|
package/package.json
CHANGED
package/readme.txt
CHANGED
package/whatsnew.txt
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# Version 9.1.2 (March 17, 2025)
|
|
2
|
+
|
|
3
|
+
### Fixes
|
|
4
|
+
|
|
5
|
+
- The default CSS classes aren't applied to the series of the `splineArea` chart type
|
|
6
|
+
|
|
7
|
+
Version 9.1.1 (February 24, 2025)
|
|
8
|
+
----------------------------
|
|
9
|
+
|
|
1
10
|
# Version 9.1 (February 18, 2025)
|
|
2
11
|
|
|
3
12
|
### Fixes
|