zuljaman-banner-components 1.0.17 → 1.0.18
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.
|
@@ -279,7 +279,7 @@ const BannerRenderer = ({ bannerStyle, copies = [], bannerSubstyle = 1, logoUrl,
|
|
|
279
279
|
const logoComponent = ((0, jsx_runtime_1.jsx)(shared_1.DraggableElement, { enabled: draggableMode, position: { x: logoTranslateX, y: logoTranslateY }, rotation: logoRotation, width: logoWidth, scale: sizeMultiplier, elementId: "logo", isSelected: selectedElement === "logo", onPositionChange: onLogoPositionChange, onRotationChange: onLogoRotationChange, onWidthChange: onLogoWidthChange, onSelect: (id) => setSelectedElement(id), onDeselect: () => setSelectedElement(null), onRotationSnap: handleRotationSnap, children: (0, jsx_runtime_1.jsx)("div", { ref: logoRef, className: "relative", style: {
|
|
280
280
|
width: logoWidth ? `${logoWidth}px` : `${defaults_1.DEFAULT_LOGO_SIZE_REM * logoSizeMultiplier}rem`,
|
|
281
281
|
height: logoWidth ? `${logoWidth}px` : `${defaults_1.DEFAULT_LOGO_SIZE_REM * logoSizeMultiplier}rem`,
|
|
282
|
-
transform
|
|
282
|
+
// Remove transform - DraggableElement already handles positioning
|
|
283
283
|
}, children: logoUrl && ((0, jsx_runtime_1.jsx)(ImageComponent, { src: logoUrl, alt: "Logo", width: 256, height: 256, className: "object-contain absolute inset-0 w-full h-full", style: { objectFit: "contain", pointerEvents: "none" } })) }) }));
|
|
284
284
|
// Function to render a copy component by styleSlot
|
|
285
285
|
// Function to render a copy component with absolute positioning
|
|
@@ -389,7 +389,7 @@ const BannerRenderer = ({ bannerStyle, copies = [], bannerSubstyle = 1, logoUrl,
|
|
|
389
389
|
else if (styleSlot === 1)
|
|
390
390
|
copyRefs.current[1] = el;
|
|
391
391
|
}, style: {
|
|
392
|
-
transform
|
|
392
|
+
// Remove transform - DraggableElement already handles positioning and rotation
|
|
393
393
|
width: '100%',
|
|
394
394
|
// Hide copy if hidden property is true
|
|
395
395
|
display: copy.hidden ? 'none' : undefined,
|
|
@@ -372,7 +372,7 @@ const DraggableElement = ({ enabled, position, rotation, width, scale, elementId
|
|
|
372
372
|
transition: isDragging || isRotating || isResizing ? "none" : "opacity 0.2s ease",
|
|
373
373
|
display: "inline-block",
|
|
374
374
|
position: "relative",
|
|
375
|
-
transform:
|
|
375
|
+
transform: `translate(${currentPosition.x}px, ${currentPosition.y}px)`,
|
|
376
376
|
}, children: (0, jsx_runtime_1.jsxs)("div", { style: {
|
|
377
377
|
transform: centerOrigin ? 'translate(-50%, -50%)' : undefined,
|
|
378
378
|
position: "relative"
|