Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/psd/layer/info.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ LAYER_INFO = {
name: require('../layer_info/unicode_name.coffee')
nestedSectionDivider: require('../layer_info/nested_section_divider.coffee')
objectEffects: require('../layer_info/object_effects.coffee')
multipleObjectEffects: require('../layer_info/multiple_object_effects.coffee')
sectionDivider: require('../layer_info/section_divider.coffee')
solidColor: require('../layer_info/solid_color.coffee')
typeTool: require('../layer_info/typetool.coffee')
Expand All @@ -39,8 +40,8 @@ LAYER_INFO = {

module.exports =
parseLayerInfo: ->
# Layer info blocks are the last section in the layer, so we can continue until our
# file cursor reaches the end of the layer.
# Layer info blocks are the last section in the layer, so we can continue until our
# file cursor reaches the end of the layer.
while @file.tell() < @layerEnd
@file.seek 4, true # sig

Expand Down Expand Up @@ -73,4 +74,4 @@ module.exports =

# If we don't know how to parse this particular layer info block, we can skip it since we
# know the end position of the data.
@file.seek length, true if not keyParseable
@file.seek length, true if not keyParseable
9 changes: 9 additions & 0 deletions lib/psd/layer_info/multiple_object_effects.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
LayerInfo = require '../layer_info.coffee'
Descriptor = require '../descriptor.coffee'

module.exports = class MultipleObjectEffects extends LayerInfo
@shouldParse: (key) -> key is 'lmfx'

parse: ->
@file.seek 8, true
@data = new Descriptor(@file).parse()