Browse Source

vue obj upd

merge-requests/1/merge
vargburz 4 years ago
parent
commit
383c047897
  1. 1
      dist/index.d.ts
  2. 2
      dist/index.js
  3. 4
      package-lock.json
  4. 2
      package.json
  5. 8
      src/index.ts

1
dist/index.d.ts vendored

@ -72,6 +72,7 @@ export declare const VueChartwerkGaugePodObject: {
options(): void;
};
mounted(): void;
destroyed(): void;
methods: {
render(): void;
renderSharedCrosshair(values: {

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

4
package-lock.json generated

@ -5,8 +5,8 @@
"requires": true,
"dependencies": {
"@chartwerk/core": {
"version": "github:chartwerk/core#5c4588c569673bce7f886d667f9009598ce9083e",
"from": "github:chartwerk/core#5c4588c569673bce7f886d667f9009598ce9083e"
"version": "github:chartwerk/core#a30ca83842247c79969deaaacfc7fb444a60cefb",
"from": "github:chartwerk/core#a30ca83842247c79969deaaacfc7fb444a60cefb"
},
"@types/d3": {
"version": "5.16.4",

2
package.json

@ -11,7 +11,7 @@
"author": "CorpGlory",
"license": "Apache-2.0",
"dependencies": {
"@chartwerk/core": "github:chartwerk/core#5c4588c569673bce7f886d667f9009598ce9083e"
"@chartwerk/core": "github:chartwerk/core#a30ca83842247c79969deaaacfc7fb444a60cefb"
},
"devDependencies": {
"@types/d3": "^5.7.2",

8
src/index.ts

@ -421,9 +421,13 @@ export const VueChartwerkGaugePodObject = {
mixins: [VueChartwerkPodMixin],
methods: {
render() {
const pod = new ChartwerkGaugePod(document.getElementById(this.id), this.series, this.options);
pod.render();
if(this.pod === undefined) {
this.pod = new ChartwerkGaugePod(document.getElementById(this.id), this.series, this.options);
this.pod.render();
} else {
this.pod.updateData(this.series, this.options);
}
},
}
};

Loading…
Cancel
Save