@antv/g-lite 2.0.2 → 2.0.3

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.
@@ -14,7 +14,6 @@ export declare class EventPlugin implements RenderingPlugin {
14
14
  apply(context: RenderingPluginContext): void;
15
15
  private onPointerMove;
16
16
  private onClick;
17
- private getViewportXY;
18
17
  private bootstrapEvent;
19
18
  private normalizeWheelEvent;
20
19
  /**
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-lite",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A core module for rendering engine implements DOM API.",
5
5
  "keywords": [
6
6
  "antv",