Skip to content

Commit

Permalink
chore: illustrations path precision setting 2 (#2602)
Browse files Browse the repository at this point in the history
  • Loading branch information
pointhalo authored Dec 3, 2024
1 parent 28336e4 commit b1175c5
Show file tree
Hide file tree
Showing 17 changed files with 471 additions and 546 deletions.
7 changes: 7 additions & 0 deletions packages/semi-illustrations/scripts/build-illustration.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ const entryDir = resolve(__dirname, '../src/svgs');
const outDir = resolve(__dirname, '../src/illustrations');

const svgoPlugins = [
{
name: 'convertPathData',
params: {
floatPrecision: 2
}
},
{
name: 'cleanupListOfValues',
active: true,
Expand All @@ -22,6 +28,7 @@ const svgoPlugins = [
name: 'removeViewBox',
active: false,
},

];

build(entryDir, outDir, 'Illustration', '', svgoPlugins, { typescript: true });

Large diffs are not rendered by default.

Large diffs are not rendered by default.

154 changes: 80 additions & 74 deletions packages/semi-illustrations/src/illustrations/IllustrationFailure.tsx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

70 changes: 23 additions & 47 deletions packages/semi-illustrations/src/illustrations/IllustrationIdle.tsx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit b1175c5

Please sign in to comment.