Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/normal-changes'
Browse files Browse the repository at this point in the history
  • Loading branch information
captainIN committed Aug 5, 2024
2 parents d9a93a5 + a0a0198 commit a04a861
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/image-editor/src/js/component/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ export default class Shape extends Component {

const shapeObj = this._createInstance(type, extendOption);
const objectProperties = this.graphics.createObjectProperties(shapeObj);
shapeObj.height = 40;
shapeObj.width = 40;
objectProperties.height = 40;
objectProperties.width = 40;

this._bindEventOnShape(shapeObj);

Expand Down Expand Up @@ -323,6 +327,12 @@ export default class Shape extends Component {
*/
_createInstance(type, options) {
let instance;
if (type === "circle") {
options.height = 40;
options.width = 40;
options.rx = 20;
options.ry = 20;
}

switch (type) {
case 'rect':
Expand Down

0 comments on commit a04a861

Please sign in to comment.