@antv/g-lite 2.0.2 → 2.0.4
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.esm.js +36 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +36 -28
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/plugins/EventPlugin.d.ts +0 -1
- package/dist/services/EventService.d.ts +7 -0
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -35,6 +35,13 @@ export declare class EventService {
|
|
|
35
35
|
private tmpVec3;
|
|
36
36
|
init(): void;
|
|
37
37
|
destroy(): void;
|
|
38
|
+
private getScale;
|
|
39
|
+
/**
|
|
40
|
+
* Should account for CSS Transform applied on container.
|
|
41
|
+
* @see https://github.com/antvis/G/issues/1161
|
|
42
|
+
* @see https://github.com/antvis/G/issues/1677
|
|
43
|
+
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/MouseEvent/offsetX
|
|
44
|
+
*/
|
|
38
45
|
client2Viewport(client: PointLike): PointLike;
|
|
39
46
|
viewport2Client(canvas: PointLike): PointLike;
|
|
40
47
|
viewport2Canvas({ x, y }: PointLike): PointLike;
|
package/dist/types.d.ts
CHANGED
|
@@ -291,7 +291,8 @@ export interface CanvasConfig {
|
|
|
291
291
|
*/
|
|
292
292
|
disableRenderHooks?: boolean;
|
|
293
293
|
/**
|
|
294
|
-
* Should we account for CSS Transform applied on container?
|
|
294
|
+
* Should we account for CSS Transform applied on container? Enabled by default.
|
|
295
|
+
* @deprecated
|
|
295
296
|
*/
|
|
296
297
|
supportsCSSTransform?: boolean;
|
|
297
298
|
/**
|