The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
feat(phone): Mask is a tool of its own, a sheet of shape tiles and sliders (#239)
Jareerc5e50cd232f1
diff --git a/src/crates/concat/locales/ar.json b/src/crates/concat/locales/ar.jsonindex 1b304d00..67035933 100644--- a/src/crates/concat/locales/ar.json+++ b/src/crates/concat/locales/ar.json@@ -298,6 +298,8 @@"mask.invert": "عكس","mask.linear": "خطي","mask.mirror": "مرآة",+ "mask.phoneDrag": "اسحب الشكل على الصورة لتحريكه، واسحب مقابضه لتغيير حجمه وتدويره وتنعيم حوافه.",+ "mask.phoneHint": "اختر شكلًا للإبقاء على جزء من الصورة.","mask.rectangle": "مستطيل","mask.roundness": "استدارة الزوايا","mask.row": "القناع · {0}",diff --git a/src/crates/concat/locales/bn.json b/src/crates/concat/locales/bn.jsonindex 918df9df..489f44c3 100644--- a/src/crates/concat/locales/bn.json+++ b/src/crates/concat/locales/bn.json@@ -298,6 +298,8 @@"mask.invert": "উল্টে দিন","mask.linear": "লিনিয়ার","mask.mirror": "মিরর",+ "mask.phoneDrag": "সরাতে ছবির উপর আকারটি টানুন; আকার বদলাতে, ঘোরাতে ও কিনারা নরম করতে এর হ্যান্ডেলগুলি টানুন।",+ "mask.phoneHint": "ছবির একটি অংশ রাখতে একটি আকার বেছে নিন।","mask.rectangle": "আয়তক্ষেত্র","mask.roundness": "কোণের গোলাকারতা","mask.row": "মাস্ক · {0}",diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.jsonindex fe9ee5ae..609caef9 100644--- a/src/crates/concat/locales/de.json+++ b/src/crates/concat/locales/de.json@@ -298,6 +298,8 @@"mask.invert": "Umkehren","mask.linear": "Linear","mask.mirror": "Spiegel",+ "mask.phoneDrag": "Zieh die Form auf dem Bild, um sie zu verschieben, und ihre Griffe, um sie zu skalieren, zu drehen und ihre Kante weich zu machen.",+ "mask.phoneHint": "Wähle eine Form, um einen Teil des Bildes zu behalten.","mask.rectangle": "Rechteck","mask.roundness": "Rundung","mask.row": "Maske · {0}",diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.jsonindex 605f4232..72becba8 100644--- a/src/crates/concat/locales/en.json+++ b/src/crates/concat/locales/en.json@@ -298,6 +298,8 @@"mask.invert": "Invert","mask.linear": "Linear","mask.mirror": "Mirror",+ "mask.phoneDrag": "Drag the shape on the picture to move it, and its handles to size, turn and soften it.",+ "mask.phoneHint": "Pick a shape to keep part of the picture.","mask.rectangle": "Rectangle","mask.roundness": "Roundness","mask.row": "Mask · {0}",diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.jsonindex b3211f71..4edb7ee4 100644--- a/src/crates/concat/locales/es.json+++ b/src/crates/concat/locales/es.json@@ -298,6 +298,8 @@"mask.invert": "Invertir","mask.linear": "Lineal","mask.mirror": "Espejo",+ "mask.phoneDrag": "Arrastra la forma sobre la imagen para moverla, y sus controles para cambiar su tamaño, girarla y difuminarla.",+ "mask.phoneHint": "Elige una forma para conservar parte de la imagen.","mask.rectangle": "Rectángulo","mask.roundness": "Redondeo","mask.row": "Máscara · {0}",diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.jsonindex 20537727..71261ffe 100644--- a/src/crates/concat/locales/fa.json+++ b/src/crates/concat/locales/fa.json@@ -298,6 +298,8 @@"mask.invert": "وارونه","mask.linear": "خطی","mask.mirror": "آینه",+ "mask.phoneDrag": "شکل را روی تصویر بکشید تا جابهجا شود، و دستگیرههایش را بکشید تا اندازه، چرخش و نرمی لبهاش تغییر کند.",+ "mask.phoneHint": "شکلی را انتخاب کنید تا بخشی از تصویر بماند.","mask.rectangle": "مستطیل","mask.roundness": "گردی گوشهها","mask.row": "ماسک · {0}",diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.jsonindex a86ecc89..d9c0f5dc 100644--- a/src/crates/concat/locales/fr.json+++ b/src/crates/concat/locales/fr.json@@ -298,6 +298,8 @@"mask.invert": "Inverser","mask.linear": "Linéaire","mask.mirror": "Miroir",+ "mask.phoneDrag": "Faites glisser la forme sur l'image pour la déplacer, et ses poignées pour la redimensionner, la faire pivoter et adoucir son contour.",+ "mask.phoneHint": "Choisissez une forme pour ne garder qu'une partie de l'image.","mask.rectangle": "Rectangle","mask.roundness": "Arrondi","mask.row": "Masque · {0}",diff --git a/src/crates/concat/locales/he.json b/src/crates/concat/locales/he.jsonindex 56c1453e..29be9a88 100644--- a/src/crates/concat/locales/he.json+++ b/src/crates/concat/locales/he.json@@ -298,6 +298,8 @@"mask.invert": "היפוך","mask.linear": "ליניארי","mask.mirror": "מראה",+ "mask.phoneDrag": "גררו את הצורה על התמונה כדי להזיז אותה, ואת הידיות שלה כדי לשנות גודל, לסובב ולרכך את הקצה.",+ "mask.phoneHint": "בחרו צורה כדי לשמור חלק מהתמונה.","mask.rectangle": "מלבן","mask.roundness": "עיגול פינות","mask.row": "מסכה · {0}",diff --git a/src/crates/concat/locales/hi.json b/src/crates/concat/locales/hi.jsonindex 3ced7fa6..3e709d06 100644--- a/src/crates/concat/locales/hi.json+++ b/src/crates/concat/locales/hi.json@@ -298,6 +298,8 @@"mask.invert": "उलटें","mask.linear": "रैखिक","mask.mirror": "दर्पण",+ "mask.phoneDrag": "आकार को हिलाने के लिए उसे चित्र पर खींचें, और उसका आकार बदलने, घुमाने और किनारा नरम करने के लिए उसके हैंडल खींचें।",+ "mask.phoneHint": "चित्र का कुछ हिस्सा रखने के लिए एक आकार चुनें।","mask.rectangle": "आयत","mask.roundness": "कोनों की गोलाई","mask.row": "मास्क · {0}",diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.jsonindex f4011ece..7d03a1c4 100644--- a/src/crates/concat/locales/hr.json+++ b/src/crates/concat/locales/hr.json@@ -298,6 +298,8 @@"mask.invert": "Obrni","mask.linear": "Linearna","mask.mirror": "Zrcalo",+ "mask.phoneDrag": "Povucite oblik po slici da ga pomaknete, a njegove ručke da mu promijenite veličinu, zakrenete ga i omekšate rub.",+ "mask.phoneHint": "Odaberite oblik kako biste zadržali dio slike.","mask.rectangle": "Pravokutnik","mask.roundness": "Zaobljenost","mask.row": "Maska · {0}",diff --git a/src/crates/concat/locales/id.json b/src/crates/concat/locales/id.jsonindex 5ed74784..d4754e3d 100644--- a/src/crates/concat/locales/id.json+++ b/src/crates/concat/locales/id.json@@ -298,6 +298,8 @@"mask.invert": "Balik","mask.linear": "Linier","mask.mirror": "Cermin",+ "mask.phoneDrag": "Seret bentuk di gambar untuk memindahkannya, dan seret pegangannya untuk mengubah ukuran, memutar, dan menghaluskan tepinya.",+ "mask.phoneHint": "Pilih bentuk untuk mempertahankan sebagian gambar.","mask.rectangle": "Persegi panjang","mask.roundness": "Kebulatan sudut","mask.row": "Masker · {0}",diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.jsonindex b979e545..748de4ab 100644--- a/src/crates/concat/locales/it.json+++ b/src/crates/concat/locales/it.json@@ -298,6 +298,8 @@"mask.invert": "Inverti","mask.linear": "Lineare","mask.mirror": "Specchio",+ "mask.phoneDrag": "Trascina la forma sull'immagine per spostarla, e le sue maniglie per ridimensionarla, ruotarla e sfumarne il bordo.",+ "mask.phoneHint": "Scegli una forma per tenere solo una parte dell'immagine.","mask.rectangle": "Rettangolo","mask.roundness": "Arrotondamento","mask.row": "Maschera · {0}",diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.jsonindex 342d4589..b4b14a52 100644--- a/src/crates/concat/locales/ja.json+++ b/src/crates/concat/locales/ja.json@@ -298,6 +298,8 @@"mask.invert": "反転","mask.linear": "リニア","mask.mirror": "ミラー",+ "mask.phoneDrag": "映像の上で形をドラッグすると移動し、ハンドルをドラッグするとサイズ・回転・ぼかしを変えられます。",+ "mask.phoneHint": "形を選ぶと、映像の一部だけを残せます。","mask.rectangle": "長方形","mask.roundness": "角の丸み","mask.row": "マスク · {0}",diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.jsonindex 505cf884..18b26fcc 100644--- a/src/crates/concat/locales/ko.json+++ b/src/crates/concat/locales/ko.json@@ -298,6 +298,8 @@"mask.invert": "반전","mask.linear": "선형","mask.mirror": "미러",+ "mask.phoneDrag": "화면에서 모양을 드래그하면 이동하고, 핸들을 드래그하면 크기, 회전, 페더를 바꿀 수 있습니다.",+ "mask.phoneHint": "모양을 골라 화면의 일부만 남기세요.","mask.rectangle": "직사각형","mask.roundness": "모서리 둥글기","mask.row": "마스크 · {0}",diff --git a/src/crates/concat/locales/nl.json b/src/crates/concat/locales/nl.jsonindex d81c9306..d651867e 100644--- a/src/crates/concat/locales/nl.json+++ b/src/crates/concat/locales/nl.json@@ -298,6 +298,8 @@"mask.invert": "Omkeren","mask.linear": "Lineair","mask.mirror": "Spiegel",+ "mask.phoneDrag": "Sleep de vorm over het beeld om hem te verplaatsen, en zijn grepen om hem te vergroten of verkleinen, te draaien en zijn rand te verzachten.",+ "mask.phoneHint": "Kies een vorm om een deel van het beeld te houden.","mask.rectangle": "Rechthoek","mask.roundness": "Afronding","mask.row": "Masker · {0}",diff --git a/src/crates/concat/locales/pl.json b/src/crates/concat/locales/pl.jsonindex f22e52a8..26c0da36 100644--- a/src/crates/concat/locales/pl.json+++ b/src/crates/concat/locales/pl.json@@ -298,6 +298,8 @@"mask.invert": "Odwróć","mask.linear": "Liniowa","mask.mirror": "Lustro",+ "mask.phoneDrag": "Przeciągnij kształt na obrazie, aby go przesunąć, a jego uchwyty, aby zmienić rozmiar, obrócić go i zmiękczyć krawędź.",+ "mask.phoneHint": "Wybierz kształt, aby zachować część obrazu.","mask.rectangle": "Prostokąt","mask.roundness": "Zaokrąglenie","mask.row": "Maska · {0}",diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.jsonindex 034270de..1667ea29 100644--- a/src/crates/concat/locales/pt-BR.json+++ b/src/crates/concat/locales/pt-BR.json@@ -298,6 +298,8 @@"mask.invert": "Inverter","mask.linear": "Linear","mask.mirror": "Espelho",+ "mask.phoneDrag": "Arraste a forma sobre a imagem para movê-la, e as alças dela para mudar o tamanho, girar e suavizar a borda.",+ "mask.phoneHint": "Escolha uma forma para manter parte da imagem.","mask.rectangle": "Retângulo","mask.roundness": "Arredondamento","mask.row": "Máscara · {0}",diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.jsonindex 2e7e86ae..be46d8c5 100644--- a/src/crates/concat/locales/ru.json+++ b/src/crates/concat/locales/ru.json@@ -298,6 +298,8 @@"mask.invert": "Инвертировать","mask.linear": "Линейная","mask.mirror": "Зеркало",+ "mask.phoneDrag": "Перетащите фигуру по изображению, чтобы сдвинуть её, а её маркеры — чтобы изменить размер, повернуть и растушевать край.",+ "mask.phoneHint": "Выберите фигуру, чтобы оставить часть изображения.","mask.rectangle": "Прямоугольник","mask.roundness": "Скругление","mask.row": "Маска · {0}",diff --git a/src/crates/concat/locales/th.json b/src/crates/concat/locales/th.jsonindex 4aa2be68..e6b6c587 100644--- a/src/crates/concat/locales/th.json+++ b/src/crates/concat/locales/th.json@@ -298,6 +298,8 @@"mask.invert": "กลับด้าน","mask.linear": "เชิงเส้น","mask.mirror": "กระจก",+ "mask.phoneDrag": "ลากรูปทรงบนภาพเพื่อย้าย และลากจุดจับเพื่อปรับขนาด หมุน และเกลี่ยขอบ",+ "mask.phoneHint": "เลือกรูปทรงเพื่อเก็บภาพไว้เพียงบางส่วน","mask.rectangle": "สี่เหลี่ยมผืนผ้า","mask.roundness": "ความโค้งมุม","mask.row": "มาสก์ · {0}",diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.jsonindex 1b627559..b83e46a7 100644--- a/src/crates/concat/locales/tr.json+++ b/src/crates/concat/locales/tr.json@@ -298,6 +298,8 @@"mask.invert": "Ters çevir","mask.linear": "Doğrusal","mask.mirror": "Ayna",+ "mask.phoneDrag": "Taşımak için şekli görüntü üzerinde sürükleyin; boyutlandırmak, döndürmek ve kenarını yumuşatmak için tutamaçlarını sürükleyin.",+ "mask.phoneHint": "Görüntünün bir kısmını tutmak için bir şekil seçin.","mask.rectangle": "Dikdörtgen","mask.roundness": "Köşe yuvarlaklığı","mask.row": "Maske · {0}",diff --git a/src/crates/concat/locales/uk.json b/src/crates/concat/locales/uk.jsonindex 3713262e..ca64c793 100644--- a/src/crates/concat/locales/uk.json+++ b/src/crates/concat/locales/uk.json@@ -298,6 +298,8 @@"mask.invert": "Інвертувати","mask.linear": "Лінійна","mask.mirror": "Дзеркало",+ "mask.phoneDrag": "Перетягніть фігуру по зображенню, щоб посунути її, а її маркери — щоб змінити розмір, повернути й розмити край.",+ "mask.phoneHint": "Виберіть фігуру, щоб залишити частину зображення.","mask.rectangle": "Прямокутник","mask.roundness": "Заокруглення","mask.row": "Маска · {0}",diff --git a/src/crates/concat/locales/ur.json b/src/crates/concat/locales/ur.jsonindex 5ac154ad..317c9db0 100644--- a/src/crates/concat/locales/ur.json+++ b/src/crates/concat/locales/ur.json@@ -298,6 +298,8 @@"mask.invert": "الٹ دیں","mask.linear": "خطی","mask.mirror": "آئینہ",+ "mask.phoneDrag": "شکل کو ہلانے کے لیے اسے تصویر پر گھسیٹیں، اور اس کا سائز بدلنے، گھمانے اور کنارہ نرم کرنے کے لیے اس کے ہینڈل گھسیٹیں۔",+ "mask.phoneHint": "تصویر کا کچھ حصہ رکھنے کے لیے ایک شکل چنیں۔","mask.rectangle": "مستطیل","mask.roundness": "کونوں کی گولائی","mask.row": "ماسک · {0}",diff --git a/src/crates/concat/locales/vi.json b/src/crates/concat/locales/vi.jsonindex 33c4e23f..d0f8a343 100644--- a/src/crates/concat/locales/vi.json+++ b/src/crates/concat/locales/vi.json@@ -298,6 +298,8 @@"mask.invert": "Đảo ngược","mask.linear": "Tuyến tính","mask.mirror": "Gương",+ "mask.phoneDrag": "Kéo hình trên khung hình để di chuyển, và kéo các tay nắm để đổi kích thước, xoay và làm mềm viền.",+ "mask.phoneHint": "Chọn một hình để giữ lại một phần hình ảnh.","mask.rectangle": "Hình chữ nhật","mask.roundness": "Độ bo góc","mask.row": "Mặt nạ · {0}",diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.jsonindex 2e215246..a3d536a1 100644--- a/src/crates/concat/locales/zh-Hans.json+++ b/src/crates/concat/locales/zh-Hans.json@@ -298,6 +298,8 @@"mask.invert": "反转","mask.linear": "线性","mask.mirror": "镜面",+ "mask.phoneDrag": "在画面上拖动形状可移动它,拖动控制点可调整大小、旋转和羽化。",+ "mask.phoneHint": "选择一个形状,只保留画面的一部分。","mask.rectangle": "矩形","mask.roundness": "圆角","mask.row": "蒙版 · {0}",diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.jsonindex 0c94cb91..12fc2732 100644--- a/src/crates/concat/locales/zh-TW.json+++ b/src/crates/concat/locales/zh-TW.json@@ -298,6 +298,8 @@"mask.invert": "反轉","mask.linear": "線性","mask.mirror": "鏡面",+ "mask.phoneDrag": "在畫面上拖曳形狀可移動它,拖曳控制點可調整大小、旋轉和羽化。",+ "mask.phoneHint": "選擇一個形狀,只保留畫面的一部分。","mask.rectangle": "矩形","mask.roundness": "圓角","mask.row": "遮罩 · {0}",diff --git a/src/crates/concat/ui/inspector/clip-inspector.slint b/src/crates/concat/ui/inspector/clip-inspector.slintindex 35589769..9323e310 100644--- a/src/crates/concat/ui/inspector/clip-inspector.slint+++ b/src/crates/concat/ui/inspector/clip-inspector.slint@@ -1030,6 +1030,9 @@ export component VideoPanel inherits VerticalLayout {in property <int> brush-tool;in property <float> brush-size;in property <bool> painting;+ /// Whether the Mask section is here: the phone gives the mask a tool+ /// and a sheet of its own instead.+ in property <bool> mask-section: true;callback set(field: ClipField, value: float);/// A control gesture finished: the accumulated change becomes one command.@@ -1640,7 +1643,8 @@ export component VideoPanel inherits VerticalLayout {// the numbers below place, size, turn and soften it, each keyable.// Drawn on the picture as it is seen, so it moves with the clip; the// monitor shows its outline with grips to drag while this is open.- if root.selected.kind == ClipKind.video || root.selected.kind == ClipKind.image: Section {+ if root.mask-section+ && (root.selected.kind == ClipKind.video || root.selected.kind == ClipKind.image): Section {mask-header := SectionHeader {title: I18n.t("mask.title");collapsible: true;diff --git a/src/crates/concat/ui/phone/editor.slint b/src/crates/concat/ui/phone/editor.slintindex 6baa7141..8d204407 100644--- a/src/crates/concat/ui/phone/editor.slint+++ b/src/crates/concat/ui/phone/editor.slint@@ -7,7 +7,8 @@ import { Fmt } from "../util.slint";import { Glyph, Icon } from "../icons.slint";import { Editor } from "../editor.slint";import { Lanes } from "../timeline/lanes.slint";-import { ClipKind } from "../timeline/model.slint";+import { ClipField, ClipKind, SelectedClipData } from "../timeline/model.slint";+import { Param, ParamFormat, SwitchRow } from "../inspector/controls.slint";import { PreviewPane } from "../workspace/preview-pane.slint";import { ContextMenu } from "../primitives/context-menu.slint";import {@@ -140,6 +141,134 @@ component SheetNote inherits Text {wrap: word-wrap;}+/// The phone's Mask: the shapes as a row of tiles to thumb along, the way+/// every phone editor lays them out, and under it the numbers a finger+/// cannot drag on the monitor - the softness, the turn, a rectangle's+/// corners - and the invert. Where and how big is dragged on the monitor+/// with the grips the stage draws; the sliders for those are the desk's.+component PhoneMaskPanel inherits VerticalLayout {+ in property <SelectedClipData> selected;++ callback set(field: ClipField, value: float);+ callback commit();++ property <int> mask: root.selected.mask;+ property <float> feather: root.selected.mask-feather;+ property <float> turn: root.selected.mask-rotation;+ property <float> roundness: root.selected.mask-roundness;++ function pick(index: int) {+ root.set(ClipField.mask-shape, index);+ root.commit();+ }++ spacing: 6px;++ ToolStrip {+ height: 74px;+ ToolItem {+ glyph: Glyph.close;+ label: I18n.t("common.none");+ current: root.mask < 0;+ clicked => { root.pick(-1); }+ }+ ToolItem {+ glyph: Glyph.mask-linear;+ label: I18n.t("mask.linear");+ current: root.mask == 0;+ clicked => { root.pick(0); }+ }+ ToolItem {+ glyph: Glyph.mask-mirror;+ label: I18n.t("mask.mirror");+ current: root.mask == 1;+ clicked => { root.pick(1); }+ }+ ToolItem {+ glyph: Glyph.mask-circle;+ label: I18n.t("mask.circle");+ current: root.mask == 2;+ clicked => { root.pick(2); }+ }+ ToolItem {+ glyph: Glyph.mask-rectangle;+ label: I18n.t("mask.rectangle");+ current: root.mask == 3;+ clicked => { root.pick(3); }+ }+ ToolItem {+ glyph: Glyph.mask-heart;+ label: I18n.t("mask.heart");+ current: root.mask == 4;+ clicked => { root.pick(4); }+ }+ ToolItem {+ glyph: Glyph.mask-star;+ label: I18n.t("mask.star");+ current: root.mask == 5;+ clicked => { root.pick(5); }+ }+ }++ if root.mask < 0: SheetNote {+ text: I18n.t("mask.phoneHint");+ }++ if root.mask >= 0: SheetNote {+ text: I18n.t("mask.phoneDrag");+ }++ if root.mask >= 0: SwitchRow {+ label: I18n.t("mask.invert");+ checked: root.selected.mask-invert;+ toggled(on) => { root.set(ClipField.mask-invert, on ? 1 : 0); root.commit(); }+ }++ if root.mask >= 0: Param {+ label: I18n.t("clipInspector.feather");+ keyable: true;+ field: ClipField.mask-feather;+ value <=> root.feather;+ minimum: 0;+ maximum: 1;+ step: 0.01;+ default-value: 0;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.mask-feather, v); root.commit(); }+ }++ if root.mask >= 0: Param {+ label: I18n.t("common.rotation");+ keyable: true;+ field: ClipField.mask-rotation;+ value <=> root.turn;+ minimum: -180;+ maximum: 180;+ step: 1;+ default-value: 0;+ fmt: ParamFormat.degrees;+ unit: "°";+ changed(v) => { root.set(ClipField.mask-rotation, v); root.commit(); }+ }++ if root.mask == 3: Param {+ label: I18n.t("mask.roundness");+ keyable: true;+ field: ClipField.mask-roundness;+ value <=> root.roundness;+ minimum: 0;+ maximum: 1;+ step: 0.01;+ default-value: 0;+ fmt: ParamFormat.fraction;+ unit: "%";+ unit-scale: 100;+ changed(v) => { root.set(ClipField.mask-roundness, v); root.commit(); }+ }+}+/// One of the project's facts: the label, then the value against the/// trailing edge.component Fact inherits HorizontalLayout {@@ -260,6 +389,7 @@ export component PhoneEditor inherits Rectangle {: name == "clip-adjust" ? I18n.t("common.adjust"): name == "clip-enhance" ? I18n.t("common.enhance"): name == "clip-layer" ? I18n.t("configPane.filter")+ : name == "clip-mask" ? I18n.t("mask.title"): "";}@@ -843,6 +973,13 @@ export component PhoneEditor inherits Rectangle {current: root.sheet == "clip-audio-effects";clicked => { root.show("clip-audio-effects", true); }}+ // CapCut's Mask, on a sheet of its own.+ if root.is-picture: ToolItem {+ glyph: Glyph.mask-circle;+ label: I18n.t("mask.title");+ current: root.sheet == "clip-mask";+ clicked => { root.show("clip-mask", true); }+ }if root.is-picture: ToolItem {glyph: Glyph.sun;label: I18n.t("common.adjust");@@ -1112,9 +1249,17 @@ export component PhoneEditor inherits Rectangle {if root.sheet == "canvas": PhoneCanvas { own: false; }if root.sheet == "clip-canvas": PhoneCanvas { own: true; }+ if root.sheet == "clip-mask": PhoneMaskPanel {+ selected: Editor.selected-clip;+ set(field, value) => { Editor.clip-set(field, value); }+ commit => { Editor.clip-commit(); }+ }+if root.sheet == "clip-video": VideoPanel {- // Fit, Fill and the background have the Canvas sheet here.+ // Fit, Fill and the background have the Canvas sheet here, and+ // the mask its own tool and sheet.canvas: false;+ mask-section: false;selected: Editor.selected-clip;applied: Editor.applied-visual;params: Editor.visual-params;