133 Commits

Author SHA1 Message Date
da4ade6ed6 chore: remove unnecessary comments 2025-09-25 02:23:31 +08:00
373fe19d59 test: increase coverage and add codecov integration 2025-09-25 02:23:31 +08:00
52938f4a03 docs: update readme 2025-09-20 22:35:54 +08:00
087be22721 test: setup vitest, add unit tests for smart-update 2025-09-20 22:35:54 +08:00
468f7dbfbd feat: add smart update 2025-09-20 22:35:54 +08:00
7e49190f95 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-10 23:36:36 +08:00
a6ad4e70a2 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-08-10 23:36:36 +08:00
26c991ea81 feat: dynamically update the theme (#841)
Co-authored-by: GU Yiling <justice360@gmail.com>
2025-08-10 23:36:36 +08:00
6ef3fd8f52 refactor: use Web Components without native class support detection (#836) 2025-08-10 23:36:36 +08:00
5b39c47102 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-08-10 23:36:36 +08:00
d3bff26307 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-08-10 23:36:36 +08:00
8fbc68a010 build: migrate demo from webpack to Vite (#832) 2025-08-10 23:36:36 +08:00
9dd86d0a8d refactor: change listeners from object to Map 2025-08-10 23:36:36 +08:00
0aec2ecbd6 refactor: rename realListeners to listeners 2025-08-10 23:36:36 +08:00
05bd137cce refactor: simplify render function 2025-08-10 23:36:36 +08:00
f81fd99c1a feat: support getter in provide/inject 2025-08-10 23:36:36 +08:00
503094de70 feat!: remove vue 2 2025-08-10 23:36:36 +08:00
1301014626 fix: not auto-resize when the container size is 0, closes #831 2025-05-23 15:10:03 +08:00
b7852ab643 fix: fix type for autoresize (again), closes #810 2024-08-19 23:41:18 +08:00
beec26367f fix: fix type for autoresize, closes #800 2024-08-04 07:38:57 +08:00
4f3a6ac0a3 fix: fix event types and bump to 7.0.0 2024-08-03 16:17:46 +08:00
2d310a3891 chore: update linter config 2024-07-24 18:21:56 +08:00
24ed18e439 docs: use local wasm file 2024-07-24 18:21:56 +08:00
6b98318504 build: add back umd, drop csp, share type between vue2/3 2024-07-24 18:21:56 +08:00
27c79b9012 feat!: move to esm and drop support for vue 2.6 2024-07-24 18:21:56 +08:00
861674352b docs: improve demo 2024-07-24 18:21:56 +08:00
fc53aee8a7 feat!: drop extra wrapper 2024-07-24 18:21:56 +08:00
da0109b07a refactor: improve import statements 2024-07-24 18:21:56 +08:00
3c7ff95331 refactor!: remove resize-detector and update vue deps to 2.7+ 2024-07-24 18:21:56 +08:00
d774558f3e chore: fix disappeared logo in demo 2024-06-13 20:25:38 +08:00
5d23006866 chore: update demo 2024-06-11 20:05:05 +08:00
16f3f4b419 fix: fix padding style 2024-06-04 23:11:22 +08:00
e651d32334 fix(#783): chart should display after activation in <keep-alive> 2024-05-07 17:43:19 +08:00
09808a47d2 fix: move events collecting from init to setup 2024-04-23 18:20:38 +08:00
898195c770 fix: fix esbuild wasm url in demo 2024-04-23 15:59:10 +08:00
def674bc6c refactor: improve readability and add more comments to explain native event handling 2024-04-22 21:08:02 +08:00
feb4f03587 fix: remove native: events from realListeners 2024-04-22 19:22:14 +08:00
5cdff0b4f9 feat: also supports native: in Vue 2 2024-04-22 19:22:14 +08:00
29ff9bc52a feat: support native listener in Vue 3 2024-04-22 19:22:14 +08:00
54d196c9d5 chore: update deps and fix ts error 2024-04-22 12:30:41 +08:00
e189abd9c2 fix(#777): autoresize does not work when reducing height 2024-04-22 11:00:56 +08:00
f07855df08 docs: add sample rate to reduce analytics data points 2024-04-16 13:18:23 +08:00
2f1910ec87 fix: make inner wrapper fit to the root size (#761) 2024-02-20 10:55:38 +08:00
7bcf57e77b fix(types): fix types for vue < 2.7 2023-12-26 14:54:37 +08:00
ce3ba29209 chore: improve demo 2023-12-26 14:54:04 +08:00
2a0db561b4 types: fix option type (#751) 2023-12-18 10:22:08 +08:00
2130bd6444 fix: fix selector class 2023-12-13 11:00:04 +08:00
b3a10f3654 fix: fix inner wrapper styles 2023-12-12 09:51:27 +08:00
8132842be7 fix: fixed that tooltips may affected by internal styling by VueECharts 2023-12-04 16:59:34 +08:00
70c32603d4 fix: revert to esbuild-wasm@0.19.2 2023-10-31 19:19:24 +08:00