-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dashed attributes #41
Comments
And this drills down to some nasty dynamic typings. For example, the following code modifies the <mesh material-opacity={0.5} /> perhaps it is easier to just allow <mesh untyped material-opacity={0.5} /> |
Currently I hacked the custom attribute regex with this: class Setup {
public static function all() {
var NAMELESS = '';
var def = macro class BaseAttr {
@:hxxCustomAttributes(~/(.*-.*)/)
@:optional var $NAMELESS:Dynamic;
}
def.pack = ['react', 'three_fiber'];
def.kind = TDStructure;
Context.defineType(def);
}
} and extending this BaseAttr would do what I needed |
Moved to coconut.react-core |
https://github.com/react-spring/react-three-fiber/blob/master/api.md#piercing-into-nested-properties
<mesh rotation-x={1} />
I vaguely recall that hxx supports dotted attributes e.g.Edit: ignore this, as dot syntax has its own semantics<mesh rotation.x={1}/>
could we exploit that and make it generate dashes?The text was updated successfully, but these errors were encountered: