@reekon-tools/boldr-utils 1.19.4 → 1.19.6

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.
Files changed (27) hide show
  1. package/dist/annotation/canvas/AnnotationCanvasInner.d.ts +2 -0
  2. package/dist/annotation/canvas/AnnotationCanvasInner.js +3 -1
  3. package/dist/annotation/canvas/AnnotationCanvasInner.native.d.ts +2 -0
  4. package/dist/annotation/canvas/AnnotationCanvasInner.native.js +118 -8
  5. package/dist/annotation/canvas/AnnotationCanvasSkia.d.ts +23 -1
  6. package/dist/annotation/canvas/AnnotationCanvasSkia.js +89 -13
  7. package/dist/annotation/canvas/Tool.d.ts +4 -1
  8. package/dist/annotation/canvas/backgroundLayers.d.ts +20 -1
  9. package/dist/annotation/canvas/backgroundLayers.js +94 -3
  10. package/dist/annotation/canvas/elements/BackgroundImageElement.d.ts +6 -3
  11. package/dist/annotation/canvas/elements/BackgroundImageElement.js +16 -8
  12. package/dist/annotation/canvas/elements/BackgroundSvg.d.ts +1 -0
  13. package/dist/annotation/canvas/elements/BackgroundSvg.js +4 -4
  14. package/dist/annotation/canvas/elements/backgroundUrl.d.ts +2 -1
  15. package/dist/annotation/canvas/elements/backgroundUrl.js +15 -2
  16. package/dist/annotation/canvas/fileTileSwap.d.ts +12 -0
  17. package/dist/annotation/canvas/fileTileSwap.js +87 -0
  18. package/dist/annotation/canvas/stampLayout.d.ts +1 -1
  19. package/dist/annotation/canvas/stampLayout.js +10 -8
  20. package/dist/annotation/canvas/tools/selectTool.d.ts +18 -0
  21. package/dist/annotation/canvas/tools/selectTool.js +158 -42
  22. package/dist/annotation/canvas/useAnnotationCanvasState.js +3 -1
  23. package/dist/annotation/data/hooks/useAnnotationCanvasDoc.js +5 -1
  24. package/dist/exports.d.ts +1 -0
  25. package/dist/exports.js +1 -0
  26. package/dist/types/annotation.d.ts +10 -0
  27. package/package.json +1 -1
@@ -135,6 +135,12 @@ export interface BackgroundLayerTransform {
135
135
  scaleX: number;
136
136
  scaleY: number;
137
137
  }
138
+ export interface BackgroundLayerCrop {
139
+ x: number;
140
+ y: number;
141
+ width: number;
142
+ height: number;
143
+ }
138
144
  export interface AnnotationBackgroundLayer {
139
145
  id: AnnotationElementId;
140
146
  storagePath: string;
@@ -143,6 +149,10 @@ export interface AnnotationBackgroundLayer {
143
149
  heightPx: number;
144
150
  format?: 'raster' | 'svg';
145
151
  transform: BackgroundLayerTransform;
152
+ crop?: BackgroundLayerCrop;
153
+ fileId?: string;
154
+ filePath?: string;
155
+ fileGroupId?: string;
146
156
  locked?: boolean;
147
157
  }
148
158
  export interface AnnotationPdfPageSize {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.19.4",
3
+ "version": "1.19.6",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",