-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 增加 pattern 贴图 #2777
Merged
feat: 增加 pattern 贴图 #2777
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🎊 PR Preview 3e71f47 has been successfully built and deployed to https://antvis-G2Plot-preview-pr-2777.surge.sh?type=diff&date=2021-08-23 🕐 Build time: 110.144s 🤖 By surge-preview |
Pull Request Test Coverage Report for Build 1158085907
💛 - Coveralls |
pearmini
reviewed
Aug 10, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉可以写的更加简洁一点 🤣
pearmini
requested changes
Aug 10, 2021
visiky
commented
Aug 12, 2021
visiky
commented
Aug 12, 2021
visiky
force-pushed
the
pattern
branch
5 times, most recently
from
August 15, 2021 02:57
ebea51b
to
6c939bd
Compare
Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com>
* feat: 初始化pattern * feat: 增加可配置的dot贴图,并将patternAdptor用于饼图 * refactor: 将pattern统一赋给color,不用style Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com>
* feat(pattern): pattern 填充作用在 style 上 * feat(pattern): pattern 通道 & 接入柱条形图、玉珏图 * docs(pattern-demo): 增加若干 demo * refactor: 优化下代码 * docs: 增加 demos 上新标识 * refactor(pattern): 修改 cr 内容 & 优化 demo
* feat: 初始化pattern * feat: 增加可配置的dot贴图,并将patternAdptor用于饼图 * feat: 初始化pattern (#2763) Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com> * refactor: 将pattern统一赋给color,不用style * fix: 修改pattern文件引入路径 Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com>
* feat(square-pattern): 添加square样式贴图 * fix: 修复square形状stroke的rotate问题 Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com>
* feat(dot-pattern): 优化 dot pattern, 修复 stagger 展示 * feat(square-pattern): 优化 square pattern, 修复 stagger 展示 * refactor(pattern): 优化 line pattern & 删除无用代码 * refactor: 一些代码上的优化 & 删除无用的代码 * refactor(pattern): 初始化 canvas 的逻辑,抽取为一个 util 函数
* feat(square-pattern): 添加square样式贴图 * fix: 修复square形状stroke的rotate问题 * refactor(pattern): 对代码进行一点整理,含类型定义 * refactor(types): 重新定义下 pattern 的属性定义 * chore: 升级官网 * refactor(pattern): 内置 pattern 的属性设计 & 优化下创建逻辑 (#2785) * feat(dot-pattern): 优化 dot pattern, 修复 stagger 展示 * feat(square-pattern): 优化 square pattern, 修复 stagger 展示 * refactor(pattern): 优化 line pattern & 删除无用代码 * refactor: 一些代码上的优化 & 删除无用的代码 * refactor(pattern): 初始化 canvas 的逻辑,抽取为一个 util 函数 * test: 修复dot的stagger呈现问题,初步添加util中getCanvasPattern的单测 * 修复: [BUG] 双轴图图例legend使用symbol的时候,颜色不能自动调整 (#2776) * fix: 修复 [BUG] 双轴图图例legend使用symbol的时候,颜色不能自动调整 * fix: 修复 [BUG] 双轴图图例legend使用symbol的时候,颜色不能自动调整 -2 Co-authored-by: ai-qing-hai <wb-xcf804241@antgroup.com> * test: 修复dot的stagger呈现问题,初步添加util中getCanvasPattern的单测 * refactor: 修改pattern单测中的写法 Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com> Co-authored-by: visiky <736929286@qq.com> Co-authored-by: ai-qing-hai <65594180+ai-qing-hai@users.noreply.github.com> Co-authored-by: ai-qing-hai <wb-xcf804241@antgroup.com>
* refactor(pattern): 优化代码写法 * refactor(pattern): 优化pattern的写法,抽出一些方法 * refactor(pattern): 抽出util文件 Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com>
* test(pattern-in-plot): 逐个给每个plot添加pattern的单测,并添加对应的pattern文档 * docs: 修改部分pattern的文档说明以及默认值等 * fix: 修复pattern回调问题,对应的图形如果没有pattern,默认为主题色 * test: 添加column引入pattern的单测,并添加文档 * test: 添加bar引入pattern的单测,并添加文档 * test: 给pie添加pattern的单测,添加文档 * fix(pattern-util): 处理color为数组导致pie的图形变黑情况,统一返回字符串 * test: 给直方图添加pattern的单测,增加文档 * test: 给treemap添加pattern的单测,增加文档 * test: 给heatmap添加pattern的单测和文档,并给patternAttr的类型增加布尔值 * test: 给radial-bar添加pattern的单测,增加文档 * test: 给tiny-column添加pattern的单测,增加文档 * test: 给circle-packing添加pattern的单测,增加文档 * docs: 修改接入文档方式,把标题抽出来 * fix: 给patternAdaptor补充stackFields映射字段,修复stack模式的直方图添加pattern变黑问题 Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com>
visiky
commented
Aug 19, 2021
* test: 补充其旭日图等单测和文档 * refactor: 删除pattern的boolean类型 * test(pattern): 添加rose、tiny-area、liquid的单测和文档 Co-authored-by: 酥云 <lisuwen.lsw@antgroup.com> Co-authored-by: Visiky <736929286@qq.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR includes
待办事项
文档和单测:
其他:
Screenshot