When Grid includes "axis:x" and axis:y" as traits, the axis properties get included twice with suffixes X and Y:
// Grid Properties
{
detailX: number
crossedX: boolean
detailY: number
crossedY: boolean
}
Previous work
When I originally added Typescript definitions for mathbox (https://github.com/unconed/mathbox/commit/0665621b4318780d96dd9a73e45a38931fb06569) I did not understand how the above suffix aliasing worked, so I just skipped those properties. Consequently, <grid> and a bunch of other node types were missing a bunch of properties. This PR adds them in.
This PR adds types for more of the node properties. I think I have them all now.
Background: traits and properties
Mathbox nodes get their properties from "traits". For example,
<grid />
has the following 16 traits:Each trait defines a bunch of properties. For example, the
axis
trait defines two properties:Aliasing
When
Grid
includes"axis:x"
andaxis:y"
as traits, the axis properties get included twice with suffixes X and Y:Previous work
When I originally added Typescript definitions for mathbox (https://github.com/unconed/mathbox/commit/0665621b4318780d96dd9a73e45a38931fb06569) I did not understand how the above suffix aliasing worked, so I just skipped those properties. Consequently,
<grid>
and a bunch of other node types were missing a bunch of properties. This PR adds them in.