Browse Source

new options

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

2
dist/index.d.ts vendored

@ -43,7 +43,7 @@ export declare class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
onMouseOut(): void; onMouseOut(): void;
protected zoomOut(): void; protected zoomOut(): void;
} }
export declare const VueChartwerkLineChartObject: { export declare const VueChartwerkLinePod: {
render(createElement: any): any; render(createElement: any): any;
mixins: { mixins: {
props: { props: {

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/types.d.ts vendored

@ -6,6 +6,8 @@ declare type LineTimeSerieParams = {
renderDots: boolean; renderDots: boolean;
renderLines: boolean; renderLines: boolean;
useOutOfRange: boolean; useOutOfRange: boolean;
dashArray: string;
class: string;
}; };
export declare enum Mode { export declare enum Mode {
STANDARD = "Standard", STANDARD = "Standard",

2
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "@chartwerk/line-pod", "name": "@chartwerk/line-pod",
"version": "0.4.6", "version": "0.4.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

8
src/index.ts

@ -56,7 +56,7 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
clearAllMetrics(): void { clearAllMetrics(): void {
// TODO: temporary hack before it will be implemented in core. // TODO: temporary hack before it will be implemented in core.
this.d3.selectAll('.metric-el').remove(); this.chartContainer.selectAll('.metric-el').remove();
} }
initLineGenerator(): void { initLineGenerator(): void {
@ -496,14 +496,14 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
} }
} }
// it is used with Vue.component, e.g.: Vue.component('chartwerk-line-pod', VueChartwerkLineChartObject) // it is used with Vue.component, e.g.: Vue.component('chartwerk-line-pod', VueChartwerkLinePod)
export const VueChartwerkLineChartObject = { export const VueChartwerkLinePod = {
// alternative to `template: '<div class="chartwerk-line-pod" :id="id" />'` // alternative to `template: '<div class="chartwerk-line-pod" :id="id" />'`
render(createElement) { render(createElement) {
return createElement( return createElement(
'div', 'div',
{ {
class: { 'chartwerk-line-chart': true }, class: { 'chartwerk-line-pod': true },
attrs: { id: this.id } attrs: { id: this.id }
} }
); );

Loading…
Cancel
Save