Skip to content

Wire up global stylesΒ #12

@dmjio

Description

@dmjio

Per yesterday's latest PAPI drop, consider including global style objects loaded before the application begins (similar to what miso does here).

We should abstract out src/Miso/Internal.hs:renderStyles into our rendering layer abstraction (context.ts) and use the below functions as the implementation for native. This plays a role with adding @keyframes in #3

  function __CreateStyleObject(styleObject: Object): StyleObjectRef;
  function __SetStyleObject(elementRef: ElementRef, styleObjects: Array<Object>): void;
  function __UpdateStyleObject(styleObjectRef: StyleObjectRef, styleObject: Object): void;
  function __ElementAnimate(node: ElementRef, animateArgs: Object): void;

miso currently supports inline styles via the __Inline* style family of PAPI functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions