Repository navigation
贴纸和形状 - #85
Open
devin-ai-integration[bot] wants to merge 4 commits into
Open
贴纸和形状#85devin-ai-integration[bot] wants to merge 4 commits into
devin-ai-integration[bot] wants to merge 4 commits into
Conversation
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Co-Authored-By: zhangxiang chen <x007xyzabc@gmail.com>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 3 findings. Devin automatically fixed all 3 findings.
Fixed by Devin (3)
- Stickers tab opens clip attributes — MobilePanels now renders StickerPanel for the sticker tab.
- Overlap error leaves a sticker behind — add_sticker applies duration/x/y in the insert fit callback, so the track is chosen for the final length and nothing is left behind.
- Sticker insertion takes two undos — Same fix: insertion is a single history step; e2e checks one undo removes the sticker.
Open
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
叠在 #84 上。左侧菜单新增「贴纸」面板:16 个内置彩色贴纸和 11 种形状(矩形、圆角矩形、圆形、三角形、菱形、六边形、星形、心形、对话框、箭头、直线),形状可选颜色、填充或描边。
贴纸/形状不新增轨道类型,而是复用图片片段:
因此预览、MP4 导出、剪映草稿、工程保存、关键帧/动画等都直接沿用图片片段逻辑。代价是形状加到时间轴后不能再改颜色,需要重新添加。
insertAsset新增可选fit回调,在addTrack前调整图片尺寸。add_sticker({ name, color?, outline?, start?, duration?, x?, y? }),未知名称或非法 CSS 颜色会报错。src/data/stickers.test.ts(SVG 合法、颜色/描边、转义);e2e/mcp.spec.ts覆盖 MCP 添加、面板点击添加、MP4 导出和剪映草稿中的 photo 素材。Link to Devin session: https://app.devin.ai/sessions/a882af08b80c444280600c6cdc988c2e
Open in Devin Desktop: https://app.devin.ai/desktop/session/a882af08b80c444280600c6cdc988c2e?variant=devin
Requested by: @x007xyz
🟢 Devin fixed all 3 findings · Follow Devin's work