mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2026-03-15 10:41:41 +00:00
两个版本的插件
This commit is contained in:
22
ccc-tnt-psd2ui-v3.4.+/libs/psd2ui/values/Rect.js
Normal file
22
ccc-tnt-psd2ui-v3.4.+/libs/psd2ui/values/Rect.js
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Rect = void 0;
|
||||
class Rect {
|
||||
constructor(left = 0, right = 0, top = 0, bottom = 0) {
|
||||
if (typeof left == 'object') {
|
||||
this.set(left);
|
||||
return;
|
||||
}
|
||||
this.left = left || 0;
|
||||
this.right = right || 0;
|
||||
this.top = top || 0;
|
||||
this.bottom = bottom || 0;
|
||||
}
|
||||
set(rect) {
|
||||
this.left = rect.left;
|
||||
this.right = rect.right;
|
||||
this.top = rect.top;
|
||||
this.bottom = rect.bottom;
|
||||
}
|
||||
}
|
||||
exports.Rect = Rect;
|
||||
Reference in New Issue
Block a user