Add kclVersion as a field of the setting attribute (#6689)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
@no_std
|
||||
@settings(defaultLengthUnit = mm)
|
||||
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
|
||||
|
||||
import Point2d from "std::types"
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
@no_std
|
||||
@settings(defaultLengthUnit = mm)
|
||||
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
|
||||
|
||||
import Face from "std::types"
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
@no_std
|
||||
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
|
||||
|
||||
export ZERO = 0
|
||||
export QUARTER_TURN = 90deg
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
@no_std
|
||||
@settings(defaultLengthUnit = mm)
|
||||
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
|
||||
|
||||
/// Any value.
|
||||
@(impl = primitive)
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user