Skip to content

Commit 1c704bd

Browse files
authored
dia.attributes: support calc() in transform attribute (#1509)
1 parent 0461ff6 commit 1c704bd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/src/joint/api/dia/attributes/intro.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ <h5 class="calc-header">Notes:</h5>
113113
<p>It can be used with the following attributes:</p>
114114

115115
<ul>
116-
117-
118116
<li>
119117
<a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect">SVGRectElement</a>
120118
<ul>
@@ -194,6 +192,12 @@ <h5 class="calc-header">Notes:</h5>
194192
<li><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dy">dy</a></li>
195193
</ul>
196194
</li>
195+
<li>
196+
Any SVG element (e.g. <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g">SVGGElement</a> )
197+
<ul>
198+
<li><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform">transform</a></li>
199+
</ul>
200+
</li>
197201
</ul>
198202

199203
<h5 class="calc-header">Examples:</h5>

src/dia/attributes/index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ const attributesNS = {
622622

623623
// Support `calc()` with the following SVG attributes
624624
[
625+
'transform', // g
625626
'd', // path
626627
'points', // polyline / polygon
627628
'width', 'height', // rect / image

0 commit comments

Comments
 (0)