Skip to content

Conversation

edkilday
Copy link
Collaborator

@edkilday edkilday commented Jul 17, 2023

Add property support to ACT for the javascript bindings.

ACT XML method tags have new attrributes.

<class name="Point
  <method name="GetX" propertyget="X" ...>
  <method name="SetX" propertyset="X" ...>

Javascript bindings created

Point.X = 0.0
var x = Point.X

The ACT generator can also output a typescript representation. To generate the bindings add a new implementation tag to the XML interface definition.

<implementations>
	<implementation language="TS" indentation="tabs"/>
</implementations>

Notes for the reviewer.
There are a lot of formatting changes in Source/buildimplementationjs.go so I've separated them in this commit for easier viewing.

@edkilday edkilday changed the title Properties and typescript support for javascript bindings Properties support for javascript bindings and typescript generation Jul 18, 2023
@edkilday edkilday marked this pull request as ready for review July 20, 2023 13:51
@martinweismann martinweismann merged commit 31bdcff into Autodesk:JSImpl Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants