-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathmain.js
1 lines (1 loc) · 3.3 KB
/
main.js
1
var _$_c1ec = ["scenegraph", "./pallets", "secColorsUi", "./utils", "getArtboarddetails", "getColorName", "./materialcolors", "items", "#", "startsWith", "name", "color is selected", "log", "parent", "pallet_color_main", "selectItem", "fill", "getColors", "index", "selected_color_name", "text", " \x0A", "\x0A", "pallet_color_dark", "dark", "pallet_color_light", "light", "Spec", "./widgets", "palletItemList", "PalletItem", "-fav", "selectItemWithSameName", "removeFromParent", "forEach", "getColorIndex", "allColors", "reverse", "slice", "getFavColor", "exports"]; const { Color, Rectangle } = require(_$_c1ec[0]); const secColors = require(_$_c1ec[1]); const pallets = require(_$_c1ec[1])[_$_c1ec[2]]; const utils = require(_$_c1ec[3]); const getArtboard = require(_$_c1ec[3])[_$_c1ec[4]]; const getColorname = require(_$_c1ec[6])[_$_c1ec[5]]; const colors = require(_$_c1ec[6]); function showPallets(_0x76A0, _0x74A1) { var _0x7AE7 = getArtboard(_0x76A0, _0x74A1); pallets(_0x76A0, _0x74A1, _0x7AE7) } function changeColor(_0x76A0, _0x74A1) { var _0x75C5 = _0x76A0[_$_c1ec[7]][0]; if (_0x75C5 instanceof Rectangle) { if (_0x75C5[_$_c1ec[10]][_$_c1ec[9]](_$_c1ec[8])) { console[_$_c1ec[12]](_$_c1ec[11]); var _0x760E = _0x75C5[_$_c1ec[10]]; var _0x73C6 = _0x75C5[_$_c1ec[13]]; console[_$_c1ec[12]](_0x760E); console[_$_c1ec[12]](_0x73C6[_$_c1ec[10]]); utils[_$_c1ec[15]](_0x76A0, _0x74A1, _0x73C6[_$_c1ec[10]], _$_c1ec[14]); var _0x7856 = _0x76A0[_$_c1ec[7]][0]; _0x7856[_$_c1ec[16]] = new Color(_0x760E); var _0x789F = utils[_$_c1ec[17]](_0x760E); var _0x740F = getColorname(_0x760E); var _0x780D = _0x789F[_$_c1ec[18]]; if (_0x789F[_$_c1ec[18]] == 0) { _0x780D = 50 } else { _0x780D = _0x780D }; utils[_$_c1ec[15]](_0x76A0, _0x74A1, _0x73C6[_$_c1ec[10]], _$_c1ec[19]); var _0x78E8 = _0x76A0[_$_c1ec[7]][0]; _0x78E8[_$_c1ec[20]] = _0x740F + _$_c1ec[21] + _0x780D + _$_c1ec[22] + _0x760E; utils[_$_c1ec[15]](_0x76A0, _0x74A1, _0x73C6[_$_c1ec[10]], _$_c1ec[23]); var _0x7856 = _0x76A0[_$_c1ec[7]][0]; _0x7856[_$_c1ec[16]] = new Color(_0x789F[_$_c1ec[24]]); utils[_$_c1ec[15]](_0x76A0, _0x74A1, _0x73C6[_$_c1ec[10]], _$_c1ec[25]); var _0x7856 = _0x76A0[_$_c1ec[7]][0]; _0x7856[_$_c1ec[16]] = new Color(_0x789F[_$_c1ec[26]]) } } } const Spec = require(_$_c1ec[28])[_$_c1ec[27]]; const palletItemList = secColors[_$_c1ec[29]]; const PalletItem = secColors[_$_c1ec[30]]; function addFavColor(_0x76A0, _0x74A1) { var _0x75C5 = _0x76A0[_$_c1ec[7]][0]; var _0x760E = _0x75C5[_$_c1ec[10]]; if (_0x75C5 instanceof Rectangle) { if (_0x75C5[_$_c1ec[10]][_$_c1ec[9]](_$_c1ec[8])) { var _0x73C6 = _0x75C5[_$_c1ec[13]]; var _0x7458 = []; var _0x74EA = utils[_$_c1ec[32]](_0x76A0, _0x74A1, _0x73C6[_$_c1ec[10]], _$_c1ec[31]); _0x74EA[_$_c1ec[7]][_$_c1ec[34]]((_0x74EA) => _0x74EA[_$_c1ec[33]]()); var _0x7533 = 60; var _0x76E9 = 78; var _0x7732 = 44; var _0x777B = 824; var _0x740F = colors[_$_c1ec[5]](_0x760E); console[_$_c1ec[12]](_0x740F); var _0x757C = colors[_$_c1ec[35]](_0x740F); var _0x7657 = colors[_$_c1ec[36]][_0x757C]; console[_$_c1ec[12]](_0x757C); _0x7657[_$_c1ec[38]]()[_$_c1ec[37]]()[_$_c1ec[34]]((_0x77C4, _0x757C) => { palletItemList(_0x76A0, new PalletItem(new Spec(_0x76E9, _0x7533, _0x7732 + _0x76E9 * _0x757C, _0x777B), _0x77C4, _0x77C4 + _$_c1ec[31])) }); secColors[_$_c1ec[39]]() } } } module[_$_c1ec[40]] = { commands: { showPallets, changeColor, addFavColor } }