Skip to content

Commit

Permalink
fix(ci): 修复 ci 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wb-xcf804241 committed Jun 28, 2024
1 parent f645ad7 commit ccfdc20
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 9 deletions.
Binary file modified 3d/__tests__/e2e/snapshots/Bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/BarPerspective.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/Line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/LinePerspective.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/Scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/ScatterLegend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/ScatterPerspective.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/ScatterPoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/ScatterTriangle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 3d/__tests__/e2e/snapshots/Surface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions 3d/src/component/axisZ.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DisplayObject } from "@antv/g";
import { DisplayObject } from "@antv/g-lite";
import { GuideComponentComponent as GCC, LinearAxis, AxisOptions } from "@antv/g2";

export function rotateAxis(axis: DisplayObject, options: AxisOptions) {
export function rotateAxis(axis: DisplayObject<any, any>, options: AxisOptions) {
const { eulerAngles, origin } = options;
if (origin) {
axis.setOrigin(origin);
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/interval3D/cone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const Cone: SC<ConeOptions> = (options, context) => {
});
cone.scale([width, height, depth]);
cone.setPosition(cx, cy, cz);

// @ts-ignore
const selection = select(cone)
.call(applyStyle, defaults)
.style("fill", color)
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/interval3D/cube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Cube: SC<CubeOptions> = (options, context) => {
});
cube.scale([width, height, depth]);
cube.setPosition(cx, cy, cz);

// @ts-ignore
const selection = select(cube)
.call(applyStyle, defaults)
.style("fill", color)
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/interval3D/cylinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Cylinder: SC<CylinderOptions> = (options, context) => {
});
cylinder.scale([width, height, depth]);
cylinder.setPosition(cx, cy, cz);

// @ts-ignore
const selection = select(cylinder)
.call(applyStyle, defaults)
.style("fill", color)
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/line3D/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Line: SC<LineOptions> = (options, context) => {
...(stroke && { stroke }),
...(size && { lineWidth: size }),
};

// @ts-ignore
return select(new Polyline()).style("points", P).call(applyStyle, finalStyle).node();
};
};
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/point3D/cube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Cube: SC<CubeOptions> = (options, context) => {
const scaling = finalRadius / GEOMETRY_SIZE;
cube.scale(scaling);
cube.setPosition(cx, cy, cz);

// @ts-ignore
return select(cube)
.call(applyStyle, defaults)
.style("fill", color)
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/point3D/sphere.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Sphere: SC<SphereOptions> = (options, context) => {
const scaling = finalRadius / GEOMETRY_SIZE;
sphere.scale(scaling);
sphere.setPosition(cx, cy, cz);

// @ts-ignore
return select(sphere)
.call(applyStyle, defaults)
.style("fill", color)
Expand Down
2 changes: 1 addition & 1 deletion 3d/src/shape/surface3D/surface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export const Surface: SC<SurfaceOptions> = (options, context) => {
});
surface.setOrigin(0, 0, 0);
surface.scale(width / (rw - 1), height / (rh - 1), 1);

// @ts-ignore
return select(surface)
.call(applyStyle, defaults)
.style(toOpacityKey(options), opacity)
Expand Down

0 comments on commit ccfdc20

Please sign in to comment.