This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.activeDocument.suspendHistory("Export as png", "main()"); | |
| function main() { | |
| if (app.documents.length) { | |
| var docRef = app.activeDocument; | |
| if (docRef.layers.length) { | |
| var selected = getSelectedLayersIdx(); | |
| for (var i = 0; i < selected.length; i++) { | |
| var layer = selectByIndex(selected[i]), | |
| width = layer.bounds[2] - layer.bounds[0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs'), | |
| path = require('path'), | |
| builder = require('xmlbuilder'), | |
| crypto = require('crypto'); | |
| var targetDir = process.argv[2] + '/', | |
| magentoVersion = process.argv[3]; | |
| function xmlAddSyncRecursive(xml, cpath, failSilent) { | |
| var files; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var featherEditorHiRes = -1; | |
| var featherEditor = new Aviary.Feather({ | |
| ... | |
| onReady: function(){ | |
| if(featherEditorHiRes == -1){ | |
| AV.controlsWidgetInstance.serverMessaging.sendMessage({ | |
| id: "avpw_auth_form", | |
| action: AV.controlsWidgetInstance.assetManager.getManifestURL(), | |
| method: "GET", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // {{{ win-safari hacks, scratch this, | |
| // let's just expose platform/browser to css | |
| (function() | |
| { | |
| var uaMatch = '', prefix = ''; | |
| if (navigator.userAgent.match(/Windows/)) | |
| { | |
| $('html').addClass('x-win'); | |
| } |
NewerOlder