如何为“四分之一”圆绘制形状矢量

问题描述 投票:0回答:1

我一直在做这件事。显然,我通常的“迷糊式”几何方法不起作用。

我只是想在draw.io中创建一个完美的“四分之一”圆弧段。

我读过https://desk.draw.io/support/solutions/articles/16000052874-how-to-create-and-edit-shapes-

但是非常模糊。

这是我的最佳尝试,但这并不正确,边缘很难:

   <shape name="Quarter Circle" h="49" w="49" aspect="variable" strokewidth="inherit">
  <connections>
    <constraint x="0.5" y="0" perimeter="0" name="N"/>
    <constraint x="0.5" y="1" perimeter="0" name="S"/>
  </connections>
  <background>
    <path>
      <move x="49" y="0"/>
      <line x="0" y="0"/>
      <line x="0" y="49"/>
      <arc rx="90" ry="90" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="49" y="0"/>
      <close/>
    </path>
  </background>
  <foreground>
    <fillstroke/>
  </foreground>
</shape>

我真的想要一个四分之一圆,如果您旋转其中的四个,则最终得到一个完美的圆。

vector html5-canvas draw.io
1个回答
0
投票

圆弧半径(rx和ry)必须匹配形状大小才能实现所需的形状。只需用以下内容替换弧线:

© www.soinside.com 2019 - 2024. All rights reserved.