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
f2250837
Commit
f2250837
authored
Aug 08, 2014
by
imgqb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished
parent
85af8e3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
text_elements.coffee
lib/psd/layer_info/text_elements.coffee
+8
-8
No files found.
lib/psd/layer_info/text_elements.coffee
View file @
f2250837
...
...
@@ -14,13 +14,12 @@ module.exports = class TextElements extends LayerInfo
@
transform
=
{}
@
textVersion
=
null
@
descriptorVersion
=
null
@
textDat
e
=
null
@
textDat
a
=
null
@
warpVersion
=
null
@
descriptorVersion
=
null
@
warpDat
e
=
null
@
warpDat
a
=
null
@
coords
=
{}
@
parse
()
#lazy貌似没执行啊,手动执行下.
parse
:
->
@
version
=
@
file
.
readShort
()
...
...
@@ -30,12 +29,13 @@ module.exports = class TextElements extends LayerInfo
@
textVersion
=
@
file
.
readShort
()
@
descriptorVersion
=
@
file
.
readInt
()
@
textDat
e
=
new
Descriptor
(
@
file
).
parse
()
@
textDat
a
=
new
Descriptor
(
@
file
).
parse
()
@
warpVersion
=
@
file
.
readShort
()
# @warpDate = new Descriptor(@file).parse()
@
descriptorVersion
=
@
file
.
readInt
()
@
warpData
=
new
Descriptor
(
@
file
).
parse
()
# for name, value
console
.
log
(
'TextElements loaded'
)
skip
:
->
\ No newline at end of file
for
name
,
index
in
COORDS_VALUE
@
coords
[
name
]
=
@
file
.
readDouble
()
\ 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