Skip to content

Commit

Permalink
dia.attributes: support calc() in transform attribute (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus committed Aug 18, 2021
1 parent 0461ff6 commit 1c704bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/src/joint/api/dia/attributes/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ <h5 class="calc-header">Notes:</h5>
<p>It can be used with the following attributes:</p>

<ul>


<li>
<a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect">SVGRectElement</a>
<ul>
Expand Down Expand Up @@ -194,6 +192,12 @@ <h5 class="calc-header">Notes:</h5>
<li><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dy">dy</a></li>
</ul>
</li>
<li>
Any SVG element (e.g. <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g">SVGGElement</a> )
<ul>
<li><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform">transform</a></li>
</ul>
</li>
</ul>

<h5 class="calc-header">Examples:</h5>
Expand Down
1 change: 1 addition & 0 deletions src/dia/attributes/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ const attributesNS = {

// Support `calc()` with the following SVG attributes
[
'transform', // g
'd', // path
'points', // polyline / polygon
'width', 'height', // rect / image
Expand Down

0 comments on commit 1c704bd

Please sign in to comment.