-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathwidgets.js
1 lines (1 loc) · 3.16 KB
/
widgets.js
1
var _$_816e = ["scenegraph", "./utils", "Point", "name", "font_preview", "height", "width", "fill", "#212121", "stroke", "#707070", "strokeWidth", "cornerRadii", "addChild", "insertionParent", "styleRanges", "localBounds", "x", "y", "placeInParentCoordinates", "length", "text", "#FFFFFF", "Segoe UI", "Regular", "close_button", "radiusX", "radiusY", "#FF5353", "707070", "moveInParentCoordinates", "z", "p", "exports"]; const { Rectangle, Color, Text, Ellipse } = require(_$_816e[0]); const utils = require(_$_816e[1]); const Point = utils[_$_816e[2]]; function createToolBar(_0x76A0, _0x812D, _0x7AE7) { const _0x8176 = new Rectangle(); _0x8176[_$_816e[3]] = _$_816e[4]; _0x8176[_$_816e[5]] = 156; _0x8176[_$_816e[6]] = 866; _0x8176[_$_816e[7]] = new Color(_$_816e[8]); _0x8176[_$_816e[9]] = new Color(_$_816e[10]); _0x8176[_$_816e[11]] = 1; _0x8176[_$_816e[12]] = { topLeft: 26, topRight: 26, bottomLeft: 0, bottomRight: 0 }; _0x76A0[_$_816e[14]][_$_816e[13]](_0x8176); createCloseButton(_0x76A0); createTitle(_0x76A0, _0x812D, _0x7AE7); return _0x8176 } function createTitle(_0x76A0, _0x812D, _0x7AE7) { var _0x80E4 = createText(_0x76A0, new Spec(0, 0, 0, 0), _0x812D[1]); _0x80E4[_$_816e[3]] = _0x812D[0]; _0x80E4[_$_816e[15]] = style_toolbar_title(_0x80E4); _0x80E4[_$_816e[19]](_0x80E4[_$_816e[16]], { x: _0x7AE7[_$_816e[17]], y: _0x7AE7[_$_816e[18]] }); return _0x80E4 } function style_toolbar_title(_0x80E4) { return [{ length: _0x80E4[_$_816e[21]][_$_816e[20]], fill: new Color(_$_816e[22]), fontFamily: _$_816e[23], fontStyle: _$_816e[24], fontSize: 43, charSpacing: 0, underline: false }] } function createCloseButton(_0x76A0) { const _0x7A55 = new Ellipse(); _0x7A55[_$_816e[3]] = _$_816e[25]; _0x7A55[_$_816e[26]] = 20; _0x7A55[_$_816e[27]] = 20; _0x7A55[_$_816e[7]] = new Color(_$_816e[28]); _0x7A55[_$_816e[9]] = new Color(_$_816e[29]); _0x7A55[_$_816e[11]] = 1; _0x76A0[_$_816e[14]][_$_816e[13]](_0x7A55); _0x7A55[_$_816e[30]](46, 44); return _0x7A55 } function createRectC(_0x76A0, _0x7AE7, _0x760E, _0x797A, _0x7F2E) { var _0x7EE5; if (_0x797A == null) { _0x7EE5 = null } else { _0x7EE5 = new Color(_0x797A) }; const _0x7A9E = new Rectangle(); _0x7A9E[_$_816e[3]] = _0x760E; _0x7A9E[_$_816e[6]] = _0x7AE7[_$_816e[6]]; _0x7A9E[_$_816e[5]] = _0x7AE7[_$_816e[5]]; _0x7A9E[_$_816e[7]] = _0x7EE5; _0x7A9E[_$_816e[12]] = { topLeft: _0x7F2E[_$_816e[17]], topRight: _0x7F2E[_$_816e[18]], bottomRight: _0x7F2E[_$_816e[31]], bottomLeft: _0x7F2E[_$_816e[32]] }; _0x76A0[_$_816e[14]][_$_816e[13]](_0x7A9E); _0x7A9E[_$_816e[30]](_0x7AE7[_$_816e[17]], _0x7AE7[_$_816e[18]]); return _0x7A9E } function createText(_0x76A0, _0x7AE7, _0x7458) { var _0x80E4 = new Text(); _0x80E4[_$_816e[3]] = _0x7458; _0x80E4[_$_816e[21]] = _0x7458; _0x76A0[_$_816e[14]][_$_816e[13]](_0x80E4); return _0x80E4 } class Spec { constructor(_0x76E9, _0x7533, _0x7732, _0x777B) { this[_$_816e[6]] = _0x76E9; this[_$_816e[5]] = _0x7533; this[_$_816e[17]] = _0x7732; this[_$_816e[18]] = _0x777B } }; class Vector { constructor(_0x7732, _0x777B, _0x872A, _0x86E1) { this[_$_816e[32]] = _0x86E1; this[_$_816e[31]] = _0x872A; this[_$_816e[17]] = _0x7732; this[_$_816e[18]] = _0x777B } }; module[_$_816e[33]] = { createToolBar, createRectC, createText, Spec, Vector }