@antv/g-svg 1.8.60 → 1.9.0-alpha.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/dist/ContextRegisterPlugin.d.ts +6 -7
- package/dist/SVGContextService.d.ts +19 -20
- package/dist/index.d.ts +15 -16
- package/dist/index.esm.js +176 -595
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +191 -613
- package/dist/index.js.map +1 -0
- package/dist/index.umd.min.js +2 -1
- package/dist/index.umd.min.js.map +1 -0
- package/package.json +17 -13
- package/dist/ContextRegisterPlugin.d.ts.map +0 -1
- package/dist/SVGContextService.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.umd.js +0 -3271
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AbstractRendererPlugin } from '@antv/g-lite';
|
|
2
|
-
export declare class ContextRegisterPlugin extends AbstractRendererPlugin {
|
|
3
|
-
name: string;
|
|
4
|
-
init(): void;
|
|
5
|
-
destroy(): void;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=ContextRegisterPlugin.d.ts.map
|
|
1
|
+
import { AbstractRendererPlugin } from '@antv/g-lite';
|
|
2
|
+
export declare class ContextRegisterPlugin extends AbstractRendererPlugin {
|
|
3
|
+
name: string;
|
|
4
|
+
init(): void;
|
|
5
|
+
destroy(): void;
|
|
6
|
+
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import type { CanvasContext, DataURLOptions, GlobalRuntime, ContextService } from '@antv/g-lite';
|
|
2
|
-
export declare class SVGContextService implements ContextService<SVGElement> {
|
|
3
|
-
context: GlobalRuntime & CanvasContext;
|
|
4
|
-
private $container;
|
|
5
|
-
private $namespace;
|
|
6
|
-
private dpr;
|
|
7
|
-
private canvasConfig;
|
|
8
|
-
constructor(context: GlobalRuntime & CanvasContext);
|
|
9
|
-
init(): void;
|
|
10
|
-
getDomElement(): SVGElement;
|
|
11
|
-
getContext(): SVGElement;
|
|
12
|
-
getDPR(): number;
|
|
13
|
-
getBoundingClientRect(): DOMRect;
|
|
14
|
-
destroy(): void;
|
|
15
|
-
resize(width: number, height: number): void;
|
|
16
|
-
applyCursorStyle(cursor: string): void;
|
|
17
|
-
private generateCSSText;
|
|
18
|
-
toDataURL(options?: Partial<DataURLOptions>): Promise<string>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=SVGContextService.d.ts.map
|
|
1
|
+
import type { CanvasContext, DataURLOptions, GlobalRuntime, ContextService } from '@antv/g-lite';
|
|
2
|
+
export declare class SVGContextService implements ContextService<SVGElement> {
|
|
3
|
+
context: GlobalRuntime & CanvasContext;
|
|
4
|
+
private $container;
|
|
5
|
+
private $namespace;
|
|
6
|
+
private dpr;
|
|
7
|
+
private canvasConfig;
|
|
8
|
+
constructor(context: GlobalRuntime & CanvasContext);
|
|
9
|
+
init(): void;
|
|
10
|
+
getDomElement(): SVGElement;
|
|
11
|
+
getContext(): SVGElement;
|
|
12
|
+
getDPR(): number;
|
|
13
|
+
getBoundingClientRect(): DOMRect;
|
|
14
|
+
destroy(): void;
|
|
15
|
+
resize(width: number, height: number): void;
|
|
16
|
+
applyCursorStyle(cursor: string): void;
|
|
17
|
+
private generateCSSText;
|
|
18
|
+
toDataURL(options?: Partial<DataURLOptions>): Promise<string>;
|
|
19
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type { RendererConfig } from '@antv/g-lite';
|
|
2
|
-
import { AbstractRenderer } from '@antv/g-lite';
|
|
3
|
-
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
4
|
-
import * as SVGPicker from '@antv/g-plugin-svg-picker';
|
|
5
|
-
import * as SVGRenderer from '@antv/g-plugin-svg-renderer';
|
|
6
|
-
export { DomInteraction, SVGPicker, SVGRenderer };
|
|
7
|
-
export interface SVGRendererConfig extends RendererConfig {
|
|
8
|
-
/**
|
|
9
|
-
* Whether to output id on SVGElement with `setAttribute` like: <circle id="g-circle-123">.
|
|
10
|
-
*/
|
|
11
|
-
outputSVGElementId: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class Renderer extends AbstractRenderer {
|
|
14
|
-
constructor(config?: Partial<SVGRendererConfig>);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import type { RendererConfig } from '@antv/g-lite';
|
|
2
|
+
import { AbstractRenderer } from '@antv/g-lite';
|
|
3
|
+
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
4
|
+
import * as SVGPicker from '@antv/g-plugin-svg-picker';
|
|
5
|
+
import * as SVGRenderer from '@antv/g-plugin-svg-renderer';
|
|
6
|
+
export { DomInteraction, SVGPicker, SVGRenderer };
|
|
7
|
+
export interface SVGRendererConfig extends RendererConfig {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to output id on SVGElement with `setAttribute` like: <circle id="g-circle-123">.
|
|
10
|
+
*/
|
|
11
|
+
outputSVGElementId: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class Renderer extends AbstractRenderer {
|
|
14
|
+
constructor(config?: Partial<SVGRendererConfig>);
|
|
15
|
+
}
|