mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修正注释
This commit is contained in:
parent
d5c30f59e0
commit
b6bddcc17c
@ -95,7 +95,7 @@ export default () => {
|
|||||||
const span = ((maxX - minX) - totalWidth) / (list.length - 1)
|
const span = ((maxX - minX) - totalWidth) / (list.length - 1)
|
||||||
|
|
||||||
// 按位置顺序依次计算每一个元素的目标位置
|
// 按位置顺序依次计算每一个元素的目标位置
|
||||||
// 第一项中的元素即为起点,无序计算
|
// 第一项中的元素即为起点,无需计算
|
||||||
// 从第二项开始,每一项的位置应该为:上一项位置 + 上一项宽度 + 间隔
|
// 从第二项开始,每一项的位置应该为:上一项位置 + 上一项宽度 + 间隔
|
||||||
// 注意此处计算的位置(pos)并非元素最终的left值,而是目标位置范围最小值(元素旋转后的left值 ≠ 范围最小值)
|
// 注意此处计算的位置(pos)并非元素最终的left值,而是目标位置范围最小值(元素旋转后的left值 ≠ 范围最小值)
|
||||||
const sortedElementData: ElementWithPos[] = []
|
const sortedElementData: ElementWithPos[] = []
|
||||||
|
@ -39,7 +39,7 @@ export const useMainStore = defineStore('main', {
|
|||||||
editorAreaFocus: false, // 编辑区域聚焦
|
editorAreaFocus: false, // 编辑区域聚焦
|
||||||
disableHotkeys: false, // 禁用快捷键
|
disableHotkeys: false, // 禁用快捷键
|
||||||
showGridLines: false, // 显示网格线
|
showGridLines: false, // 显示网格线
|
||||||
creatingElement: null, // 正在插入的元素信息,需要绘制插入的元素需要(文字、形状、线条)
|
creatingElement: null, // 正在插入的元素信息,需要通过绘制插入的元素(文字、形状、线条)
|
||||||
availableFonts: [], // 当前环境可用字体
|
availableFonts: [], // 当前环境可用字体
|
||||||
toolbarState: 'slideDesign', // 右侧工具栏状态
|
toolbarState: 'slideDesign', // 右侧工具栏状态
|
||||||
clipingImageElementId: '', // 当前正在裁剪的图片ID
|
clipingImageElementId: '', // 当前正在裁剪的图片ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user