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
c567b01d
Commit
c567b01d
authored
May 05, 2014
by
Ryan LeFevre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add search to nodes
parent
143a3179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
parse.js
examples/parse.js
+0
-1
node.coffee
lib/psd/node.coffee
+1
-0
No files found.
examples/parse.js
View file @
c567b01d
...
@@ -3,7 +3,6 @@ var PSD = require('../');
...
@@ -3,7 +3,6 @@ var PSD = require('../');
psd
=
PSD
.
open
(
'./examples/images/example.psd'
,
function
(
psd
)
{
psd
=
PSD
.
open
(
'./examples/images/example.psd'
,
function
(
psd
)
{
console
.
log
(
psd
.
header
.
export
());
console
.
log
(
psd
.
header
.
export
());
console
.
log
(
psd
.
tree
().
export
());
console
.
log
(
psd
.
tree
().
export
());
console
.
log
(
psd
.
layerMask
.
globalMask
);
});
});
// psd.image.saveAsPng('./output.png').then(function () {
// psd.image.saveAsPng('./output.png').then(function () {
// console.log("Finished!");
// console.log("Finished!");
...
...
lib/psd/node.coffee
View file @
c567b01d
...
@@ -3,6 +3,7 @@ _ = require 'lodash'
...
@@ -3,6 +3,7 @@ _ = require 'lodash'
module
.
exports
=
class
Node
extends
Module
module
.
exports
=
class
Node
extends
Module
@
includes
require
(
'./nodes/ancestry.coffee'
)
@
includes
require
(
'./nodes/ancestry.coffee'
)
@
includes
require
(
'./nodes/search.coffee'
)
@
PROPERTIES
:
[
'name'
,
'left'
,
'right'
,
'top'
,
'bottom'
,
'height'
,
'width'
]
@
PROPERTIES
:
[
'name'
,
'left'
,
'right'
,
'top'
,
'bottom'
,
'height'
,
'width'
]
...
...
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