Skip to content
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

fix: update legend marker #4869

Merged
merged 1 commit into from
Apr 6, 2023
Merged

fix: update legend marker #4869

merged 1 commit into from
Apr 6, 2023

Conversation

Aarebecca
Copy link
Contributor

更新 GUI 版本后更新 G2 截图
主要变动:

  • 一些 stroke marker 看起来比之前略小一点,不过不会被裁切
  • 修复了之前 label 文本被缩略的问题 图例文本省略问题 #4514

@pearmini
Copy link
Member

pearmini commented Apr 6, 2023

为啥看上去会小一点了?

Copy link
Member

@pearmini pearmini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@Aarebecca
Copy link
Contributor Author

CI 挂了……

[!] (plugin commonjs) TypeError: hostOrText.readFile is not a function
TypeError: hostOrText.readFile is not a function
    at readJsonOrUndefined (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:19519:74)
    at Object.readJson (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:19528:16)
    at getPackageJsonInfo (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:44772:41)
    at nodeLoadModuleByRelativeName (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:44426:54)
    at tryResolve (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:44380:34)
    at /Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:44343:69
    at Object.forEach (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:181:30)
    at nodeModuleNameResolverWorker (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:44343:25)
    at Object.nodeModuleNameResolver (/Users/runner/work/G2/G2/node_modules/typescript/lib/typescript.js:44313:16)
    at Object.resolveId (/Users/runner/work/G2/G2/node_modules/rollup-plugin-typescript/dist/rollup-plugin-typescript.cjs.js:155:28)

@Aarebecca
Copy link
Contributor Author

为啥看上去会小一点了?

因为之前直接取得包围盒做为 marker 的小,但是 stroke 是没有计入包围盒大小当中的,所以有 stroke 的marker 是比实际尺寸偏大的。现在把stroke计算进来后,看起来比之前就略小了

@pearmini pearmini merged commit 86a7d9c into v5 Apr 6, 2023
@pearmini pearmini deleted the fix/fix-legend-marker branch April 6, 2023 11:52
hustcc pushed a commit that referenced this pull request May 16, 2023
hustcc pushed a commit that referenced this pull request May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants