Skip to content

Commit 9c4d619

Browse files
committed
Update for 1.5.0 release
1 parent 92fe53f commit 9c4d619

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## [1.5.0](https://github.com/nicklockwood/ShapeScript/releases/tag/1.5.0) (2022-04-29)
2+
3+
- Added support for custom light sources using the `light` command
4+
- Added user-defined functions/commands (previously only blocks could be defined)
5+
- The width and/or height for exported images can now be set on a per-camera basis
6+
- Added `polygon` command for more easily creating regular polygon paths
7+
- The scene background can now be set individually for each camera
8+
- Using `position`, `orientation` and `size` inside a `path` now works again (broken since 1.4.4)
9+
- Using `rnd` command in option default expressions no longer has a knock-on effect on the sequence
10+
- Options can now reference local constants in their default values
11+
- Material brightness logic used in Viewer app is now part of the ShapeScript core
12+
- Using `wrapwidth` or `linespacing` text commands inside an `svgpath` block now raises an error
13+
- Fixed blank screen when scene contains empty `camera` node
14+
- Removed `StatementType.block` case in favor of expression form
15+
- Fixed some bugs in path generation relating to point colors
16+
- The `OSColor` typealias is now private
17+
- Added SVGPath dependency
18+
119
## [1.4.7](https://github.com/nicklockwood/ShapeScript/releases/tag/1.4.7) (2022-04-14)
220

321
- Camera is no longer reset on every reload

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ ShapeScript is packaged as a dynamic framework, which itself depends on the [Euc
3030
To install the ShapeScript framework using CocoaPods, add the following to your Podfile:
3131

3232
```ruby
33-
pod 'ShapeScript', '~> 1.4'
33+
pod 'ShapeScript', '~> 1.5'
3434
```
3535

3636
To install using Carthage, add this to your Cartfile:
3737

3838
```ogdl
39-
github "nicklockwood/ShapeScript" ~> 1.4
39+
github "nicklockwood/ShapeScript" ~> 1.5
4040
```
4141

4242
To install using Swift Package Manager, add this to the `dependencies:` section in your Package.swift file:
4343

4444
```swift
45-
.package(url: "https://github.com/nicklockwood/ShapeScript.git", .upToNextMinor(from: "1.4.0")),
45+
.package(url: "https://github.com/nicklockwood/ShapeScript.git", .upToNextMinor(from: "1.5.0")),
4646
```
4747

4848
The repository also includes the ShapeScript Viewer application, a cut-down version of the ShapeScript app available on the [Mac App Store](https://apps.apple.com/app/id1441135869). It is not currently possible to install or run this app using CocoaPods, Carthage or Swift Package Manager, however you can run it by opening the included Xcode project and selecting the `ShapeScript Viewer` scheme.

ShapeScript.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ShapeScript",
3-
"version": "1.4.7",
3+
"version": "1.5.0",
44
"license": {
55
"type": "MIT",
66
"file": "LICENSE.md"
@@ -10,7 +10,7 @@
1010
"authors": "Nick Lockwood",
1111
"source": {
1212
"git": "https://github.com/nicklockwood/ShapeScript.git",
13-
"tag": "1.4.7"
13+
"tag": "1.5.0"
1414
},
1515
"source_files": ["ShapeScript", "LRUCache/Sources", "SVGPath/Sources"],
1616
"requires_arc": true,

ShapeScript.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@
838838
"$(inherited)",
839839
"@executable_path/../Frameworks",
840840
);
841-
MARKETING_VERSION = 1.4.7;
841+
MARKETING_VERSION = 1.5.0;
842842
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
843843
PRODUCT_MODULE_NAME = Viewer;
844844
PRODUCT_NAME = "ShapeScript Viewer";
@@ -865,7 +865,7 @@
865865
"$(inherited)",
866866
"@executable_path/../Frameworks",
867867
);
868-
MARKETING_VERSION = 1.4.7;
868+
MARKETING_VERSION = 1.5.0;
869869
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
870870
PRODUCT_MODULE_NAME = Viewer;
871871
PRODUCT_NAME = "ShapeScript Viewer";
@@ -1022,7 +1022,7 @@
10221022
"@executable_path/../Frameworks",
10231023
"@loader_path/Frameworks",
10241024
);
1025-
MARKETING_VERSION = 1.4.7;
1025+
MARKETING_VERSION = 1.5.0;
10261026
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
10271027
PRODUCT_NAME = ShapeScript;
10281028
SKIP_INSTALL = YES;
@@ -1052,7 +1052,7 @@
10521052
"@executable_path/../Frameworks",
10531053
"@loader_path/Frameworks",
10541054
);
1055-
MARKETING_VERSION = 1.4.7;
1055+
MARKETING_VERSION = 1.5.0;
10561056
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
10571057
PRODUCT_NAME = ShapeScript;
10581058
SKIP_INSTALL = YES;

ShapeScript/Interpreter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111

1212
// MARK: Public interface
1313

14-
public let version = "1.4.7"
14+
public let version = "1.5.0"
1515

1616
public protocol EvaluationDelegate: AnyObject {
1717
func resolveURL(for path: String) -> URL

0 commit comments

Comments
 (0)