diff --git a/src/pixelflow/api/static/index.html b/src/pixelflow/api/static/index.html index 43c9084..15c42f4 100644 --- a/src/pixelflow/api/static/index.html +++ b/src/pixelflow/api/static/index.html @@ -1788,6 +1788,122 @@ border-color: #ffffff; } + /* Interactive On-Canvas Transform Gizmo & Drag Handles */ + .transform-gizmo { + position: absolute; + z-index: 36; + box-sizing: border-box; + pointer-events: none; + user-select: none; + } + + .gizmo-bounds { + position: absolute; + inset: 0; + border: 1.5px dashed var(--pf-accent, #38bdf8); + background: rgba(56, 189, 248, 0.08); + box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 0 8px rgba(56, 189, 248, 0.08); + border-radius: 4px; + cursor: grab; + pointer-events: auto; + transition: background 0.12s ease, border-color 0.12s ease; + } + + .gizmo-bounds:hover { + background: rgba(56, 189, 248, 0.15); + border-color: #7dd3fc; + } + + .gizmo-bounds:active, + .transform-gizmo.dragging .gizmo-bounds { + cursor: grabbing; + background: rgba(56, 189, 248, 0.24); + border-color: #ffffff; + box-shadow: 0 0 16px rgba(56, 189, 248, 0.55); + } + + .gizmo-handle { + position: absolute; + width: 11px; + height: 11px; + background: #ffffff; + border: 2px solid var(--pf-accent, #38bdf8); + border-radius: 2px; + box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); + pointer-events: auto; + z-index: 38; + box-sizing: border-box; + transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease; + } + + .gizmo-handle:hover, + .transform-gizmo.resizing .gizmo-handle { + background: var(--pf-accent, #38bdf8); + border-color: #ffffff; + transform: translate(-50%, -50%) scale(1.35) !important; + box-shadow: 0 0 10px rgba(56, 189, 248, 0.85); + } + + .gizmo-handle-nw { + top: 0; + left: 0; + transform: translate(-50%, -50%); + cursor: nwse-resize; + } + + .gizmo-handle-ne { + top: 0; + left: 100%; + transform: translate(-50%, -50%); + cursor: nesw-resize; + } + + .gizmo-handle-se { + top: 100%; + left: 100%; + transform: translate(-50%, -50%); + cursor: nwse-resize; + } + + .gizmo-handle-sw { + top: 100%; + left: 0; + transform: translate(-50%, -50%); + cursor: nesw-resize; + } + + .gizmo-badge { + position: absolute; + top: -26px; + left: 0; + display: flex; + align-items: center; + gap: 6px; + padding: 2px 7px; + border-radius: 4px; + background: rgba(5, 7, 10, 0.88); + border: 1px solid rgba(56, 189, 248, 0.4); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); + pointer-events: none; + white-space: nowrap; + } + + #gizmoTitle { + font-size: 10px; + font-weight: 700; + color: var(--pf-accent, #38bdf8); + text-transform: uppercase; + letter-spacing: 0.5px; + } + + #gizmoCoords { + font-size: 10px; + font-family: var(--pf-font-mono, monospace); + color: #94a3b8; + } + /* Modallar */ .pf-modal { display: none; @@ -2390,6 +2506,19 @@
+ + +