File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
3
"path" : " dist/index.cjs" ,
4
- "limit" : " 2.7 KB" ,
4
+ "limit" : " 2.75 KB" ,
5
5
"webpack" : false ,
6
6
"running" : false
7
7
},
Original file line number Diff line number Diff line change 27
27
};
28
28
export let options: $$Props [' options' ] = {};
29
29
export let plugins: $$Props [' plugins' ] = [];
30
+ export let updateMode: $$Props [' updateMode' ] = undefined ;
30
31
export let chart: $$Props [' chart' ] = null ;
31
32
let canvasRef: HTMLCanvasElement ;
32
33
let props = clean ($$props );
45
46
46
47
chart .data = data ;
47
48
chart .options = options ;
48
- chart .update ();
49
+ chart .update (updateMode );
49
50
});
50
51
51
52
onDestroy (() => {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type {
4
4
ChartOptions ,
5
5
DefaultDataPoint ,
6
6
Plugin ,
7
- // UpdateMode,
7
+ UpdateMode ,
8
8
} from 'chart.js' ;
9
9
import type { HTMLAttributes } from './html' ;
10
10
@@ -38,5 +38,5 @@ export interface ChartBaseProps<
38
38
* A mode string to indicate transition configuration should be used.
39
39
* @see https://www.chartjs.org/docs/latest/developers/api.html#update-mode
40
40
*/
41
- // updateMode?: UpdateMode;
41
+ updateMode ?: UpdateMode ;
42
42
}
You can’t perform that action at this time.
0 commit comments