More numeric types baby steps (#5388)

* Add units to Paths

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Add some NumericType combination functions

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Fix docs/json/snippets generation from schemas

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-02-20 10:12:37 +13:00
committed by GitHub
parent b2e1d21d45
commit 45707d2974
83 changed files with 40831 additions and 18188 deletions

View File

@ -72,6 +72,7 @@ const newVar = myVar + 1`
type: 'ToPoint',
to: [0, 2],
from: [0, 0],
units: { type: 'Mm' },
__geoMeta: {
sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String),
@ -87,6 +88,7 @@ const newVar = myVar + 1`
type: 'ToPoint',
to: [2, 3],
from: [0, 2],
units: { type: 'Mm' },
tag: null,
__geoMeta: {
sourceRange: [expect.any(Number), expect.any(Number), 0],
@ -97,6 +99,7 @@ const newVar = myVar + 1`
type: 'ToPoint',
to: [5, -1],
from: [2, 3],
units: { type: 'Mm' },
__geoMeta: {
sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String),
@ -165,6 +168,7 @@ const newVar = myVar + 1`
start: {
to: [0, 0],
from: [0, 0],
units: { type: 'Mm' },
tag: null,
__geoMeta: {
id: expect.any(String),
@ -188,6 +192,7 @@ const newVar = myVar + 1`
type: 'ToPoint',
to: [1, 1],
from: [0, 0],
units: { type: 'Mm' },
tag: null,
__geoMeta: {
sourceRange: [expect.any(Number), expect.any(Number), 0],
@ -198,6 +203,7 @@ const newVar = myVar + 1`
type: 'ToPoint',
to: [0, 1],
from: [1, 1],
units: { type: 'Mm' },
__geoMeta: {
sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String),
@ -213,6 +219,7 @@ const newVar = myVar + 1`
type: 'ToPoint',
to: [1, 1],
from: [0, 1],
units: { type: 'Mm' },
tag: null,
__geoMeta: {
sourceRange: [expect.any(Number), expect.any(Number), 0],