@buoy-gg/image-overlay 3.0.1 → 3.0.2
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.
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ImageOverlayStandalone = ImageOverlayStandalone;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
9
10
|
var _ImageOverlayController = require("../utils/ImageOverlayController");
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -187,7 +188,7 @@ function FreePlacement({
|
|
|
187
188
|
bottomRight: createResizeHandler("bottomRight")
|
|
188
189
|
}), [createResizeHandler]);
|
|
189
190
|
const imageStyle = {
|
|
190
|
-
...
|
|
191
|
+
..._sharedUi.absoluteFill,
|
|
191
192
|
opacity
|
|
192
193
|
};
|
|
193
194
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import React, { useState, useEffect, useRef, useMemo, useCallback } from "react";
|
|
14
14
|
import { View, Text, Image as RNImage, StyleSheet, PanResponder, Dimensions } from "react-native";
|
|
15
|
+
import { absoluteFill } from "@buoy-gg/shared-ui";
|
|
15
16
|
import { ImageOverlayController } from "../utils/ImageOverlayController";
|
|
16
17
|
|
|
17
18
|
// ─── Overlay Image (handles flip transforms) ─────────────────────────────────
|
|
@@ -183,7 +184,7 @@ function FreePlacement({
|
|
|
183
184
|
bottomRight: createResizeHandler("bottomRight")
|
|
184
185
|
}), [createResizeHandler]);
|
|
185
186
|
const imageStyle = {
|
|
186
|
-
...
|
|
187
|
+
...absoluteFill,
|
|
187
188
|
opacity
|
|
188
189
|
};
|
|
189
190
|
return /*#__PURE__*/_jsxs(View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageOverlayStandalone.d.ts","sourceRoot":"","sources":["../../../../src/imageOverlay/components/ImageOverlayStandalone.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageOverlayStandalone.d.ts","sourceRoot":"","sources":["../../../../src/imageOverlay/components/ImageOverlayStandalone.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AAwNjF,wBAAgB,sBAAsB,IAAI,KAAK,CAAC,YAAY,GAAG,IAAI,CAuFlE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/image-overlay",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Image overlay tool for matching design mockups",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@buoy-gg/shared-ui": "3.0.
|
|
29
|
+
"@buoy-gg/shared-ui": "3.0.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "*",
|