Skip to content

Commit

Permalink
Add docs for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchroer committed Mar 10, 2023
1 parent 294fadd commit 74abc4c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.0.2] - 2023-03-10

### Added
- New `center` option for 3D primitives
- New `center()` function for 2D & 3D primitives
- Export to `txt` file support
- Trig functions for `sin`, `cos`, `tan`
- Trig functions for `sin`, `cos`, `tan`, `sqrt`
- Text operations `format` and `formatln`
- Math `ceil` and `floor`
- Escape sequences for `\r`, `\n`, `\"`, `\\`, `\t`

### Changed
- Removed the `center` parameter from 2D primitives. Instead of
`square(center=true)` use `square() ->shape center()`.

### Fixed
- Use system UI scale factor
- Use Create, Modify and Remove events for file watcher
- Order of operations
- Windows builds crashing randomly
- Crash on opencascade operations with invalid arguments
- Files not static linking on win32
- Docs update CI process

## [v0.0.1] - 2023-02-10

Expand Down
5 changes: 5 additions & 0 deletions crates/dslcad/src/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ impl Display for Library {
- `a and b` logical and
- `a or b` logical or
- `not a` logical not
## Properties
- `point.{{x,y,z}}` properties of points
- `2d_value.{{center}}` properties of 2D objects
- `3d_value.{{center}}` properties of 3D objects
"
)?;

Expand Down
5 changes: 5 additions & 0 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ to build parts.
- `a or b` logical or
- `not a` logical not

## Properties
- `point.{x,y,z}` properties of points
- `2d_value.{center}` properties of 2D objects
- `3d_value.{center}` properties of 3D objects

## Math
- `pi()` constant pi
- `rad_to_deg(radians=number)` convert radians to degrees
Expand Down

0 comments on commit 74abc4c

Please sign in to comment.