zengm-games / facesjs

A JavaScript library for generating vector-based cartoon faces
https://zengm.com/facesjs/
Apache License 2.0
1.29k stars 99 forks source link

Add in edibility to editor.html for text box #30

Closed tomkennedy22 closed 7 months ago

tomkennedy22 commented 1 year ago

This PR adds in 2 buttons to editor.html, which gives the following functionality:

Draw JSON:

Reset from drawing:


Tests ran:

  1. Input invalid JSON - it throws Alert & resets
  2. Input valid JSON, but invalid value - "Hello" in ear size. It throws an alert
  3. Input valid JSON, but a feature ID that does not exist. It throws an alert and has empty feature
  4. Remove feature - it uses existing face feature

Request for input:


What the buttons look like: image

tomkennedy22 commented 7 months ago

Closing this, as it is mostly included in #35