Skip to content

Commit

Permalink
chore: lock dumi version (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver authored Jun 6, 2024
1 parent 911f9b9 commit 9fe0ed0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion __tests__/demos/plugin/yoga-text.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Circle, Group, Rect, Text } from '../../../packages/g';
import { runtime, Circle, Group, Rect, Text } from '../../../packages/g';
import { Plugin as PluginYoga } from '../../../packages/g-plugin-yoga';

export async function yogaText(context) {
runtime.enableCSSParsing = true;

const { canvas, gui } = context;
await canvas.ready;

Expand Down
1 change: 1 addition & 0 deletions packages/g-plugin-matterjs/src/MatterJSPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ export class MatterJSPlugin implements RenderingPlugin {
config,
);
} else if (nodeName === Shape.CIRCLE) {
target.style.transformOrigin = 'center center';
// matter.js also use polygon inside
body = Bodies.circle(0, 0, halfExtents[0], config);
} else if (nodeName === Shape.ELLIPSE) {
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"devDependencies": {
"@antv/dumi-theme-antv": "^0.5.1",
"dumi": "^2.2.1",
"dumi": "~2.2.1",
"workerize-loader": "^2.0.2"
}
}

0 comments on commit 9fe0ed0

Please sign in to comment.