<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SVG Rotation around Anchor Point in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1568508#M86259</link>
    <description>&lt;P&gt;I've got an SVG I'd like to rotate based on a specific angle, represented in degrees. The SVG in question is a 2D cone (essentially a triangle with a rounded end) that has the apex of the cone at the bottom-middle of the SVG.&lt;BR /&gt;&lt;BR /&gt;My question is around the possibility of rotating the SVG around that apex, or more generally around a specific anchor point on the SVG itself. Is this possible to achieve without a custom trigonometric transformation function?&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2024 18:38:06 GMT</pubDate>
    <dc:creator>AddisonShaw</dc:creator>
    <dc:date>2024-12-13T18:38:06Z</dc:date>
    <item>
      <title>SVG Rotation around Anchor Point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1568508#M86259</link>
      <description>&lt;P&gt;I've got an SVG I'd like to rotate based on a specific angle, represented in degrees. The SVG in question is a 2D cone (essentially a triangle with a rounded end) that has the apex of the cone at the bottom-middle of the SVG.&lt;BR /&gt;&lt;BR /&gt;My question is around the possibility of rotating the SVG around that apex, or more generally around a specific anchor point on the SVG itself. Is this possible to achieve without a custom trigonometric transformation function?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 18:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1568508#M86259</guid>
      <dc:creator>AddisonShaw</dc:creator>
      <dc:date>2024-12-13T18:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: SVG Rotation around Anchor Point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1569522#M86271</link>
      <description>&lt;P&gt;Can you provide a bit more context of what you're trying to achieve as the end result?&lt;BR /&gt;Is this just in general or something you wanting to implement in the context of a map?&lt;BR /&gt;&lt;BR /&gt;For instance if its just for HTML content - you can rotate a svg around an anchor point using css&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://css-tricks.com/transforms-on-svg-elements/" target="_blank"&gt;https://css-tricks.com/transforms-on-svg-elements/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 20:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1569522#M86271</guid>
      <dc:creator>JamesIng</dc:creator>
      <dc:date>2024-12-17T20:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: SVG Rotation around Anchor Point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1569537#M86272</link>
      <description>&lt;P&gt;Ah, yeah I guess I'm missing the ArcGIS specific context. I'm working with PictureMarkerSymbols that have their URL pointed towards a hosted static SVG asset. One thing I could do is to add padding around the cone SVG, so that the apex of the cone is literally in the center of the SVG's view. This would make rotation trivial, but I only worry about that extra padding conflicting with other SVGs since it would then be much larger than it is currently.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 20:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1569537#M86272</guid>
      <dc:creator>AddisonShaw</dc:creator>
      <dc:date>2024-12-17T20:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: SVG Rotation around Anchor Point</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1569557#M86273</link>
      <description>&lt;P&gt;In this scenario you might want to consider using a CIM symbol instead where you can programmatically set the rotate as an arcade expression off a feature.&lt;BR /&gt;&lt;BR /&gt;You can convert existing SVGs into CIM symbols using esri's handy dandy CIM Symbol builder:&lt;BR /&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/upload-symbols-from-svg-in-the-updated-cim-symbol-builder/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/upload-symbols-from-svg-in-the-updated-cim-symbol-builder/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then apply a primitive override based off what your trying to do for offset and rotation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#constructors-summary" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#constructors-summary&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 20:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/svg-rotation-around-anchor-point/m-p/1569557#M86273</guid>
      <dc:creator>JamesIng</dc:creator>
      <dc:date>2024-12-17T20:43:45Z</dc:date>
    </item>
  </channel>
</rss>

