Skip to content

Commit

Permalink
Add type to KclValue::Number
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Cameron <nrc@ncameron.org>
  • Loading branch information
nrc committed Feb 13, 2025
1 parent e27e9ec commit 10cb4df
Show file tree
Hide file tree
Showing 89 changed files with 7,105 additions and 1,167 deletions.
5,300 changes: 4,244 additions & 1,056 deletions docs/kcl/std.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/kcl/types/KclValue.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Any KCL value.
|----------|------|-------------|----------|
| `type` |enum: `Number`| | No |
| `value` |`number`| | No |
| `ty` |[`NumericType`](/docs/kcl/types/NumericType)| Any KCL value. | No |
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |


Expand Down
250 changes: 250 additions & 0 deletions docs/kcl/types/NumericType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
---
title: "NumericType"
excerpt: ""
layout: manual
---






**This schema accepts exactly one of the following:**


**Type:** `object`



**This schema accepts exactly one of the following:**


**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Count`| | No |


----

**Type:** `object`



**This schema accepts exactly one of the following:**


**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Mm`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Cm`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `M`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Inches`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Feet`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Yards`| | No |


----


## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Length`| | No |


----

**Type:** `object`



**This schema accepts exactly one of the following:**


**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Degrees`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Radians`| | No |


----


## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Angle`| | No |


----


## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Known`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Default`| | No |
| `len` |[`UnitLen`](/docs/kcl/types/UnitLen)| | No |
| `angle` |[`UnitAngle`](/docs/kcl/types/UnitAngle)| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Unknown`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Any`| | No |


----




47 changes: 47 additions & 0 deletions docs/kcl/types/UnitAngle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: "UnitAngle"
excerpt: ""
layout: manual
---






**This schema accepts exactly one of the following:**


**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Degrees`| | No |


----

**Type:** `object`





## Properties

| Property | Type | Description | Required |
|----------|------|-------------|----------|
| `type` |enum: `Radians`| | No |


----




Loading

0 comments on commit 10cb4df

Please sign in to comment.