F2 icon indicating copy to clipboard operation
F2 copied to clipboard

图表示例 里 平移缩放功能 的演示demo代码中用的是 import F2 from '@antv/f2'引入, 然而平移缩放的功能必须是用 '@antv/f2/lib/index-all' 引入的才有效

Open ira2002 opened this issue 4 years ago • 1 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://antv-f2.gitee.io/zh/examples/column/basic#pan

Steps to reproduce

https://antv-f2.gitee.io/zh/examples/column/basic#pan

Environment Info
f2 3.8.9
System -
Browser -

屏幕截图 2021-09-16 172032

ira2002 avatar Sep 16 '21 09:09 ira2002

需要手工引入 import '@antv/f2/es/interaction/pan'。 备注:果用Rollup打包的话,需要使用 @rollup/plugin-commonjs 插件,且配置 transformMixedEsModules:true。

lolarun avatar Oct 15 '21 15:10 lolarun