Open runemadsen opened 2 years ago
Name | Link |
---|---|
Latest commit | de8afea0d5a75120f9fd183e3c7e4e45c631ba59 |
Latest deploy log | https://app.netlify.com/sites/dsi-logo-maker/deploys/6343dda2ac917b0008edb90c |
Deploy Preview | https://deploy-preview-156--dsi-logo-maker.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Great! After thinking about it, I'm not a big fan of the customAnimation
mode name. I'm wondering if we can rename it to something that makes more sense, but I don't really have a good idea yet. static
and animation
still seem good to me.
Great! After thinking about it, I'm not a big fan of the
customAnimation
mode name. I'm wondering if we can rename it to something that makes more sense, but I don't really have a good idea yet.static
andanimation
still seem good to me.
Since they are strings anyways, I was thinking on going with "custom-animation"
really, but yeah maybe it's not great. I'm honestly fine with it. Maybe a separate setting only applicable for "animated"
, that ahs values:"frame-based"
and "event-based"
, so we start this animation basis language in the code too.
Thanks @fdoflorenzano! I think both of those could work. If we keep the single mode
setting, then perhaps static
, animation
and animation-custom
?
I updated #152 with a draft implementation showing the new engine behavior for the two new animation modes.
A few observations:
animated?: booelan
to mode?: 'static' | 'animation' | 'animation-custom'
is a breaking change to existing design functions
checkDeprecations
method to the mechanic core, that can run on initialization and check for any deprecated settings being present?animation
functions. But I think we can even go one step further here and say, that they don't even need to call done
but can just return whenever they are done drawing.@fdoflorenzano I have edited the doc and I think it's ready for you to take a look :)
@runemadsen I like it! A couple of thoughts came to mind:
drawLoop
helper, right? Maybe adding an example of that too would help exemplify the flexibility aspect of the setup.
You can read a nicer layout by visiting the markdown file directly.