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
class ImageSwappingLayer extends Layer | |
images: {} | |
imageSubLayer: false | |
imageTransitionTime: 0.5 | |
constructor: (options={}) -> | |
super options | |
@imageTransitionTime = options.imageTransitionTime if options.imageTransitionTime |
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
// Simple get child function by partial name match | |
// useful for photoshop files with repeated layer group naming | |
function getChildView(view, needle){ | |
haystack = view.subViews | |
for (var hay in haystack){ | |
if (haystack[hay].name.indexOf(needle) !== -1){ | |
return view.subViews[hay] | |
} | |
} | |
} |
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
{"nodes":[ | |
{"name":"Agricultural 'waste'"}, | |
{"name":"Bio-conversion"}, | |
{"name":"Liquid"}, | |
{"name":"Losses"}, | |
{"name":"Solid"}, | |
{"name":"Gas"}, | |
{"name":"Biofuel imports"}, | |
{"name":"Biomass imports"}, | |
{"name":"Coal imports"}, |