WebGAL_Terre
WebGAL_Terre copied to clipboard
Feat drag adjustment
awa
功能说明
添加了预览窗口拖拽调整功能,允许用户通过拖拽实时调整立绘的位置、大小和旋转。
主要改动
- 新增预览窗口拖拽调整开关(设置页面)
- 升级 pixi.js 从 6.5.10 到 8.14.0
- 适配新版 pixi.js API(view → canvas)
- 添加 Switch 组件支持
使用方法
- 在设置中开启"预览窗口调整"
- 在编辑 changeFigure 语句时,预览窗口会显示拖拽控制点
- 拖拽调整后会自动更新代码中的 transform 参数
Summary of Changes
Hello @bysq-2006, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
此拉取请求引入了一项重要的交互式功能,允许用户直接在预览窗口中通过拖拽操作来调整图形元素(如立绘)的位置、缩放和旋转。这一改进旨在提供更直观、高效的视觉编辑体验,并确保所有调整都能实时反映到代码中。为了支持这一功能,项目还进行了核心图形库Pixi.js的重大版本升级和相关API的兼容性调整。
Highlights
- 预览窗口拖拽调整功能: 新增了预览窗口拖拽调整功能,允许用户通过拖拽实时调整立绘的位置、大小和旋转,并自动更新代码中的transform参数。
- Pixi.js 升级与适配: 将Pixi.js库从6.5.10版本升级到8.14.0,并对新版API(如view → canvas)进行了适配。
- 新增设置开关: 在设置页面新增了预览窗口拖拽调整的开关,用户可以启用或禁用此功能。
- Switch 组件支持: 添加了对Switch组件的支持。
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in pull request comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
[^1]: Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.