Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psd.js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
regiostart
psd.js
Commits
eb9ad819
Commit
eb9ad819
authored
Apr 25, 2014
by
Ryan LeFevre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nested section divider
parent
7ff90e8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
info.coffee
lib/psd/layer/info.coffee
+2
-4
nested_section_divider.coffee
lib/psd/layer_info/nested_section_divider.coffee
+17
-0
No files found.
lib/psd/layer/info.coffee
View file @
eb9ad819
...
@@ -2,12 +2,10 @@ LazyExecute = require '../lazy_execute.coffee'
...
@@ -2,12 +2,10 @@ LazyExecute = require '../lazy_execute.coffee'
Util
=
require
'../util.coffee'
Util
=
require
'../util.coffee'
LAYER_INFO
=
{
LAYER_INFO
=
{
name
:
require
(
'../layer_info/unicode_name.coffee'
)
name
:
require
(
'../layer_info/unicode_name.coffee'
),
nestedSectionDivider
:
require
(
'../layer_info/nested_section_divider.coffee'
)
}
}
for
own
name
,
klass
of
LAYER_INFO
then
do
(
name
,
klass
)
->
module
.
exports
[
name
]
=
->
@
adjustments
[
name
]
module
.
exports
=
module
.
exports
=
parseLayerInfo
:
->
parseLayerInfo
:
->
while
@
file
.
tell
()
<
@
layerEnd
while
@
file
.
tell
()
<
@
layerEnd
...
...
lib/psd/layer_info/nested_section_divider.coffee
0 → 100644
View file @
eb9ad819
LayerInfo
=
require
'../layer_info.coffee'
module
.
exports
=
class
NestedSectionDivider
extends
LayerInfo
@
shouldParse
:
(
key
)
->
key
is
'lsdk'
constructor
:
(
layer
,
length
)
->
super
(
layer
,
length
)
@
isFolder
=
false
@
isHidden
=
false
parse
:
->
code
=
@
file
.
readInt
()
switch
code
when
1
,
2
then
@
isFolder
=
true
when
3
then
@
isHidden
=
true
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment