Skip to content

Commit

Permalink
feat(边框): 增加拖拽后不缩放限制
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaojob committed May 26, 2024
1 parent 71c7cdb commit 780e147
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/attributeBorder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 秦少卫
* @Date: 2024-05-21 10:18:57
* @LastEditors: 秦少卫
* @LastEditTime: 2024-05-21 15:36:46
* @LastEditTime: 2024-05-26 22:59:26
* @Description: 边框
-->
<template>
Expand Down Expand Up @@ -170,7 +170,8 @@ const getObjectAttr = (e) => {
const changeCommon = (key, value) => {
const activeObject = canvasEditor.canvas.getActiveObjects()[0];
if (activeObject) {
activeObject && activeObject.set(key, value);
activeObject.set(key, value);
activeObject.set('strokeUniform', true);
canvasEditor.canvas.renderAll();
}
};
Expand Down

0 comments on commit 780e147

Please sign in to comment.