We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493d550 commit d769ffdCopy full SHA for d769ffd
1 file changed
packages/designto-token/main.ts
@@ -306,7 +306,13 @@ function handle_by_types(
306
break;
307
308
case nodes.ReflectSceneNodeType.ellipse:
309
- tokenizedTarget = tokenizeContainer.fromEllipse(node);
+ if (node.arcData.startingAngle === 0 && node.arcData.innerRadius === 0) {
310
+ // a standard ellipse
311
+ tokenizedTarget = tokenizeContainer.fromEllipse(node);
312
+ } else {
313
+ // a customized ellipse, most likely to be part of a graphical element.
314
+ tokenizedTarget = tokenizeGraphics.fromAnyNode(node);
315
+ }
316
317
318
case nodes.ReflectSceneNodeType.boolean_operation:
0 commit comments