Commit 1a39a181 authored by Ryan LeFevre's avatar Ryan LeFevre

Blend clipping elements

parent 667a6019
...@@ -47,4 +47,4 @@ module.exports = class File ...@@ -47,4 +47,4 @@ module.exports = class File
.replace(/\u0000/g, '') .replace(/\u0000/g, '')
readByte: -> @read(1)[0] readByte: -> @read(1)[0]
readBoolean: -> readByte() isnt 0 readBoolean: -> @readByte() isnt 0
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,9 @@ LazyExecute = require '../lazy_execute.coffee' ...@@ -2,8 +2,9 @@ LazyExecute = require '../lazy_execute.coffee'
Util = require '../util.coffee' Util = require '../util.coffee'
LAYER_INFO = { LAYER_INFO = {
name: require('../layer_info/unicode_name.coffee'), blendClippingElements: require('../layer_info/blend_clipping_elements.coffee')
nestedSectionDivider: require('../layer_info/nested_section_divider.coffee'), name: require('../layer_info/unicode_name.coffee')
nestedSectionDivider: require('../layer_info/nested_section_divider.coffee')
sectionDivider: require('../layer_info/section_divider.coffee') sectionDivider: require('../layer_info/section_divider.coffee')
} }
......
LayerInfo = require '../layer_info.coffee'
module.exports = class BlendClippingElements extends LayerInfo
@shouldParse: (key) -> key is 'clbl'
parse: ->
@enabled = @file.readBoolean()
@file.seek 3, true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment