Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue committed Feb 1, 2025
1 parent 10b28a1 commit da56570
Show file tree
Hide file tree
Showing 92 changed files with 658 additions and 643 deletions.
2 changes: 1 addition & 1 deletion projects/swimlane/ngx-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
"devDependencies": {
"@types/d3-shape": "^3.0.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { ScaleType } from '../common/types/scale-type.enum';
import { ViewDimensions } from '../common/types/view-dimension.interface';

@Component({
selector: 'ngx-charts-area-chart-normalized',
template: `
selector: 'ngx-charts-area-chart-normalized',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -161,10 +161,10 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class AreaChartNormalizedComponent extends BaseChartComponent {
@Input() legend = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
import { ScaleType } from '../common/types/scale-type.enum';

@Component({
selector: 'ngx-charts-area-chart-stacked',
template: `
selector: 'ngx-charts-area-chart-stacked',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -158,10 +158,10 @@ import { ScaleType } from '../common/types/scale-type.enum';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class AreaChartStackedComponent extends BaseChartComponent {
@Input() legend: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
const colors = ['#5AA454', '#A10A28', '#C7B42C', '#AAAAAA'];

@Component({
selector: 'test-component',
template: '',
standalone: false
selector: 'test-component',
template: '',
standalone: false
})
class TestComponent {
data: any = multi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
import { ScaleType } from '../common/types/scale-type.enum';

@Component({
selector: 'ngx-charts-area-chart',
template: `
selector: 'ngx-charts-area-chart',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -159,10 +159,10 @@ import { ScaleType } from '../common/types/scale-type.enum';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class AreaChartComponent extends BaseChartComponent {
@Input() legend: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { AreaChartSeries } from '../models/chart-data.model';
import { sortLinear, sortByTime, sortByDomain } from '../utils/sort';

@Component({
selector: 'g[ngx-charts-area-series]',
template: `
selector: 'g[ngx-charts-area-series]',
template: `
<svg:g
ngx-charts-area
class="area-series"
Expand All @@ -32,8 +32,8 @@ import { sortLinear, sortByTime, sortByDomain } from '../utils/sort';
[class.inactive]="isInactive(data)"
/>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class AreaSeriesComponent implements OnChanges {
@Input() data: AreaChartSeries;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
import { BarOrientation } from '../common/types/bar-orientation.enum';

@Component({
selector: 'ngx-charts-bar-horizontal-2d',
template: `
selector: 'ngx-charts-bar-horizontal-2d',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -140,21 +140,21 @@ import { BarOrientation } from '../common/types/bar-orientation.enum';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
})
export class BarHorizontal2DComponent extends BaseChartComponent {
@Input() legend: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
import { isPlatformServer } from '@angular/common';

@Component({
selector: 'ngx-charts-bar-horizontal-normalized',
template: `
selector: 'ngx-charts-bar-horizontal-normalized',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -121,21 +121,21 @@ import { isPlatformServer } from '@angular/common';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
})
export class BarHorizontalNormalizedComponent extends BaseChartComponent {
@Input() legend: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import { ScaleType } from '../common/types/scale-type.enum';
import { ViewDimensions } from '../common/types/view-dimension.interface';

@Component({
selector: 'ngx-charts-bar-horizontal-stacked',
template: `
selector: 'ngx-charts-bar-horizontal-stacked',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -130,21 +130,21 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
})
export class BarHorizontalStackedComponent extends BaseChartComponent {
@Input() legend: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { YAxisTicksComponent } from '../common/axes/y-axis-ticks.component';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;

@Component({
selector: 'test-component',
template: '',
standalone: false
selector: 'test-component',
template: '',
standalone: false
})
class TestComponent {
single: any = single;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { ScaleType } from '../common/types/scale-type.enum';
import { ViewDimensions } from '../common/types/view-dimension.interface';

@Component({
selector: 'ngx-charts-bar-horizontal',
template: `
selector: 'ngx-charts-bar-horizontal',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -86,10 +86,10 @@ import { ViewDimensions } from '../common/types/view-dimension.interface';
</svg:g>
</ngx-charts-chart>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
changeDetection: ChangeDetectionStrategy.OnPush,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class BarHorizontalComponent extends BaseChartComponent {
@Input() legend = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { formatLabel } from '../common/label.helper';
import { BarOrientation } from '../common/types/bar-orientation.enum';

@Component({
selector: 'g[ngx-charts-bar-label]',
template: `
selector: 'g[ngx-charts-bar-label]',
template: `
<svg:text
class="textDataLabel"
alignment-baseline="middle"
Expand All @@ -25,9 +25,9 @@ import { BarOrientation } from '../common/types/bar-orientation.enum';
{{ formatedValue }}
</svg:text>
`,
styleUrls: ['./bar-label.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
styleUrls: ['./bar-label.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class BarLabelComponent implements OnChanges {
@Input() value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import { BarOrientation } from '../common/types/bar-orientation.enum';
import { isPlatformServer } from '@angular/common';

@Component({
selector: 'ngx-charts-bar-vertical-2d',
template: `
selector: 'ngx-charts-bar-vertical-2d',
template: `
<ngx-charts-chart
[view]="[width, height]"
[showLegend]="legend"
Expand Down Expand Up @@ -132,21 +132,21 @@ import { isPlatformServer } from '@angular/common';
</svg:g>
</ngx-charts-chart>
`,
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
styleUrls: ['../common/base-chart.component.scss'],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [
trigger('animationState', [
transition(':leave', [
style({
opacity: 1,
transform: '*'
}),
animate(500, style({ opacity: 0, transform: 'scale(0)' }))
])
])
],
standalone: false
})
export class BarVertical2DComponent extends BaseChartComponent {
@Input() legend: boolean = false;
Expand Down
Loading

0 comments on commit da56570

Please sign in to comment.