Skip to content

Commit da56570

Browse files
committed
fix: format
1 parent 10b28a1 commit da56570

File tree

92 files changed

+658
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+658
-643
lines changed

projects/swimlane/ngx-charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
"devDependencies": {
6060
"@types/d3-shape": "^3.0.0"
6161
}
62-
}
62+
}

projects/swimlane/ngx-charts/src/lib/area-chart/area-chart-normalized.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import { ScaleType } from '../common/types/scale-type.enum';
2525
import { ViewDimensions } from '../common/types/view-dimension.interface';
2626

2727
@Component({
28-
selector: 'ngx-charts-area-chart-normalized',
29-
template: `
28+
selector: 'ngx-charts-area-chart-normalized',
29+
template: `
3030
<ngx-charts-chart
3131
[view]="[width, height]"
3232
[showLegend]="legend"
@@ -161,10 +161,10 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
161161
</svg:g>
162162
</ngx-charts-chart>
163163
`,
164-
changeDetection: ChangeDetectionStrategy.OnPush,
165-
styleUrls: ['../common/base-chart.component.scss'],
166-
encapsulation: ViewEncapsulation.None,
167-
standalone: false
164+
changeDetection: ChangeDetectionStrategy.OnPush,
165+
styleUrls: ['../common/base-chart.component.scss'],
166+
encapsulation: ViewEncapsulation.None,
167+
standalone: false
168168
})
169169
export class AreaChartNormalizedComponent extends BaseChartComponent {
170170
@Input() legend = false;

projects/swimlane/ngx-charts/src/lib/area-chart/area-chart-stacked.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
2323
import { ScaleType } from '../common/types/scale-type.enum';
2424

2525
@Component({
26-
selector: 'ngx-charts-area-chart-stacked',
27-
template: `
26+
selector: 'ngx-charts-area-chart-stacked',
27+
template: `
2828
<ngx-charts-chart
2929
[view]="[width, height]"
3030
[showLegend]="legend"
@@ -158,10 +158,10 @@ import { ScaleType } from '../common/types/scale-type.enum';
158158
</svg:g>
159159
</ngx-charts-chart>
160160
`,
161-
changeDetection: ChangeDetectionStrategy.OnPush,
162-
styleUrls: ['../common/base-chart.component.scss'],
163-
encapsulation: ViewEncapsulation.None,
164-
standalone: false
161+
changeDetection: ChangeDetectionStrategy.OnPush,
162+
styleUrls: ['../common/base-chart.component.scss'],
163+
encapsulation: ViewEncapsulation.None,
164+
standalone: false
165165
})
166166
export class AreaChartStackedComponent extends BaseChartComponent {
167167
@Input() legend: boolean = false;

projects/swimlane/ngx-charts/src/lib/area-chart/area-chart.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
1212
const colors = ['#5AA454', '#A10A28', '#C7B42C', '#AAAAAA'];
1313

1414
@Component({
15-
selector: 'test-component',
16-
template: '',
17-
standalone: false
15+
selector: 'test-component',
16+
template: '',
17+
standalone: false
1818
})
1919
class TestComponent {
2020
data: any = multi;

projects/swimlane/ngx-charts/src/lib/area-chart/area-chart.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
2525
import { ScaleType } from '../common/types/scale-type.enum';
2626

2727
@Component({
28-
selector: 'ngx-charts-area-chart',
29-
template: `
28+
selector: 'ngx-charts-area-chart',
29+
template: `
3030
<ngx-charts-chart
3131
[view]="[width, height]"
3232
[showLegend]="legend"
@@ -159,10 +159,10 @@ import { ScaleType } from '../common/types/scale-type.enum';
159159
</svg:g>
160160
</ngx-charts-chart>
161161
`,
162-
changeDetection: ChangeDetectionStrategy.OnPush,
163-
styleUrls: ['../common/base-chart.component.scss'],
164-
encapsulation: ViewEncapsulation.None,
165-
standalone: false
162+
changeDetection: ChangeDetectionStrategy.OnPush,
163+
styleUrls: ['../common/base-chart.component.scss'],
164+
encapsulation: ViewEncapsulation.None,
165+
standalone: false
166166
})
167167
export class AreaChartComponent extends BaseChartComponent {
168168
@Input() legend: boolean = false;

projects/swimlane/ngx-charts/src/lib/area-chart/area-series.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { AreaChartSeries } from '../models/chart-data.model';
1515
import { sortLinear, sortByTime, sortByDomain } from '../utils/sort';
1616

1717
@Component({
18-
selector: 'g[ngx-charts-area-series]',
19-
template: `
18+
selector: 'g[ngx-charts-area-series]',
19+
template: `
2020
<svg:g
2121
ngx-charts-area
2222
class="area-series"
@@ -32,8 +32,8 @@ import { sortLinear, sortByTime, sortByDomain } from '../utils/sort';
3232
[class.inactive]="isInactive(data)"
3333
/>
3434
`,
35-
changeDetection: ChangeDetectionStrategy.OnPush,
36-
standalone: false
35+
changeDetection: ChangeDetectionStrategy.OnPush,
36+
standalone: false
3737
})
3838
export class AreaSeriesComponent implements OnChanges {
3939
@Input() data: AreaChartSeries;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-horizontal-2d.component.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
2525
import { BarOrientation } from '../common/types/bar-orientation.enum';
2626

2727
@Component({
28-
selector: 'ngx-charts-bar-horizontal-2d',
29-
template: `
28+
selector: 'ngx-charts-bar-horizontal-2d',
29+
template: `
3030
<ngx-charts-chart
3131
[view]="[width, height]"
3232
[showLegend]="legend"
@@ -140,21 +140,21 @@ import { BarOrientation } from '../common/types/bar-orientation.enum';
140140
</svg:g>
141141
</ngx-charts-chart>
142142
`,
143-
changeDetection: ChangeDetectionStrategy.OnPush,
144-
styleUrls: ['../common/base-chart.component.scss'],
145-
encapsulation: ViewEncapsulation.None,
146-
animations: [
147-
trigger('animationState', [
148-
transition(':leave', [
149-
style({
150-
opacity: 1,
151-
transform: '*'
152-
}),
153-
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
154-
])
155-
])
156-
],
157-
standalone: false
143+
changeDetection: ChangeDetectionStrategy.OnPush,
144+
styleUrls: ['../common/base-chart.component.scss'],
145+
encapsulation: ViewEncapsulation.None,
146+
animations: [
147+
trigger('animationState', [
148+
transition(':leave', [
149+
style({
150+
opacity: 1,
151+
transform: '*'
152+
}),
153+
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
154+
])
155+
])
156+
],
157+
standalone: false
158158
})
159159
export class BarHorizontal2DComponent extends BaseChartComponent {
160160
@Input() legend: boolean = false;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-horizontal-normalized.component.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
2525
import { isPlatformServer } from '@angular/common';
2626

2727
@Component({
28-
selector: 'ngx-charts-bar-horizontal-normalized',
29-
template: `
28+
selector: 'ngx-charts-bar-horizontal-normalized',
29+
template: `
3030
<ngx-charts-chart
3131
[view]="[width, height]"
3232
[showLegend]="legend"
@@ -121,21 +121,21 @@ import { isPlatformServer } from '@angular/common';
121121
</svg:g>
122122
</ngx-charts-chart>
123123
`,
124-
changeDetection: ChangeDetectionStrategy.OnPush,
125-
styleUrls: ['../common/base-chart.component.scss'],
126-
encapsulation: ViewEncapsulation.None,
127-
animations: [
128-
trigger('animationState', [
129-
transition(':leave', [
130-
style({
131-
opacity: 1,
132-
transform: '*'
133-
}),
134-
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
135-
])
136-
])
137-
],
138-
standalone: false
124+
changeDetection: ChangeDetectionStrategy.OnPush,
125+
styleUrls: ['../common/base-chart.component.scss'],
126+
encapsulation: ViewEncapsulation.None,
127+
animations: [
128+
trigger('animationState', [
129+
transition(':leave', [
130+
style({
131+
opacity: 1,
132+
transform: '*'
133+
}),
134+
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
135+
])
136+
])
137+
],
138+
standalone: false
139139
})
140140
export class BarHorizontalNormalizedComponent extends BaseChartComponent {
141141
@Input() legend: boolean = false;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-horizontal-stacked.component.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import { ScaleType } from '../common/types/scale-type.enum';
2424
import { ViewDimensions } from '../common/types/view-dimension.interface';
2525

2626
@Component({
27-
selector: 'ngx-charts-bar-horizontal-stacked',
28-
template: `
27+
selector: 'ngx-charts-bar-horizontal-stacked',
28+
template: `
2929
<ngx-charts-chart
3030
[view]="[width, height]"
3131
[showLegend]="legend"
@@ -130,21 +130,21 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
130130
</svg:g>
131131
</ngx-charts-chart>
132132
`,
133-
changeDetection: ChangeDetectionStrategy.OnPush,
134-
styleUrls: ['../common/base-chart.component.scss'],
135-
encapsulation: ViewEncapsulation.None,
136-
animations: [
137-
trigger('animationState', [
138-
transition(':leave', [
139-
style({
140-
opacity: 1,
141-
transform: '*'
142-
}),
143-
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
144-
])
145-
])
146-
],
147-
standalone: false
133+
changeDetection: ChangeDetectionStrategy.OnPush,
134+
styleUrls: ['../common/base-chart.component.scss'],
135+
encapsulation: ViewEncapsulation.None,
136+
animations: [
137+
trigger('animationState', [
138+
transition(':leave', [
139+
style({
140+
opacity: 1,
141+
transform: '*'
142+
}),
143+
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
144+
])
145+
])
146+
],
147+
standalone: false
148148
})
149149
export class BarHorizontalStackedComponent extends BaseChartComponent {
150150
@Input() legend: boolean = false;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-horizontal.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { YAxisTicksComponent } from '../common/axes/y-axis-ticks.component';
1313
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
1414

1515
@Component({
16-
selector: 'test-component',
17-
template: '',
18-
standalone: false
16+
selector: 'test-component',
17+
template: '',
18+
standalone: false
1919
})
2020
class TestComponent {
2121
single: any = single;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-horizontal.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { ScaleType } from '../common/types/scale-type.enum';
1818
import { ViewDimensions } from '../common/types/view-dimension.interface';
1919

2020
@Component({
21-
selector: 'ngx-charts-bar-horizontal',
22-
template: `
21+
selector: 'ngx-charts-bar-horizontal',
22+
template: `
2323
<ngx-charts-chart
2424
[view]="[width, height]"
2525
[showLegend]="legend"
@@ -86,10 +86,10 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
8686
</svg:g>
8787
</ngx-charts-chart>
8888
`,
89-
changeDetection: ChangeDetectionStrategy.OnPush,
90-
styleUrls: ['../common/base-chart.component.scss'],
91-
encapsulation: ViewEncapsulation.None,
92-
standalone: false
89+
changeDetection: ChangeDetectionStrategy.OnPush,
90+
styleUrls: ['../common/base-chart.component.scss'],
91+
encapsulation: ViewEncapsulation.None,
92+
standalone: false
9393
})
9494
export class BarHorizontalComponent extends BaseChartComponent {
9595
@Input() legend = false;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-label.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { formatLabel } from '../common/label.helper';
1212
import { BarOrientation } from '../common/types/bar-orientation.enum';
1313

1414
@Component({
15-
selector: 'g[ngx-charts-bar-label]',
16-
template: `
15+
selector: 'g[ngx-charts-bar-label]',
16+
template: `
1717
<svg:text
1818
class="textDataLabel"
1919
alignment-baseline="middle"
@@ -25,9 +25,9 @@ import { BarOrientation } from '../common/types/bar-orientation.enum';
2525
{{ formatedValue }}
2626
</svg:text>
2727
`,
28-
styleUrls: ['./bar-label.component.scss'],
29-
changeDetection: ChangeDetectionStrategy.OnPush,
30-
standalone: false
28+
styleUrls: ['./bar-label.component.scss'],
29+
changeDetection: ChangeDetectionStrategy.OnPush,
30+
standalone: false
3131
})
3232
export class BarLabelComponent implements OnChanges {
3333
@Input() value;

projects/swimlane/ngx-charts/src/lib/bar-chart/bar-vertical-2d.component.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import { BarOrientation } from '../common/types/bar-orientation.enum';
2424
import { isPlatformServer } from '@angular/common';
2525

2626
@Component({
27-
selector: 'ngx-charts-bar-vertical-2d',
28-
template: `
27+
selector: 'ngx-charts-bar-vertical-2d',
28+
template: `
2929
<ngx-charts-chart
3030
[view]="[width, height]"
3131
[showLegend]="legend"
@@ -132,21 +132,21 @@ import { isPlatformServer } from '@angular/common';
132132
</svg:g>
133133
</ngx-charts-chart>
134134
`,
135-
styleUrls: ['../common/base-chart.component.scss'],
136-
encapsulation: ViewEncapsulation.None,
137-
changeDetection: ChangeDetectionStrategy.OnPush,
138-
animations: [
139-
trigger('animationState', [
140-
transition(':leave', [
141-
style({
142-
opacity: 1,
143-
transform: '*'
144-
}),
145-
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
146-
])
147-
])
148-
],
149-
standalone: false
135+
styleUrls: ['../common/base-chart.component.scss'],
136+
encapsulation: ViewEncapsulation.None,
137+
changeDetection: ChangeDetectionStrategy.OnPush,
138+
animations: [
139+
trigger('animationState', [
140+
transition(':leave', [
141+
style({
142+
opacity: 1,
143+
transform: '*'
144+
}),
145+
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
146+
])
147+
])
148+
],
149+
standalone: false
150150
})
151151
export class BarVertical2DComponent extends BaseChartComponent {
152152
@Input() legend: boolean = false;

0 commit comments

Comments
 (0)