Richer scene cues: full text styling (direction/effect/font/size/color) and
image size/position, plus a redesigned scene editor UI Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
144aaaa233
commit
8db2578eba
3 files changed
+161
-66
No files matched your search
+9
-2
@@ -367,8 +367,15 @@ djv.onControl(async (m) => {
|
||||
case 'trackVideoFit': trackVideo.style.objectFit = m.value; break;
|
||||
|
||||
case 'sceneImage':
|
||||
if (m.path) { sceneImage.src = toFileURL(m.path); sceneImage.classList.add('show'); hideHint(); }
|
||||
else { sceneImage.classList.remove('show'); sceneImage.removeAttribute('src'); }
|
||||
if (m.path) {
|
||||
sceneImage.src = toFileURL(m.path);
|
||||
const s = m.size || 60;
|
||||
sceneImage.style.maxWidth = s + 'vw';
|
||||
sceneImage.style.maxHeight = s + 'vh';
|
||||
sceneImage.style.left = (m.x != null ? m.x : 50) + '%';
|
||||
sceneImage.style.top = (m.y != null ? m.y : 50) + '%';
|
||||
sceneImage.classList.add('show'); hideHint();
|
||||
} else { sceneImage.classList.remove('show'); sceneImage.removeAttribute('src'); }
|
||||
break;
|
||||
case 'logo': setLogo(m.index, m.path ? toFileURL(m.path) : ''); break;
|
||||
case 'logoX': logos[m.index].style.left = m.value + '%'; break;
|
||||
|
||||
Reference in new issue
Block a user