@spiffcommerce/core 0.10.249 → 0.10.251
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/dist/main.js +2 -2
- package/dist/module.js +2 -2
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -155,6 +155,15 @@ export class UnhandledBehaviorError extends ImplementationError {
|
|
|
155
155
|
export class ParseError extends ImplementationError {
|
|
156
156
|
constructor(message: string);
|
|
157
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* Bounds the offsets for an image to the box, preventing
|
|
160
|
+
* the user from moving the image in a way that wouldn't be intended.
|
|
161
|
+
* @param newOffsets The new intended offsets for the image.
|
|
162
|
+
* @param frameData The current frame information
|
|
163
|
+
* @param borderWidth The width of the border added by the cropper.
|
|
164
|
+
* @param mustCover When true the image sgould be bounded in such a way that it covers the entire frame at all times.
|
|
165
|
+
*/
|
|
166
|
+
export function getBoundedOffsets(newOffsets: FrameOffsets, frameData: FrameData, imageData: PatternImageData, mustCover?: boolean): FrameOffsets;
|
|
158
167
|
export class FrameService {
|
|
159
168
|
minZoomScale: number;
|
|
160
169
|
maxZoomScale: number;
|