forked from apertureless/vue-chartjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develop: chore(release): Add dist files chore(release): 3.4.0 feat(events): Add events to reactiveMixins (apertureless#389) feat(ux): Add a wrapper around generateLegend (apertureless#390) feat(ux): Add fake render method with error message chore(docs): Update README feat(typescript): Add basic typescript definitions
- Loading branch information
Showing
13 changed files
with
113 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "vue-chartjs", | ||
"version": "3.3.2", | ||
"version": "3.4.0", | ||
"description": "Vue.js wrapper for chart.js for creating beautiful charts.", | ||
"author": "Jakub Juszczak <[email protected]>", | ||
"homepage": "http://vue-chartjs.org", | ||
|
@@ -40,10 +40,12 @@ | |
"unpkg": "dist/vue-chartjs.min.js", | ||
"module": "es/index.js", | ||
"jsnext:main": "es/index.js", | ||
"typings": "types/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"es" | ||
"es", | ||
"types/*.d.ts" | ||
], | ||
"scripts": { | ||
"dev": "node build/dev-server.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Vue from 'vue' | ||
|
||
/** vue-chartjs component common definition */ | ||
export declare class BaseChart extends Vue { | ||
addPlugin (plugin?: string[]): void | ||
renderChart (chartData: any, options?: any): void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { BaseChart } from './components' | ||
|
||
declare module 'vue-chartjs' { | ||
export function generateChart(chartId: string, chartType: string): any; | ||
export class Bar extends BaseChart {} | ||
export class HorizontalBar extends BaseChart {} | ||
export class Doughnut extends BaseChart {} | ||
export class Line extends BaseChart {} | ||
export class Pie extends BaseChart {} | ||
export class PolarArea extends BaseChart {} | ||
export class Radar extends BaseChart {} | ||
export class Bubble extends BaseChart {} | ||
export class Scatter extends BaseChart {} | ||
export const mixins: { | ||
reactiveData: any | ||
reactiveProp: any | ||
} | ||
} | ||
|