Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Error with path when render Shape as svg #101

Description

@rosskhanas

I try to render svg but have an error when rendering Shape.

js/app.js:2271 Error: <path> attribute d: Expected moveto path command ('M' or 'm'), "[object Object]".

I've made a fork of one project to show the issue:
https://github.com/rtkhanas/hex-demo

All I did is - I added a single line to render on svg instead of canvas in src/js/index.js:

require('art/modes/current').setCurrent(require('art/modes/svg'));

I suspect that the problem is not with react-art but with art project, but not sure yet.

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