Closed kenchris closed 5 years ago
Nice! It feels like the attribute should be the source of truth, as this matches HTML behaviour.
So you mean to ignore the property value if attribute is set? I can make that change. Or did you want setting the property to reflect to the attribute?
As in setting the property sets the attribute. Reading the property reads from the attribute (and coverts the type). Eg https://github.com/GoogleChromeLabs/two-up/blob/master/lib/two-up.ts#L120
As we are storing in attributes now, I added caching to avoid the "expensive" conversion as the value is checked in _updateTransform
LGTM, thanks!
Published as 1.1.0.
This allows to get a
.minScale
property or configure it declaratively using an attribute like@PaulKinlan
If I generate the dist, the resulting .mjs file has wrong eol's (^M all over)