Peter StJ
2016-10-22 21:06:57 UTC
So I am writing some code in dart and from time to time there are
properties that dart is missing on certain objects. Current example is
'strokeDashoffset' and 'strokeDasharray' in the SVG's CSSStyleDeclaration
object.
Of course I am interested on how to fix this one, but in more general
sense: are there any ways to declare additional properties on an object for
Dart to know about and use (and correctly compile to JS) similar to how we
deal with it in Closure/TypeScript (i.e. externs/definitions/declares
etc). I am aware of the JS interop options, but this is really not the
case, I am actually trying to use something that is there and is part of
the platform and should get compiled to correct properties in JS.
Thanks.
properties that dart is missing on certain objects. Current example is
'strokeDashoffset' and 'strokeDasharray' in the SVG's CSSStyleDeclaration
object.
Of course I am interested on how to fix this one, but in more general
sense: are there any ways to declare additional properties on an object for
Dart to know about and use (and correctly compile to JS) similar to how we
deal with it in Closure/TypeScript (i.e. externs/definitions/declares
etc). I am aware of the JS interop options, but this is really not the
case, I am actually trying to use something that is there and is part of
the platform and should get compiled to correct properties in JS.
Thanks.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.