Skip to content

Commit

Permalink
chore: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Feb 2, 2024
1 parent 30ac0dc commit d22b4cf
Show file tree
Hide file tree
Showing 343 changed files with 22,414 additions and 50,018 deletions.
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/handle-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Handle1 = () => {
group.appendChild(
new Handle({
style: {
transform: 'translate(150, 150)',
x: 150,
y: 150,
labelText: 'LabelText',
},
})
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/handle-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Handle2 = () => {
group.appendChild(
new Handle({
style: {
transform: 'translate(150, 150)',
x: 150,
y: 150,
orientation: 'vertical',
labelText: 'LabelText',
},
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/handle-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const HandleUpdate = () => {
const handle = group.appendChild(
new Handle({
style: {
transform: 'translate(150, 150)',
x: 150,
y: 150,
orientation: 'vertical',
labelText: 'LabelText',
},
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Slider1 = () => {
const slider = group.appendChild(
new Slider({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
trackLength: 300,
trackSize: 50,
},
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const Slider10 = () => {
trackRadius: 5,
trackSize: 10,
values: [0.25, 0.75],
transform: 'translate(10, 10)',
x: 10,
y: 10,
},
})
);
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const Slider11 = () => {
trackRadius: 5,
trackSize: 10,
values: [0.25, 0.75],
transform: 'translate(10, 10)',
x: 10,
y: 10,
},
})
);
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-12.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const Slider12 = () => {
handleLabelFillOpacity: 0.45,
handleLabelFontSize: 12,
handleLabelFontWeight: 'normal',
transform: 'translate(10, 10)',
x: 10,
y: 10,
trackLength: 510,
orientation: 'horizontal',
animate: {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/integration/components/slider/slider-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Slider2 = () => {

group.appendChild(
new Slider({
style: { transform: 'translate(10, 10)', trackLength: 300, trackSize: 50, orientation: 'vertical' },
style: { x: 10, y: 10, trackLength: 300, trackSize: 50, orientation: 'vertical' },
})
);

Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Slider3 = () => {
group.appendChild(
new Slider({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
values: [0.25, 0.75],
trackLength: 300,
trackSize: 50,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Slider4 = () => {
const slider = group.appendChild(
new Slider({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
trackLength: 300,
trackSize: 50,
},
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const Slider5 = () => {
sparklineType: 'line',
trackLength: 300,
trackSize: 50,
transform: 'translate(10, 10)',
x: 10,
y: 10,
sparklineData: [
[10, 2, 3, 4, 15, 10, 5, 0, 3, 1],
[5, 7, 10, 3, 10, 6, 10, 1, 5, 0],
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const Slider6 = () => {
sparklineType: 'line',
trackLength: 300,
trackSize: 50,
transform: 'translate(10, 10)',
x: 10,
y: 10,
sparklineData: [
[10, 2, 3, 4, 15, 10, 5, 0, 3, 1],
[5, 7, 10, 3, 10, 6, 10, 1, 5, 0],
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Slider7 = () => {
group.appendChild(
new Slider({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
trackLength: 300,
trackSize: 50,
orientation: 'vertical',
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const Slider8 = () => {
[5, 7, 10, 3, 10, 6, 10, 1, 5, 0],
[1, 3, 4, 10, 15, 13, 3, 3, 10, 12],
],
transform: 'translate(10, 10)',
x: 10,
y: 10,
trackLength: 300,
trackSize: 50,
values: [0, 0],
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const Slider9 = () => {
trackRadius: 5,
trackSize: 10,
values: [0.25, 0.75],
transform: 'translate(10, 10)',
x: 10,
y: 10,
},
})
);
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-invert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export const SliderInvert = it({ width: 320, height: 50 }, (group) => {
group.appendChild(
new Slider({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
values: [0.25, 0.75],
trackLength: 300,
trackSize: 50,
Expand Down
6 changes: 4 additions & 2 deletions __tests__/integration/components/slider/slider-timebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const SliderTimebar = it((group) => {
trackSize: 5,
values: [0, 0.75],
type: 'value',
transform: 'translate(10, 10)',
x: 10,
y: 10,
},
})
);
Expand All @@ -33,7 +34,8 @@ export const SliderTimebar = it((group) => {
selectionFill: '#2e7ff8',
selectionFillOpacity: 1,
values: [0, 0.5],
transform: 'translate(10, 30)',
x: 10,
y: 30,
},
})
);
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/slider/slider-value-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const SliderValueType = it({ width: 320, height: 50 }, (group) => {
group.appendChild(
new Slider({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
type: 'value',
values: [0, 0.5],
trackLength: 300,
Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration/components/sparkline/sparkline-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const Sparkline1 = () => {
group.appendChild(
new Sparkline({
style: {
transform: 'translate(10, 10)',
x: 10,
y: 10,
type: 'line',
width: 300,
height: 50,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { it } from '../../utils';
import { Sparkline } from '../../../../src/ui/sparkline';

export const SparklineScaleColumn = it((group) => {
const shape1 = { transform: 'translate(10, 10)', width: 300, height: 50 };
const shape1 = { x: 10, y: 10, width: 300, height: 50 };
group.appendChild(
new Rect({
style: {
Expand All @@ -29,7 +29,7 @@ export const SparklineScaleColumn = it((group) => {
})
);

const shape2 = { transform: 'translate(10, 70)', width: 300, height: 50 };
const shape2 = { x: 10, y: 70, transform: `translate(30, 30)`, width: 300, height: 50 };

group.appendChild(
new Rect({
Expand Down
Loading

0 comments on commit d22b4cf

Please sign in to comment.