dmnsgn/primitive-geometry

Proposal: log a warning if first provided option is not an object

vorg opened this issue · 0 comments

vorg commented

When using with old code that uses parameters instead of options object all functions fail silently as all parameters deconstruct to undefined. This is very hard to debug as all returned data is valid just always contains default mesh.

As those functions are used sparingly (i.e. not every frame usually) consider issuing console.warn('Using parameters is deprecated, please use options object instead') on invalid use to ease transition.