@tobyt/expo-pdf-markup 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tobyt/expo-pdf-markup
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed an issue on iOS, where after selecting a different colour, the previous colour would still be used for the live stroke.
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
@@ -11,7 +11,11 @@ class ExpoPdfMarkupView: ExpoView, UIGestureRecognizerDelegate {
11
11
  private var currentSource: String?
12
12
  private var currentAnnotationsJSON: String?
13
13
  private var currentMode: String = "none"
14
- var annotationColor: String = "#FF0000"
14
+ var annotationColor: String = "#FF0000" {
15
+ didSet {
16
+ inkShapeLayer?.strokeColor = (AnnotationSerializer.colorFromHex(annotationColor) ?? .red).cgColor
17
+ }
18
+ }
15
19
  var annotationLineWidth: CGFloat = 2.0
16
20
 
17
21
  private var inkPanGesture: UIPanGestureRecognizer?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tobyt/expo-pdf-markup",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "An Expo module for displaying and annotating PDFs",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",