1 Star 0 Fork 115

winnsay / F2

forked from antv / F2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CHANGELOG.md 63.45 KB
一键复制 编辑 原始数据 按行查看 历史
索丘 提交于 2021-06-03 22:14 . chore: release 3.8.9

3.8.9 (2021-06-03)

New Features
  • 图片添加缓存配置,防止重复加载的抖动 (bc95e200)

3.8.8 (2021-05-12)

New Features
  • image shape 支持fillOpacity设置 (5e700130)
Bug Fixes
  • 修复添加图片后,toDataURL 报SecurityError (6c9f36f0)

3.8.7 (2021-05-07)

Bug Fixes
  • 修复group背景色绘制不正确 (8f38df11)
  • 连续平移后tick计算不对 (4bb28700)

3.8.4 (2021-04-01)

Bug Fixes
  • cat类型平移后ticks不更新 (03752e7a)

3.8.3 (2021-03-05)

Bug Fixes
  • rect 设置radius时,图形画不出来 (10666e85)

3.8.2 (2021-03-04)

Chores
New Features
Bug Fixes
  • 修复touchend 后,points为空 (e769d642)
  • 修复hollowCircle报错和多geom时,crosshairs不显示的问题。Fixed #1140 (c1b5c85b)
  • 修复tooltip posy小于0被截断不显示 (bcda3586)

3.8.1 (2020-12-04)

Bug Fixes
  • 修复repaint时动画不生效 (f0ba1814)
  • 修复repaint shape属性不生效。Closed #1102 (b1ba85e5)

3.8.0 (2020-11-23)

Chores
Documentation Changes
  • 修改官网首页example链接 (b7a4e220)
  • 修改demo (9834ec86)
  • 添加tooltip show hide 的文档说明 (034cf4dc)
  • 添加无障碍aria的配置和使用文档 (771a8157)
  • 修改文档结构和内容 (539575b2)
New Features
Bug Fixes
  • 修复部分404文档跳转链接 (0c8fa827)
  • gitee sync fail (2bdfbf00)
  • remove circular dependency (3817e75a)
  • 引用hammerjs导致小程序报错 (0c15a67c)
  • setTheme 单独使用报错,即非Global.setTheme调用 (01080d03)
  • 创意图结构修改 (9c9c8077)
Tests
  • 添加svg注册的测试用例 (7ca79112)

3.7.7 (2020-09-04)

Chores
  • group和canvas的drawInner统一到container里 (c94804f8)
Bug Fixes
  • region-filter显示错误. Fixed #1013 (1348281f)
  • 双y轴, getPosition取不到point. Fixed #1004 (147a1c2c)
  • 修复alwaysshow为true时,滑动到plot外面,tooltip还会隐藏的问题 (0f002fef)
  • 动画空执行退出 (d0ea34f5)
  • 修复tooltip showXTip 显示时,measureText需要新建canvas. Fixed #1015 (010d5161)

3.7.6 (2020-08-19)

Bug Fixes

3.7.5 (2020-08-19)

Bug Fixes
  • 修复当interval为小数时,小数位数会少1位 (3a0bb6d6)

3.7.4 (2020-08-18)

Documentation Changes
  • remove scale/time-cat import (16b20a30)
Bug Fixes

3.7.3 (2020-08-14)

Chores
Documentation Changes
  • modify f2 cdn url (a75384fc)
  • uniform AntV navbar's order and naming (e492a364)
  • 修复文档上一些失效的链接 (478f56d8)
New Features
Bug Fixes
  • 特殊情况下interval不满足要求时,需要递归计算 (5543d488)
  • 修复数据字段存在x,y时,再次mapping后,数据不对 (db9def3e)
  • 刻度修改,修复单测 (cff266fa)
  • 单测修改 (a46809ef)
  • 修复 interval 平移后不显示的问题 Fixed #954 (e5c64bfc)
  • 修复漏斗图legend点击后,label位置不调整 Fixed #979 (9b43f4d3)
  • fix animation register error in codesandbox (0d64825f)
  • fix demo bugs in sandbox (294e655b)
  • transform arrow functions (8d73bba1)
  • values个数边界判断 (f2e64bab)
  • 修复精度的单测 (5c8e9910)
  • 兼容 0.3.X scale timeCat type (01078256)
  • 修复pieLabel插件判断矩形重叠的函数 (c139a6ab)
Other Changes
Tests
  • 修改pieLabel单测,测试前一个渲染过的标签比后一个长,后一个必渲染的bug。 (690bb0fc)

3.7.0 (2020-07-09)

Chores
  • tsconfig: disable @types/* check (60d17bb1)
  • gitignore: ignore yarn.lock (78ca6140)
Documentation Changes
New Features
Bug Fixes

3.6.4 (2020-07-06)

Chores
  • add leaks action (734f5b12)
  • 🔀 add GitHub Action to sync Gitee (09b7e27c)
  • deps-dev:
    • bump nunjucks from 3.0.1 to 3.2.1 (462073e7)
    • bump chai from 4.0.2 to 4.2.0 (500dcc04)
    • bump connect from 3.6.6 to 3.7.0 (1ed6c46c)
    • bump babel-preset-gatsby from 0.2.36 to 0.4.0 (1993a0ef)
    • bump babel-eslint from 7.2.3 to 10.1.0 (bc550803)
    • bump debug from 3.1.0 to 4.1.1 (3e361484)
New Features
Bug Fixes
  • geom rerender (#915) (033a3668)
  • 修复touchstart触发press时,没有设置direction (b6f45a6a)
  • 交互销毁时,注销事件 (912a13c1)
  • 修复rect radius大于宽高时,图形绘制不正确 (558fe91c)
  • 添加交互的几个钩子事件 (16fbcaee)
Other Changes
Tests
  • 补充新 pan 方法的单测 (b5f47fa5)
  • 补充event controller的单测 (955b5405)
  • add onstart hooks test case (c2f0f678)

3.6.3 (2020-03-30)

Bug Fixes

3.6.2 (2020-03-24)

New Features
  • 把helper和component透出来 (3bc0220d)
Bug Fixes
  • render 之后再次修改geom的size. Closed #797 (a90d9608)
  • 修复官网的链接问题 (1e8c0bfe)

3.6.1 (2020-03-19)

Chores
  • 调整geom attr的映射代码 (441e2408)
  • deps: upgrade eslint 3.19.0 to 6.7.2 (234edfc1)
  • deps-dev: bump open from 0.0.5 to 7.0.0 (cba92c2a)
New Features
Bug Fixes
  • 添加browser字段。Closed #789 (e5a798f1)
  • ios spa多次创建导致canvas白屏。Closed #630 (ea3f84f4)
  • preventDefault添加空判断 (ec99ed5a)
  • 再初始完成后,需要跟新ticks (54a11e9d)
  • 修复ci的报错 (ce404908)
  • scale锁定0.1.3 (0fe2de5c)
  • 修复touchstart时,会触发pan事件 (1be26b83)
  • 缩放后,legend点击会让缩放失效 (b490bbe0)
  • 添加swipe事件 (eaa89f9c)
  • 修复tag位置为NaN时的绘制问题 (3aee6443)
  • 修复事件删除的bug,并补充单测 (a7f37899)
  • 修复x, y为0的情况 (1dcb5f92)
  • touchend时,timeount没有清除导致报错 (1059bdd0)
  • 优化press事件的处理 (5b0153dc)
  • 修复tooltip touchend不消失的问题 (cb834770)
  • 未设置geometry时,clear报错 (065c7ea3)
  • 修复非浏览器环境时,currentStyle报错 (f90affa3)
Refactors
  • tooltip响应事件改成press (9a1a21a6)
  • 为mapping增加缓存,减少计算耗时 (f96a452d)
  • attr模块迁移内部 (d13ca752)
  • 调整二次绘制的性能 (05c6c2c4)

3.5.0 (2020-01-12)

Chores
  • npm包添加src源文件 (16d026c4)
  • deps: upgrade eslint 3.19.0 to 6.7.2 (234edfc1)
  • deps-dev: bump open from 0.0.5 to 7.0.0 (cba92c2a)
Documentation Changes
  • 添加filter的使用说明 (79038d47)
New Features
Bug Fixes
  • 未设置geometry时,clear报错 (065c7ea3)
  • 修复非浏览器环境时,currentStyle报错 (f90affa3)
Refactors
  • 去掉eventemitter,只要简单的事件处理就可以了 (b63c63a6)

3.4.4 (2019-12-06)

Documentation Changes
New Features
  • GeomBase: add ignoreEmptyGroup config to geom base (bb1b0107)
Bug Fixes
  • 滑动x轴时,cat的ticks会被置成null (49d4a86b)
  • 修复Shape.Text 在设置 rotate 之后 Box 宽高不正确的问题 (27e3eec)

3.4.3 (2019-11-20)

Bug Fixes
  • 修复只有1个点时,tooltip不显示的问题 (da62475)
  • 修复多类型换图点击选中的问题 (10c4b04)

3.4.2 (2019-10-15)

Chores
  • 发布时候babelrc & webpackrc & lintrc都带上了 这会影响工程本身 (4c6f3b47)
New Features
  • 默认增加guide point插件 (28d9e0c4)
Bug Fixes
  • 图例只支持分类数据 (bfe50422)
  • 修复图例过滤不考虑空数据的问题。 (78ee9fca)
  • Guide 的 position 百分比解析需要考虑原始数据中本身包含 '%' 的情况.Closed #590. (b299390c)

3.3.8 (2019-04-02)

Bug Fixes
  • 当只有1个扇形时,角度计算-6.285040585751744e-7和0,相减小于0.0001,也不绘制

3.3.7 (2019-03-15)

Bug Fixes
  • bbox.js: getBBoxFromArc方法对于整圆的判断错误,导致半圆弧的最小包围盒计算错误 (8763929f)
  • fix the error when pie chart data difference is very large. Closed #514 (b3bf2932)
  • add null value judgment to prevent error. (c9be938a)
Other Changes

3.3.5 (2019-02-11)

Chores
New Features
  • add shadow graphic property for ant-mini-program. Closed #486 (b558eada)
Bug Fixes
  • legend filter should work during pan or pinch. Closed #467 (3be0359f)
  • should filter the points when calculate the polyline shape's bounding box. Closed #468 (00883059)
Other Changes
Tests

3.3.4 (2018-12-27)

Chores

3.3.3 (2018-12-20)

New Features
  • tooltip: miniprogram support xTip. (e9115c38)

3.3.2 (2018-12-19)

New Features
  • add label1offsetY, label2OffsetY to adjust label position for pie-label. (7cac3ce4)
Bug Fixes
  • Guide.Point, fix the bug caused by parsePoint() return null. Closed #458. (2edbb03f)
  • pieLabel getBBox() should compact node and mini program env. Closed #448. (29ebd491)
  • fix the bug that axis configuration not work when data is empty. Closed #439. (594e4f84)
  • fix the bug that grid callback return null did not work. Closed #437 (717f2bf6)
  • syncYScales: scale should re-calculate the ticks (ef68c0c8)

3.3.1 (2018-11-30)

Bug Fixes
  • Arc shape support fill. Closed #429. (dc4981fc)
  • filter grid points which not in the range 0 to 1. (f25b1300)

3.3.0 (2018-11-20)

Chores
New Features
  • support snap property for crosshairs. (267e59eb)
  • Guide component support change visible. (1ba0db13)
  • PieLabel plugin support active selected shape. (fc06bca3)
  • optimize category scale's normalization of non-drawing data. For pan and swipe interaction. (14556a29)
  • tooltip tip content support callback. (506b1fb2)
  • auto adjust tooltip's tips position. (5b13ecde)
  • support swipe interaction. (5fb037f9)
  • support speed and step setting for category scale pan interaction.Closed #357,#343. (fbcf0c89)
  • add F2.Global.legend.common and F2.Global.axis.common for generic theme configuration. (becd26c0)
  • add PieLabel plugin for rendering the labels of pie chart. (6ba1c70e)
  • support 'x', 'y', 'xy' three types for tooltip crosshairs, and support xTip and yTip display for tooltip. Closed #369. (7fad5c78)
Bug Fixes

3.2.4 (2018-10-25)

Bug Fixes
  • fix angle calculation problem with linear gradient. (4adbb845)
  • fix the draw error caused by smooth area animation. Closed #373. (407fdf5c)
  • fix the draw error of polyline which has empty points but still fill the area. Closed #363. (2c336837)
  • let 'interval-select' interaction work for mixed charts. Closed #355. (b80aa3ff)

3.2.3 (2018-09-27)

Chores
  • upgrade @antv/util to 1.2.5 (ff8eb0f7)
Bug Fixes
  • fix the error when draw Guide.regionFilter for area chart. Closed #345. (3900565d)
  • add some padding in the vertical direction of chart clip area. Closed #336. (ab485d15)
  • fix the error that when the grid is a function and specify the type as 'arc'. Closed #331. (b27a0727)
  • when the points is empty, return. Closed #316. (82d5c2c7)
  • fix the bug when customizing the legend, the function type marker not work. Closed #317. (d631466c)
  • Optimized geometry shape's id generation strategy. Closed #318. (ea7adc9d)

3.2.2 (2018-09-06)

Chores
Bug Fixes
  • Guide.point, the render method should return the point shape. (e83a3a1c)
  • attrs should be deep clone. Closed #288. (2e4a90b9)
  • when Text shape's text attribute is updated, the textArr attribute should be reset. Closed #302. (1625a22e)
  • if text shape's x or y is NaN, there will be a drawing error in webchart mini program. Related to https://github.com/antvis/wx-f2/issues/81. (4f0ca529)
  • if there is a point with NaN value in the Polyline's points, there will be a drawing error in webchart mini program. (d5b39bef)
  • when text shape's content is 0, ensure it will be rendered. Closed #282. (b35dedf2)
Other Changes

3.2.1 (2018-08-24)

New Features
  • support set gradient color in default. Closed #243. (20b18a90)
  • support syncY property to unify multiple Y-axis data ranges. Related to #258. (854685e8)
  • support set default selected shape for pie-select and interval-select interaction. Related to #248. (55364d59)
Bug Fixes
  • when geom clear, the _width should be reset. Closed #273. (a36aa67f)
  • when chart update, tooltip's _lastActive should be reset. Closed #271. (297ae475)
  • define calculateBBox method for smooth area shape for getBBox(). (ebf8539d)
  • Fix sorting problem for categorical data. Closed #257. (3a129289)

3.2.0 (2018-08-16)

New Features
  • add interactions for chart, includes: 'pie-select', 'interval-select', 'pan' and 'pinch'.
  • add chart.guide().regionFilter({}).
  • add chart.guide().point({}).
  • add scrollBar plugin for pan and pinch interaction. (08b18c38)
  • add guide.repaint() method. (e626def6)
  • Guide component add limitInPlot property to limit guide draw in chart plot area. Closed #203 (05bf832c)
  • add show() and hide() methods for Geometry instance. (652ce741)
  • add limitInPlot property for chart, to limit the drawing area of geometrys. (74e53218)
  • the drawing order of geoms can be decided by scale values. (1f2993e6)
Bug Fixes
  • Fix problem with element zIndex in tooltip. Closed #216 (2b83bb83)
  • fix axis label animation. (8b1f7b19)
  • when x scale is category, do not need to sort data. Closed #202. (184f3937)
  • The position of the canvas in the parent container needs to be considered when calculating the Guide.Html position. (512e025d)
  • timeCat type scale setting values caused an error in chart drawing. (d1391bd3)
Chores
  • remove index-common and update index. (38e89096)
  • configuration update. (45333936)
  • handle the compatibility of Element.prototype.remove(). (97215b9a)
  • require from lib folder. (b06507b1)
  • use public package @antv/scale and @antv/adjust. (84e9a90f)
  • use public module @antv/attr. (357679bc)
  • use @antv/util as utility methods. (c619b66b)
Other Changes
  • optimize the process of data. (6f00f7ec)
  • add 16ms delay for canvas draw. (012c9fcc)
Tests
  • add test cases for all of the interactions. (77ffa62c)
  • add test case for scrollBar plugin. (b8ac2974)

3.1.20 (2018-08-13)

Bug Fixes
  • fix the error caused by empty data.Closed #238. (09de7614)

3.1.19 (2018-08-12)

Bug Fixes
  • fix the problem that tooltipMarker not show. Closed #234. (334eb765)
  • fix smooth area chart's update animation does not work. Closed #235. (53124c33)

3.1.18 (2018-08-09)

Bug Fixes
  • when chart.clear() be called, the padding should be recalculated. Closed #228. (dd1a0137)

3.1.17 (2018-08-03)

New Features
Bug Fixes
  • fix the error of F2.Global.setTheme(). Closed #224. (15547c1a)
Refactors
  • Optimize automatic position adjustment of Guide Tag. Closed #225. (2c0c18a2)
  • Not support triggerOn callback usage for tooltip and legend any more. (33624cb1)

3.1.16 (2018-07-26)

New Features
  • appendPadding support Array, just like padding. Closed #195。 (606c996c)
Bug Fixes
  • Guarantee the accuracy of the trigger point coordinates. Closed #210 (db3d25c8)
  • when set chart.legend(false), chart.getLegendItems() return empty. Closed #190. (c75fdb82)

3.1.15 (2018-07-12)

Bug Fixes
  • fix the padding value error when chart.changeSize() been called. Closed #186 (9edb3a91)

3.1.14 (2018-07-10)

New Features
  • add alwaysShow(Boolean) for tooltip, to controller the display of tooltip. Closed #177 (4ad4b9fa)
Bug Fixes
  • fix radar chart drawing path error. Closed #180 (257e2030)
  • negative data, drawing graphics(bar chart and area chart) beyond the canvas. Closed #179 (3767e386)

3.1.13 (2018-06-28)

New Features
  • add connectNulls for geometry to connect null points. Closed #171. (8729e8ce)
Bug Fixes
  • filter null values when draw stacked point chart. Closed #173. (662e1632)

3.1.12 (2018-06-20)

New Features
Bug Fixes
  • fix main entry configuration. (352dcefa)

3.1.10 (2018-06-11)

New Features
  • add joinString property for legend. (7bc76763)
  • add unCheckStyle for legend. (bab731bd)
Bug Fixes
  • make sure timeCat scale to sort by default. Closed #151. (a9e7fee6)

3.1.9 (2018-06-08)

Chores
  • update package.json configuration. (6f3ee61f)
Bug Fixes
  • when data changed, the padding should be recalculated. (fe7c2215)
  • fix the error when values are all null in linear scale. (54787f36)
  • fix the interval y scale unable to set min. (9c124f9d)

3.1.8 (2018-05-25)

New Features
  • chart legend support single select mode. (ebf6db35)
Bug Fixes
  • prevent same plugins repeat init. (89874884)

3.1.7 (2018-05-17)

New Features
  • add chart.registerPlugins() method. Closed #116. (e578106e)
Bug Fixes
  • when chart is clear, chart.getSnapRecords() should not be affected. (1dbdd79b)
  • fixed stack point chart draw error. Closed #119 (d3632781)

3.1.6 (2018-05-08)

Bug Fixes
  • auto padding calculate should consider legend's offsetX and offsetY. (93f75681)
  • getSnapRecords() - pick data more accurate in pie chart. (d3d6ddc2)
  • the drawing problem when the data of rounded interval shape is zero. (ee79a36c)

3.1.5 (2018-05-04)

New Features
  • Support for rotation of text shapes. (8d01b4d6)
  • Support polar coordinate grid lines can be drawn as arcs. (e8178a99)
Bug Fixes
  • Optimize shape's unique id generation strategy. (09036bad)
  • add isCategory property for TimeCat scale. (6299df3a)
  • animate: fixed issue where geometry animation could not be closed. (e0c39b2b)
  • theme: adjust axis-line's display position. (423b05cc)

3.1.4 (2018-05-02)

Chores
  • dev: require on demand: bundler app (b6fc228c)
New Features
  • Group support matrix animation (0789075f)
  • add chart.animate() method to support more shapes' animation. (bac28f85)
  • add env detect variables, support node-canvas (fcc792f2)
  • gesture-plugin (4de892c9)
  • animate:
    • support customize animation for each frame. (5685e242)
    • easing support function (8fb20b8c)
Bug Fixes
  • support pixelRatio setting for node-canvas. (85cb71d0)
Other Changes
  • demo: add rotation interactive of pie chart. (cfff6817)

3.1.3 (2018-04-13)

New Features
Bug Fixes
  • fix delay causes the chart not be completely drawed. (c6023c1e)

3.1.2 (2018-04-08)

Bug Fixes
  • fix bug when get records in polar coordinate. Closed #83. (1813bef9)
  • adjust the zIndex of axis, guide, tooltip container. (b1d4e597)
  • axis label fontFamily (e6620f16)
Performance Improvements
  • stop canvas draw when animation stop. (adc33eb4)

3.1.1 (2018-04-02)

New Features
  • support chart animation. See API
  • add chart.changeSize(width, height) method. (58c605f6)
  • add chart.guide().tag(). (f4c88331)
  • support multiple y axis for guide. Closed #64 (6463787b)
Bug Fixes
  • scale formatter not work in tooltip. (c6aff75b)
  • support area with null data (b555d7c7)
  • set min and max for interval is not work. Closed #57 (1a3dde5a)
  • 修复 linear scale tickCount 为 1 卡死浏览器的问题 (86f16009)
  • hidden point draw error. (78fcd53b)
  • chart.getSnapRecords() uncorrect in pie chart. Closed #67 (53fd40ff)
Tests
  • Add complete test cases.

3.1.0 (2018-02-09)

New Features
  • 添加底层绘图引擎,详见 graphic
  • 新增插件机制,更好支持图表功能扩展,详见 plugin
  • 扩展图表功能组件:TooltipLegend扩展 Guide 功能
  • 更灵活的模块按需引用,详见按需引用
  • 全新的图表样式,详见 demos
  • 支持图表布局 padding 的自动计算,详见 padding
  • 添加 chart.scale() 方法,用于列定义
  • 扩展 adjust() 方法,支持传入对象,dodge 方式支持设置 marginRatio 属性用于调整间距
  • chart.coord('polar') 新增 radius 属性,用于调整半径大小,详见 Coordinate API
不兼容性接口说明
  1. chart.guide() 各个方法的参数格式同 G2 统一,详见 Guide API
  2. F2.G,原先的绘图接口全部废弃,新的 API 参见:graphic

3.0.3 (2018-01-26)

Chores
  • dev:
    • upgrade vulnerable jquery (d00c2009)
    • always exports the latest version (ac768901)
    • standardize npm pkg, provide ES5 version source (5dc4374e)
New Features
  • support setting axis's position. (2a157f25)

3.0.2 (2018-01-18)

New Features

3.0.1 (2017-12-27)

Chores
  • demo: demo for drawing labels on pie plot, etc. (232b717f)
  • demos: fix title of demos (82acc214)
  • remove useless dependencies (f43b42ce)
  • add something for github. (572204fd)
  • contribute: add contribute.md (b6b4e3ec)
New Features
  • guide: support offset setting for Guide.Text. (c0564ae6)
  • support F2.Util. (b83b5e95)
  • support CanvasRenderingContext2D instance. (ff2cd37f)
  • better script (1d1cc799)
Bug Fixes
  • should use canvas dom's width. (ca6c040a)
  • dist/f2.js => dist/f2.min.js (24c5b060)
  • scale: fixed bug of first record with null (f94cf376)
  • chart: fixed bug of #15, getSnapRecords of pie (9b0169b3)

3.0.0

跟 g2-mobile 2.x 相比 F2 3.0 的变化:

  • 命名空间 GM 改成 F2 ==不兼容==

  • animate 接口简化 ==不兼容==

     // 2.0
     chart.aniamte().wavec({
      duration: 2000,
      easing: 'elastic',
      success: function() {
        alert('ok');
      }
     });
    
     // 3.0
     chart.animate({
      type: 'wavec',
      duration: 2000,
      easing: 'elastic',
      success: function() {
        alert('ok');
      }
     });
  • new chart() 时的配置项

    • margin 改成 padding 为了升级方面,margin 还保留支持
    // 2.0
    var chart = new Chart({
      margin: 20
    });
    // 3.0
    var chart = new Chart({
      padding: 20
    });
    • 增加 width, height 属性,可以不在 canvas 上指定宽高
    • 增加 pixelRatio 属性
  • intevalStack,intervalDodge,areaStack 不再在chart 上支持 ==不兼容==

    F2 3.0 所有的geomety 都支持数据调整

      // 2.0
      chart.intervalStack().position('a*b');
    // 3.0
    chart.interval().position().adjust('stack')
  • 自定义Shape 的接口,更改了函数名称,但是保留原先函数名的支持

    • registShape 改成 registerShape
    • getShapePoints 改成 getPoints
    • drawShape 改成 draw
    // 2.0
    G2.Shape.registShape('interval', 'custom', {
      getShapePoints(cfg) {},
    drawShape(cfg, canvas) {}
    });
    
    G2.Shape.registerShape('interval', 'custom', {
      getPoints(cfg) {},
    draw(cfg, canvas) {}
    });
  • 时间分类(timeCat) 类型数据的 mask 改成标准格式 ==不兼容== 新的 mask 参考fecha

2.2.0

  • 修复数据为空,同时设置列定义里面 min: 0,死循环的问题

2.1.19

  • 修复销毁时动画未完成的 bug

2.1.18

  • 修复 timeCat 类型的 getSnapRecords 方法返回空值的问题

2.1.17

  • 支持外部传入 context 对象

2.1.16

  • 支持传入 canvas 对象
  • 新增半圆处理

2.1.14

  • 新增销毁功能
  • 性能优化

2.1.13

  • 支持缓动函数 easing 自定义
  • 支持传入 canvas 对象

2.1.12

  • 修复平铺动画重复绘制问题
  • 修复 guide 辅助元素模块引入时自动创建dom的问题

2.1.11

  • 动画新增参数配置和回调
  • 修复极坐标下getRecord方法获取数据范围不在0-1内的问题
  • getSnapRecords 方法新增逼近维度配置

2.1.10

  • 绘图库绘制文字的方法添加旋转rotate功能

2.1.9

  • 给 guide 的 rect 方法新增圆角配置
  • 给 geom 中折线图的虚线 dash 添加全局样式配置

2.1.8

  • axislabel 配置项添加定义文本内容功能

2.1.7

  • 修复线图和区域图使用时间轴数据超过10条在chrome浏览器排序出错的问题

2.1.6

  • 修复guide的clear方法没有清空html的dom元素问题

2.1.5

  • 添加window变量保护

2.1.4

  • 优化getSnapRecord方法

2.1.3

  • 添加 fillOpacitystrokeOpacity 两个图形绘图属性;
  • geom 对象开放 getAllShapeData() 接口,返回 geom 上所有 shape 的绘制数据;
  • 修复参与映射的数据属性的数据值全为 undefined 导致栈溢出的问题;
  • 添加环形平铺动画方法wavec();
  • 修复辅助html文本结构混乱问题.

2.1.2

  • 在数据结构frame中添加源数据,供用户在扩展接口上使用

2.1.1

  • 优化动画模块
  • 给定默认颜色,将color方法变成可选项
  • 修复area模块的自定义shape接口

2.1.0

  • 新增动画功能,支持水平方向的平铺(waveh)、x轴上的缩放(scalex)、y轴上的缩放(scaley)、x和y轴同时缩放(scalexy)
  • 修复shape接口
  • 给line的shape新增dash方法
  • 将getSnapRecords方法在chart中抛出

2.0.1

  • guide 新增html对齐功能,支持9点对齐方式:tr、tc、tl、br、bc、bl、lc、rc、cc
  • geom 添加getSnapRecords方法,提供根据画布坐标获取数据的功能

2.0.0

  • 集成g2-core,并统一API与G2一致
  • guide 拓展
    • line
    • arc
    • text
    • html

1.0.7

  • 修复了环图在UC上的bug
  • 新增加 timeCat 类型
  • 调整scale tickcount 自动计算向上逼近
  • 修复scale linear 的几个bug

1.0.4

  • scale 增加了offset属性,自动计算时min,max各自浮动 百分比
  • 增加了自动计算精度的功能,用户只需要传入单精度的值
  • 提供了自定义样式功能,拆分坐标轴的全局配置信息
  • 修复点图,边框没有颜色的问题

1.0.0

new It is the first version of g-mobile.

JavaScript
1
https://gitee.com/winnsay/f2.git
git@gitee.com:winnsay/f2.git
winnsay
f2
F2
master

搜索帮助