• 欢迎订阅我的Youtube频道
  • 欢迎加入我的电报群

Gojs Adornment position offset adjustment

Uncategorized fennng 7个月前 (12-17) 422次浏览 0个评论

I would like a selection Adornment displayed on the bottom of a node. So I used alignmentFocus: go.Spot.Bottom to achieve my goal. But what I have got is something like this:

The adornment is displayed on the bottom on the node, but inside, then align to the top, is outside. How can I make the adornment outside?
Here is the solution.
Use the following code instead. This code will offset the Adornment by value of 20 along y axis.
alignmentFocus: new go.Spot(go.Spot.Bottom.x, go.Spot.Bottom.y, 0, 20),

Then I got the adornment position correct.


峰享技术 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Gojs Adornment position offset adjustment
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址