File tree Expand file tree Collapse file tree 10 files changed +26
-10
lines changed Expand file tree Collapse file tree 10 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = [
16
16
} ,
17
17
{
18
18
path : 'package/index.js' ,
19
- limit : '1.2 KB' ,
19
+ limit : '1.25 KB' ,
20
20
import : '{ Bar }' ,
21
21
modifyWebpackConfig
22
22
} ,
Original file line number Diff line number Diff line change 13
13
ChartJS .register (BarController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="bar" {...props } />
Original file line number Diff line number Diff line change 13
13
ChartJS .register (BubbleController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="bubble" {...props } />
Original file line number Diff line number Diff line change 45
45
if (! chart ) return ;
46
46
47
47
chart .data = data ;
48
- chart .options = options ;
48
+ Object . assign ( chart .options , options ) ;
49
49
chart .update (updateMode );
50
50
});
51
51
Original file line number Diff line number Diff line change 13
13
ChartJS .register (DoughnutController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="doughnut" {...props } />
Original file line number Diff line number Diff line change 13
13
ChartJS .register (LineController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="line" {...props } />
Original file line number Diff line number Diff line change 13
13
ChartJS .register (PieController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="pie" {...props } />
Original file line number Diff line number Diff line change 13
13
ChartJS .register (PolarAreaController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="polarArea" {...props } />
Original file line number Diff line number Diff line change 13
13
ChartJS .register (RadarController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="radar" {...props } />
Original file line number Diff line number Diff line change 13
13
ChartJS .register (ScatterController );
14
14
15
15
export let chart: $$Props [' chart' ] = null ;
16
- let props = $$props as $$Props ;
16
+ let props: $$Props ;
17
17
let baseChartRef: Chart ;
18
18
19
19
useForwardEvents (() => baseChartRef );
20
+
21
+ $ : props = $$props as $$Props ;
20
22
</script >
21
23
22
24
<Chart bind:this ={baseChartRef } bind:chart type ="scatter" {...props } />
You can’t perform that action at this time.
0 commit comments