bluefishjs / bluefish-archive

A SolidJS diagramming framework
https://bluefishjs.org
MIT License
75 stars 4 forks source link

Setting numeric properties as strings results in position calculation using string concatenation #63

Open vezwork opened 8 months ago

vezwork commented 8 months ago
Typescript apparently does not let you make this mistake, but when using Javascript you can. An example fix: modify `mergeProps` to convert string values to numeric values if the default value is numeric; or throw an error if the prop value's type is incorrect.
Bluefish CodeResult
```jsx ``` image