Commit Graph

127 Commits

Author SHA1 Message Date
Yue JIN
8a2cc966e7 feat!: inject style via constructable CSSStyleSheet and remove CSP entry (#847)
* chore: not inject inline css on server

* feat!: remove csp entry

* keep csp title in readme

* chore: switch to rolldown and tsdown

* update

* dedupe

* update according to review

* emphasize "both" in csp section

* load css with unplugin-raw

* change tsdown entry
2025-08-05 12:15:21 +08:00
Yue JIN
1a05e28177 feat: rendering tooltips and dataView with slots (#838)
* feat: experimental component rendered tooltip

* revert slot in VChart

* feat: use tooltip composable

* feat: try createApp

* feat: use pie chart as tooltip

* feat: switch to createVNode

The limitation is that the tooltip detached from the current component tree, not provide/inject

will try teleport next

* feat: try component with teleport

* wip

* add xAxis example

* refactor with shallowReactive

* Support dynamic slot

* fix: fill empty elements with object in array

* shallow copy option along the path

* ssr friendly

* vibe docs

* typo

* update according to the review

* add dataView slot

* chore: fix warnings and errors in demo (#839)

* chore: suppress warning in demo

* chore: prevent multiple intializations of esbuild-wasm in demo HMR

* feat: dynamically update the theme (#841)

Co-authored-by: GU Yiling <justice360@gmail.com>

* feat: add dataView slot

* vibe docs

---------

Co-authored-by: GU Yiling <justice360@gmail.com>

* fix docs typo

* update according to the review

* small fix

* remove wrapper around slotProp

* update comments

* remove anys

* add tooltip slot prop type

* target to vue 3.3

* move slot related codes to slot.ts

---------

Co-authored-by: GU Yiling <justice360@gmail.com>
2025-07-26 01:30:58 +08:00
Yue JIN
23de318077 feat: dynamically update the theme (#841)
Co-authored-by: GU Yiling <justice360@gmail.com>
2025-07-02 18:32:50 +08:00
Yue JIN
001cc1ae32 refactor: use Web Components without native class support detection (#836) 2025-06-01 17:43:06 +08:00
Yue JIN
f7ed1e1b7d refactor: switch to generated .d.ts (#835)
* build: generate d.ts

* fix: preserve PublicMethods

* fix: avoid exposing types of attrs

* refactor: use existing setoption type

* fix: expose root and chart

* feat: use symbol as injection key

* chore: add comment for the type casting of the exposed
2025-06-01 12:29:26 +08:00
Yue JIN
8be19fe2a5 chore: ESLint Flat Config (#834)
* chore: eslint flat config

* chore: format

* update according to review

* chore: remove prettier config and format

* fix: move handler to script to bypass eslint

* chore: config eslint for lang=js block

* docs: add surrounding empty lines for code block

* chore: also minify css in csp build

* chore: publint
2025-05-26 11:11:23 +08:00
Yue JIN
eecc4e9405 build: migrate demo from webpack to Vite (#832) 2025-05-25 00:24:38 +08:00
Yue JIN
631a9788d3 refactor: change listeners from object to Map 2025-05-21 16:47:47 +08:00
Yue JIN
74960f0583 refactor: rename realListeners to listeners 2025-05-21 16:47:47 +08:00
Yue JIN
0c0e82d6fb refactor: simplify render function 2025-05-21 16:47:47 +08:00
Yue JIN
a8b238cedd feat: support getter in provide/inject 2025-05-21 16:47:47 +08:00
Yue JIN
ca6d44f8db feat!: remove vue 2 2025-05-21 16:47:47 +08:00
Justineo
b7852ab643 fix: fix type for autoresize (again), closes #810 2024-08-19 23:41:18 +08:00
Justineo
beec26367f fix: fix type for autoresize, closes #800 2024-08-04 07:38:57 +08:00
Justineo
4f3a6ac0a3 fix: fix event types and bump to 7.0.0 2024-08-03 16:17:46 +08:00
Justineo
2d310a3891 chore: update linter config 2024-07-24 18:21:56 +08:00
Justineo
24ed18e439 docs: use local wasm file 2024-07-24 18:21:56 +08:00
Justineo
6b98318504 build: add back umd, drop csp, share type between vue2/3 2024-07-24 18:21:56 +08:00
Justineo
27c79b9012 feat!: move to esm and drop support for vue 2.6 2024-07-24 18:21:56 +08:00
Justineo
861674352b docs: improve demo 2024-07-24 18:21:56 +08:00
Justineo
fc53aee8a7 feat!: drop extra wrapper 2024-07-24 18:21:56 +08:00
Justineo
da0109b07a refactor: improve import statements 2024-07-24 18:21:56 +08:00
Justineo
3c7ff95331 refactor!: remove resize-detector and update vue deps to 2.7+ 2024-07-24 18:21:56 +08:00
Yue JIN
d774558f3e chore: fix disappeared logo in demo 2024-06-13 20:25:38 +08:00
Justineo
5d23006866 chore: update demo 2024-06-11 20:05:05 +08:00
Justineo
16f3f4b419 fix: fix padding style 2024-06-04 23:11:22 +08:00
Justineo
e651d32334 fix(#783): chart should display after activation in <keep-alive> 2024-05-07 17:43:19 +08:00
Yue JIN
09808a47d2 fix: move events collecting from init to setup 2024-04-23 18:20:38 +08:00
Justineo
898195c770 fix: fix esbuild wasm url in demo 2024-04-23 15:59:10 +08:00
Justineo
def674bc6c refactor: improve readability and add more comments to explain native event handling 2024-04-22 21:08:02 +08:00
Yue JIN
feb4f03587 fix: remove native: events from realListeners 2024-04-22 19:22:14 +08:00
Yue JIN
5cdff0b4f9 feat: also supports native: in Vue 2 2024-04-22 19:22:14 +08:00
Yue JIN
29ff9bc52a feat: support native listener in Vue 3 2024-04-22 19:22:14 +08:00
Justineo
54d196c9d5 chore: update deps and fix ts error 2024-04-22 12:30:41 +08:00
Justineo
e189abd9c2 fix(#777): autoresize does not work when reducing height 2024-04-22 11:00:56 +08:00
Justineo
f07855df08 docs: add sample rate to reduce analytics data points 2024-04-16 13:18:23 +08:00
Justineo
2f1910ec87 fix: make inner wrapper fit to the root size (#761) 2024-02-20 10:55:38 +08:00
Justineo
7bcf57e77b fix(types): fix types for vue < 2.7 2023-12-26 14:54:37 +08:00
Justineo
ce3ba29209 chore: improve demo 2023-12-26 14:54:04 +08:00
Justineo
2a0db561b4 types: fix option type (#751) 2023-12-18 10:22:08 +08:00
Justineo
2130bd6444 fix: fix selector class 2023-12-13 11:00:04 +08:00
Justineo
b3a10f3654 fix: fix inner wrapper styles 2023-12-12 09:51:27 +08:00
Justineo
8132842be7 fix: fixed that tooltips may affected by internal styling by VueECharts 2023-12-04 16:59:34 +08:00
Justineo
70c32603d4 fix: revert to esbuild-wasm@0.19.2 2023-10-31 19:19:24 +08:00
Justineo
21fae71b9e chore: improve demo analytics for copy 2023-09-14 14:55:18 +08:00
Justineo
ccb951e11b chore: improve demo code 2023-09-13 12:57:34 +08:00
Justineo
c41d55b054 chore: update demo 2023-09-12 20:36:54 +08:00
Justineo
4484b4e180 fix: improve codegen output 2023-09-04 17:16:28 +08:00
Justineo
705bff310f fix: fix codegen focus 2023-09-01 12:21:32 +08:00
Justineo
5985dd8c86 fix: fix codegen style 2023-09-01 12:00:50 +08:00