@carbon/charts 1.7.0 → 1.7.1
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/CHANGELOG.md +11 -0
- package/build/src/components/diagrams/buildPaths.d.ts +27 -3
- package/build/src/components/graphs/bubble.d.ts +1 -1
- package/build/src/components/graphs/wordcloud.d.ts +1 -1
- package/build/src/services/scales-cartesian.d.ts +1 -1
- package/bundle.js +3 -1
- package/components/essentials/threshold.js +2 -0
- package/components/essentials/threshold.js.map +1 -1
- package/components/essentials/tooltip.js +2 -0
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/bubble.d.ts +1 -1
- package/components/graphs/wordcloud.d.ts +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/styles.css +5813 -3083
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +757 -1537
- package/package.json +15 -14
- package/services/essentials/dom-utils.js +1 -1
- package/services/essentials/dom-utils.js.map +1 -1
- package/styles.css +89 -37
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +826 -2096
- package/services/essentials/dom-to-image.d.ts +0 -120
- package/services/essentials/dom-to-image.js +0 -720
- package/services/essentials/dom-to-image.js.map +0 -1
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {Node} node - The DOM Node object to render
|
|
3
|
-
* @param {Object} options - Rendering options
|
|
4
|
-
* @param {Function} options.filter - Should return true if passed node should be included in the output
|
|
5
|
-
* (excluding node means excluding it's children as well). Not called on the root node.
|
|
6
|
-
* @param {String} options.bgcolor - color for the background, any valid CSS color value.
|
|
7
|
-
* @param {Number} options.width - width to be applied to node before rendering.
|
|
8
|
-
* @param {Number} options.height - height to be applied to node before rendering.
|
|
9
|
-
* @param {Object} options.style - an object whose properties to be copied to node's style before rendering.
|
|
10
|
-
* @param {Number} options.quality - a Number between 0 and 1 indicating image quality (applicable to JPEG only),
|
|
11
|
-
defaults to 1.0.
|
|
12
|
-
* @param {String} options.imagePlaceholder - dataURL to use as a placeholder for failed images, default behaviour is to fail fast on images we can't fetch
|
|
13
|
-
* @param {Boolean} options.cacheBust - set to true to cache bust by appending the time to the request url
|
|
14
|
-
* @return {Promise} - A promise that is fulfilled with a SVG image data URL
|
|
15
|
-
* */
|
|
16
|
-
export function toSvg(node: Node, options: {
|
|
17
|
-
filter: Function;
|
|
18
|
-
bgcolor: string;
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
style: any;
|
|
22
|
-
quality: number;
|
|
23
|
-
imagePlaceholder: string;
|
|
24
|
-
cacheBust: boolean;
|
|
25
|
-
}): Promise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* @param {Node} node - The DOM Node object to render
|
|
28
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
29
|
-
* @return {Promise} - A promise that is fulfilled with a PNG image data URL
|
|
30
|
-
* */
|
|
31
|
-
export function toPng(node: Node, options: any): Promise<any>;
|
|
32
|
-
/**
|
|
33
|
-
* @param {Node} node - The DOM Node object to render
|
|
34
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
35
|
-
* @return {Promise} - A promise that is fulfilled with a JPEG image data URL
|
|
36
|
-
* */
|
|
37
|
-
export function toJpeg(node: Node, options: any): Promise<any>;
|
|
38
|
-
/**
|
|
39
|
-
* @param {Node} node - The DOM Node object to render
|
|
40
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
41
|
-
* @return {Promise} - A promise that is fulfilled with a PNG image blob
|
|
42
|
-
* */
|
|
43
|
-
export function toBlob(node: Node, options: any): Promise<any>;
|
|
44
|
-
/**
|
|
45
|
-
* @param {Node} node - The DOM Node object to render
|
|
46
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
47
|
-
* @return {Promise} - A promise that is fulfilled with a Uint8Array containing RGBA pixel data.
|
|
48
|
-
* */
|
|
49
|
-
export function toPixelData(node: Node, options: any): Promise<any>;
|
|
50
|
-
declare namespace fontFaces {
|
|
51
|
-
export { resolveAll };
|
|
52
|
-
export namespace impl_1 {
|
|
53
|
-
export { readAll };
|
|
54
|
-
}
|
|
55
|
-
export { impl_1 as impl };
|
|
56
|
-
}
|
|
57
|
-
declare namespace images {
|
|
58
|
-
export { inlineAll };
|
|
59
|
-
export namespace impl_2 {
|
|
60
|
-
export { newImage };
|
|
61
|
-
}
|
|
62
|
-
export { impl_2 as impl };
|
|
63
|
-
}
|
|
64
|
-
declare namespace util {
|
|
65
|
-
export { escape };
|
|
66
|
-
export { parseExtension };
|
|
67
|
-
export { mimeType };
|
|
68
|
-
export { dataAsUrl };
|
|
69
|
-
export { isDataUrl };
|
|
70
|
-
export { canvasToBlob };
|
|
71
|
-
export { resolveUrl };
|
|
72
|
-
export { getAndEncode };
|
|
73
|
-
export function uid(): string;
|
|
74
|
-
export { delay };
|
|
75
|
-
export { asArray };
|
|
76
|
-
export { escapeXhtml };
|
|
77
|
-
export { makeImage };
|
|
78
|
-
export { width };
|
|
79
|
-
export { height };
|
|
80
|
-
}
|
|
81
|
-
declare namespace inliner {
|
|
82
|
-
export { inlineAll };
|
|
83
|
-
export { shouldProcess };
|
|
84
|
-
export namespace impl_3 {
|
|
85
|
-
export { readUrls };
|
|
86
|
-
export { inline };
|
|
87
|
-
}
|
|
88
|
-
export { impl_3 as impl };
|
|
89
|
-
}
|
|
90
|
-
declare function resolveAll(): any;
|
|
91
|
-
declare function readAll(): Promise<any>;
|
|
92
|
-
declare function inlineAll(node: any): any;
|
|
93
|
-
declare function newImage(element: any): {
|
|
94
|
-
inline: (get: any) => Promise<any>;
|
|
95
|
-
};
|
|
96
|
-
declare function parseExtension(url: any): string;
|
|
97
|
-
declare function mimeType(url: any): any;
|
|
98
|
-
declare function dataAsUrl(content: any, type: any): string;
|
|
99
|
-
declare function isDataUrl(url: any): boolean;
|
|
100
|
-
declare function canvasToBlob(canvas: any): Promise<any>;
|
|
101
|
-
declare function resolveUrl(url: any, baseUrl: any): string;
|
|
102
|
-
declare function getAndEncode(url: any): Promise<any>;
|
|
103
|
-
declare function delay(ms: any): (arg: any) => Promise<any>;
|
|
104
|
-
declare function asArray(arrayLike: any): any[];
|
|
105
|
-
declare function escapeXhtml(string: any): any;
|
|
106
|
-
declare function makeImage(uri: any): Promise<any>;
|
|
107
|
-
declare function width(node: any): any;
|
|
108
|
-
declare function height(node: any): any;
|
|
109
|
-
declare function inlineAll_1(string: any, baseUrl: any, get: any): Promise<any>;
|
|
110
|
-
declare function shouldProcess(string: any): boolean;
|
|
111
|
-
declare function readUrls(string: any): string[];
|
|
112
|
-
declare function inline(string: any, url: any, baseUrl: any, get: any): Promise<any>;
|
|
113
|
-
export declare namespace impl {
|
|
114
|
-
export { fontFaces };
|
|
115
|
-
export { images };
|
|
116
|
-
export { util };
|
|
117
|
-
export { inliner };
|
|
118
|
-
export const options: {};
|
|
119
|
-
}
|
|
120
|
-
export {};
|