<?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 Re: Extend Graphics class in Typescript using ES modules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101349#M74762</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;Thanks for the info. I manage to find the right path.&lt;/P&gt;&lt;P&gt;Now in the following code is it possible to change the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;properties&lt;/SPAN&gt;&lt;SPAN&gt;?:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;any to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;properties:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SegmentGraphicProperties&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As the start point and end point are required?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;import&amp;nbsp;Graphic&amp;nbsp;from&amp;nbsp;"@arcgis/core/Graphic"; import&amp;nbsp;{&amp;nbsp;subclass,&amp;nbsp;property&amp;nbsp;}&amp;nbsp;from&amp;nbsp;"@arcgis/core/core/accessorSupport/decorators"; import&amp;nbsp;GraphicsLayer&amp;nbsp;from&amp;nbsp;"@arcgis/core/layers/GraphicsLayer"; @subclass("esri.core.Graphic.SegmentGraphic") export&amp;nbsp;class&amp;nbsp;SegmentGraphic&amp;nbsp;extends&amp;nbsp;Graphic{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@property() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startPoint:&amp;nbsp;GraphicsLayer; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@property() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endPoint:&amp;nbsp;Graphic; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;constructor(properties?:&amp;nbsp;any)&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;super(properties); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.startPoint&amp;nbsp;=&amp;nbsp;properties.startPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.endPoint&amp;nbsp;=&amp;nbsp;properties.endPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} }&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 17:21:25 GMT</pubDate>
    <dc:creator>Alexandre-Notos</dc:creator>
    <dc:date>2021-09-23T17:21:25Z</dc:date>
    <item>
      <title>Extend Graphics class in Typescript using ES modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101335#M74760</link>
      <description>&lt;P&gt;I want to create a new graphic type how ever the lastest&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/implementing-accessor/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/implementing-accessor/&lt;/A&gt;&amp;nbsp;instruction can't be follow because there is not ES module version.&lt;/P&gt;&lt;P&gt;Is there any guidance on how to proceed?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 16:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101335#M74760</guid>
      <dc:creator>Alexandre-Notos</dc:creator>
      <dc:date>2021-09-23T16:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Graphics class in Typescript using ES modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101340#M74761</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/516360"&gt;@Alexandre-Notos&lt;/a&gt;, the API functionality is exactly the same and for the TypeScript code you'll need to swap out AMD module paths with ES modules paths and turn the commonjs require statements into import statements.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101340#M74761</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-09-23T17:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extend Graphics class in Typescript using ES modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101349#M74762</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;Thanks for the info. I manage to find the right path.&lt;/P&gt;&lt;P&gt;Now in the following code is it possible to change the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;properties&lt;/SPAN&gt;&lt;SPAN&gt;?:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;any to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;properties:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SegmentGraphicProperties&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As the start point and end point are required?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;import&amp;nbsp;Graphic&amp;nbsp;from&amp;nbsp;"@arcgis/core/Graphic"; import&amp;nbsp;{&amp;nbsp;subclass,&amp;nbsp;property&amp;nbsp;}&amp;nbsp;from&amp;nbsp;"@arcgis/core/core/accessorSupport/decorators"; import&amp;nbsp;GraphicsLayer&amp;nbsp;from&amp;nbsp;"@arcgis/core/layers/GraphicsLayer"; @subclass("esri.core.Graphic.SegmentGraphic") export&amp;nbsp;class&amp;nbsp;SegmentGraphic&amp;nbsp;extends&amp;nbsp;Graphic{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@property() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startPoint:&amp;nbsp;GraphicsLayer; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@property() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endPoint:&amp;nbsp;Graphic; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;constructor(properties?:&amp;nbsp;any)&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;super(properties); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.startPoint&amp;nbsp;=&amp;nbsp;properties.startPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.endPoint&amp;nbsp;=&amp;nbsp;properties.endPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} }&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extend-graphics-class-in-typescript-using-es/m-p/1101349#M74762</guid>
      <dc:creator>Alexandre-Notos</dc:creator>
      <dc:date>2021-09-23T17:21:25Z</dc:date>
    </item>
  </channel>
</rss>

