feat: Allow pentagons and hexagons (#53)

Also update all dependencies.
With this PR, one can process all of Joyce's elements through Book IV.

Reviewed-on: #53
Co-authored-by: Glen Whitney <glen@studioinfinity.org>
Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
Glen Whitney 2023-11-30 23:51:59 +00:00 committed by Glen Whitney
parent 29dfc54646
commit b1e480a4be
3 changed files with 64 additions and 63 deletions

View file

@ -886,7 +886,8 @@ classHandler: Record<JoyceClass, ClassHandler> :=
'point'
moreParts[0].push newObj
api.setVisible newObj, false
/triangle|similar|parallelogram|application|quadrilateral|octagon/
///triangle|similar|parallelogram|application|quadrilateral
octagon|pentagon|hexagon///
unless args.subpoints then return
pt .= args.subpoints
if method is 'parallelogram'