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;
protected zoomOut(): void;
}
export declare const VueChartwerkLineChartObject: {
export declare const VueChartwerkLinePod: {
render(createElement: any): any;
mixins: {
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;
renderLines: boolean;
useOutOfRange: boolean;
dashArray: string;
class: string;
};
export declare enum Mode {
STANDARD = "Standard",

2
package-lock.json generated

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

8
src/index.ts

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

Loading…
Cancel
Save