Skip to content

Refactor js #17

Open
Open

Description

@thumbnail

refactoring svgbuilder.js should use classes in order to remove more duplication.
we should also refactor main.js to make the navigation clearer.

Activity

  1. hampterhub commented on Oct 9, 2018

    @hampterhub
    Contributor

    agreed, it can be improved a lot and there is stuff like the animationRef that can be removed. not sure about classes, if you still want to implement IE then best we can do are prototypes or modules.

    If IE isnt an issue then the only thing i have to comment on would be that i think the specific animation functions wont fit well as a class but maybe we can abstract it to a set of instructions like the svgblueprint

  2. thumbnail commented on Oct 9, 2018

    @thumbnail
    MemberAuthor

    Since we add browserify / babelify in #14, it gets transpiled to es2015 anyway, so we can use (most of) the features afaik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions