Add kclVersion as a field of the setting attribute (#6689)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-05-06 08:44:03 +12:00
committed by GitHub
parent 7ab879a94f
commit cf2e9d4b91
186 changed files with 7478 additions and 6399 deletions

View File

@ -1,5 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm)
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
import Point2d from "std::types"

View File

@ -1,5 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm)
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
// Note that everything in the prelude is treated as exported.

View File

@ -1,5 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm)
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
/// Construct a 2-dimensional circle, of the specified radius, centered at
/// the provided (x, y) origin point.

View File

@ -1,5 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm)
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
import Face from "std::types"

View File

@ -1,4 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
export ZERO = 0
export QUARTER_TURN = 90deg

View File

@ -1,5 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm)
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
/// Any value.
@(impl = primitive)

View File

@ -1,5 +1,5 @@
@no_std
@settings(defaultLengthUnit = mm)
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
/// Convert a number to millimeters from its current units.
export fn toMillimeters(@num: number(mm)): number(mm) {