-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor/chart view #38
base: main
Are you sure you want to change the base?
Conversation
|
dcdbae4
to
bd9bd3c
Compare
Deploy preview for alauda-chart ready! ✅ Preview Built with commit 64b2530. |
12d64d9
to
31b683e
Compare
d5abc6d
to
07ec46f
Compare
8ebf801
to
432d287
Compare
if (seriesIdx === 1) { | ||
hRect = null; | ||
|
||
const cx = u.cursor.left * pxRatio; |
Check warning
Code scanning / CodeQL
Implicit operand conversion Warning
hRect = null; | ||
|
||
const cx = u.cursor.left * pxRatio; | ||
const cy = u.cursor.top * pxRatio; |
Check warning
Code scanning / CodeQL
Implicit operand conversion Warning
auto: notAuto, | ||
range: (_u: uPlot, dataMin: number, dataMax: number) => { | ||
const minV = min | ||
? Math.max(dataMin, min || 0) |
Check warning
Code scanning / CodeQL
Useless conditional Warning
range: (_u: uPlot, dataMin: number, dataMax: number) => { | ||
const minV = min | ||
? Math.max(dataMin, min || 0) | ||
: Math.min(dataMin, min || 0); |
Check warning
Code scanning / CodeQL
Useless conditional Warning
if (!titleFormatter) { | ||
this.title.text(context.title as string); | ||
return; | ||
let tpl: string = title || NOT_AVAILABLE; |
Check warning
Code scanning / CodeQL
Useless conditional Warning
@@ -6,3 +6,4 @@ lib | |||
.vercel | |||
.*cache | |||
*.tsbuildinfo | |||
.git |
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.
revert
@@ -6,3 +6,4 @@ LICENSE | |||
*.sh | |||
*.tsbuildinfo | |||
*.lock | |||
docs |
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.
revert
] | ||
} | ||
] | ||
"selector-type-no-unknown": null, |
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.
revert
432d287
to
64b2530
Compare
@@ -1,7 +1,9 @@ | |||
{ | |||
"extends": "@1stg/eslint-config/loose", | |||
"rules": { | |||
"regexp/strict": "off" | |||
"regexp/strict": "off", |
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.
revert
# reactive | ||
|
||
> 为了支持配置式 options 更新,图表动态响应更新 | ||
> reactive 由 on-change 库完成 |
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.
底层换成 @vue/reactivity
@@ -65,6 +63,12 @@ | |||
"optional": true | |||
} | |||
}, | |||
"dependencies": { | |||
"aphrodite": "^2.4.0", | |||
"on-change": "^4.0.2", |
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.
换成 @vue/reactivity
"cache": true, | ||
"detail": true, | ||
"ignoreAsAssertion": true, | ||
"ignoreNested": true, | ||
"ignoreNonNullAssertion": true, | ||
"showRelativePath": true, | ||
"strict": true, | ||
"update": true | ||
"update": true, | ||
"ignoreFiles": [ |
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.
revert
本地先把 lint 修复完再提交 |
@@ -65,6 +63,12 @@ | |||
"optional": true | |||
} | |||
}, | |||
"dependencies": { | |||
"aphrodite": "^2.4.0", |
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.
为啥用这个?我看都不维护了,建议用纯 scss 就行了
"dependencies": { | ||
"aphrodite": "^2.4.0", | ||
"on-change": "^4.0.2", | ||
"placement.js": "^1.0.0-beta.5", |
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.
这个也过时了,不要用,试试 https://popper.js.org
"aphrodite": "^2.4.0", | ||
"on-change": "^4.0.2", | ||
"placement.js": "^1.0.0-beta.5", | ||
"uplot": "^1.6.26" |
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.
好奇为啥要有两套图表引擎?
No description provided.