Skip to content

Commit 2c0473a

Browse files
committed
Update for 1.5.7 release
1 parent a1398d1 commit 2c0473a

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [1.5.7](https://github.com/nicklockwood/ShapeScript/releases/tag/1.5.7) (2022-09-26)
2+
3+
- Fixed bug where a `define` inside a block couldn't refer to `option` value
4+
- Fixed bug when parsing expressions ending in a `not` identifier
5+
- Fixed bug where view unexpectedly jumped to custom camera after reload
6+
- Bumped Euclid to version 0.5.30
7+
- Bumped LRUCache to version 1.0.3
8+
- Bumped SVGPath to version 1.1.1
9+
- Added iOS help pages
10+
111
## [1.5.6](https://github.com/nicklockwood/ShapeScript/releases/tag/1.5.6) (2022-09-06)
212

313
- Added ability to copy the current camera configuration for easy creation of custom cameras

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.5.6",
3+
"version": "1.5.7",
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.5.6"
13+
"tag": "1.5.7"
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
@@ -874,7 +874,7 @@
874874
"$(inherited)",
875875
"@executable_path/../Frameworks",
876876
);
877-
MARKETING_VERSION = 1.5.6;
877+
MARKETING_VERSION = 1.5.7;
878878
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
879879
PRODUCT_MODULE_NAME = Viewer;
880880
PRODUCT_NAME = "ShapeScript Viewer";
@@ -902,7 +902,7 @@
902902
"$(inherited)",
903903
"@executable_path/../Frameworks",
904904
);
905-
MARKETING_VERSION = 1.5.6;
905+
MARKETING_VERSION = 1.5.7;
906906
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
907907
PRODUCT_MODULE_NAME = Viewer;
908908
PRODUCT_NAME = "ShapeScript Viewer";
@@ -1062,7 +1062,7 @@
10621062
"@executable_path/../Frameworks",
10631063
"@loader_path/Frameworks",
10641064
);
1065-
MARKETING_VERSION = 1.5.6;
1065+
MARKETING_VERSION = 1.5.7;
10661066
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
10671067
PRODUCT_NAME = ShapeScript;
10681068
SKIP_INSTALL = YES;
@@ -1093,7 +1093,7 @@
10931093
"@executable_path/../Frameworks",
10941094
"@loader_path/Frameworks",
10951095
);
1096-
MARKETING_VERSION = 1.5.6;
1096+
MARKETING_VERSION = 1.5.7;
10971097
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
10981098
PRODUCT_NAME = ShapeScript;
10991099
SKIP_INSTALL = YES;

ShapeScript/Geometry.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,15 @@ public extension Geometry {
242242
} ?? .empty) { bounds, child in
243243
bounds.formIntersection(child.bounds.transformed(by: child.transform))
244244
}
245+
case .union, .xor, .group:
246+
return Bounds(bounds: children.map {
247+
$0.bounds.transformed(by: $0.transform)
248+
})
245249
case .cone, .cube, .cylinder, .sphere, .path, .mesh,
246-
.lathe, .fill, .extrude, .loft,
247-
.union, .xor, .group,
248-
.camera, .light:
249-
return children.reduce(into: type.bounds) { bounds, child in
250-
bounds.formUnion(child.bounds.transformed(by: child.transform))
251-
}
250+
.lathe, .fill, .extrude, .loft:
251+
return type.bounds
252+
case .camera, .light:
253+
return .empty
252254
}
253255
}
254256

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.5.6"
14+
public let version = "1.5.7"
1515

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

ShapeScriptTests/MetadataTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ class MetadataTests: XCTestCase {
392392
XCTFail("Help directory for \(shapeScriptVersion) not found")
393393
return
394394
}
395+
let attrs = try fm.attributesOfItem(atPath: outputDirectory.path)
396+
if attrs[.type] as? FileAttributeType == .typeSymbolicLink {
397+
return
398+
}
395399
try? fm.removeItem(at: outputDirectory)
396400
for subdir in ["mac", "ios"] {
397401
let helpDir = helpDirectory.appendingPathComponent(subdir)

docs/1.5.7

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.5.6

0 commit comments

Comments
 (0)