This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
forked from nathansmith/960-Grid-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an extension for Adobe Fireworks.
1 parent
3b73cc8
commit 771c3a5
Showing
6 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(function() { | ||
var pattern = [10, 60, 10]; | ||
var p = pattern.length; | ||
var columns = 12; | ||
var x = 0; | ||
var guides = [x]; | ||
|
||
for (var c = 0; c < columns; c++) { | ||
for (var i = 0; i < p; i++) { | ||
x += pattern[i]; | ||
guides.push(x); | ||
} | ||
} | ||
|
||
var d = fw.getDocumentDOM(); | ||
d.removeAllGuides('horizontal'); | ||
d.removeAllGuides('vertical'); | ||
d.setShowGuides(true); | ||
|
||
var padding = Math.round((d.width - x) / 2); | ||
var g = guides.length; | ||
|
||
for (var j = 0; j < g; j++) { | ||
d.addGuide(padding + guides[j], 'vertical'); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(function() { | ||
var pattern = [10, 40, 10]; | ||
var p = pattern.length; | ||
var columns = 16; | ||
var x = 0; | ||
var guides = [x]; | ||
|
||
for (var c = 0; c < columns; c++) { | ||
for (var i = 0; i < p; i++) { | ||
x += pattern[i]; | ||
guides.push(x); | ||
} | ||
} | ||
|
||
var d = fw.getDocumentDOM(); | ||
d.removeAllGuides('horizontal'); | ||
d.removeAllGuides('vertical'); | ||
d.setShowGuides(true); | ||
|
||
var padding = Math.round((d.width - x) / 2); | ||
var g = guides.length; | ||
|
||
for (var j = 0; j < g; j++) { | ||
d.addGuide(padding + guides[j], 'vertical'); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(function() { | ||
var pattern = [5, 30, 5]; | ||
var p = pattern.length; | ||
var columns = 24; | ||
var x = 0; | ||
var guides = [x]; | ||
|
||
for (var c = 0; c < columns; c++) { | ||
for (var i = 0; i < p; i++) { | ||
x += pattern[i]; | ||
guides.push(x); | ||
} | ||
} | ||
|
||
var d = fw.getDocumentDOM(); | ||
d.removeAllGuides('horizontal'); | ||
d.removeAllGuides('vertical'); | ||
d.setShowGuides(true); | ||
|
||
var padding = Math.round((d.width - x) / 2); | ||
var g = guides.length; | ||
|
||
for (var j = 0; j < g; j++) { | ||
d.addGuide(padding + guides[j], 'vertical'); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<macromedia-extension name="960.gs Grid Generators" version="1.0.0" type="Command"> | ||
<author name="Nathan Smith" /> | ||
<products> | ||
<product name="Fireworks" version="6" primary="true" /> | ||
</products> | ||
<description> | ||
<![CDATA[ | ||
This set of commands generates 960.gs grid guidelines in current file. | ||
]]> | ||
</description> | ||
<ui-access> | ||
<![CDATA[ | ||
You can run these commands from Commands menu. | ||
]]> | ||
</ui-access> | ||
<files> | ||
<file name="12 columns.jsf" destination="$fireworks/configuration/commands/960.gs" /> | ||
<file name="16 columns.jsf" destination="$fireworks/configuration/commands/960.gs" /> | ||
<file name="24 columns.jsf" destination="$fireworks/configuration/commands/960.gs" /> | ||
</files> | ||
<configuration-changes /> | ||
</macromedia-extension> |