aboutsummaryrefslogtreecommitdiff
path: root/js/data
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-02 10:40:05 -0700
committerJose Antonio Marquez2012-04-02 10:40:05 -0700
commitb2f6ec0a6b08edac76cc77e1b57009bbb319abf5 (patch)
treecb24d3a9db06d3ffc538f3558436f7bce29aa7fd /js/data
parente876941eaa6cf5adf0e028d0f3f9402284ea5de2 (diff)
parentc6de22bf42be90b403491b5f87b1818d9020310c (diff)
downloadninja-b2f6ec0a6b08edac76cc77e1b57009bbb319abf5.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'js/data')
-rwxr-xr-xjs/data/menu-data.js40
-rwxr-xr-xjs/data/pi/pi-data.js141
2 files changed, 144 insertions, 37 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js
index 12007f4a..3333d209 100755
--- a/js/data/menu-data.js
+++ b/js/data/menu-data.js
@@ -154,17 +154,17 @@ exports.MenuData = Montage.create( Montage, {
154 { 154 {
155 "displayText" : "Cut", 155 "displayText" : "Cut",
156 "hasSubMenu" : false, 156 "hasSubMenu" : false,
157 "enabled": true 157 "enabled": false
158 }, 158 },
159 { 159 {
160 "displayText" : "Copy", 160 "displayText" : "Copy",
161 "hasSubMenu" : false, 161 "hasSubMenu" : false,
162 "enabled": true 162 "enabled": false
163 }, 163 },
164 { 164 {
165 "displayText" : "Paste", 165 "displayText" : "Paste",
166 "hasSubMenu" : false, 166 "hasSubMenu" : false,
167 "enabled": true 167 "enabled": false
168 } 168 }
169 ] 169 ]
170 }, 170 },
@@ -172,38 +172,6 @@ exports.MenuData = Montage.create( Montage, {
172 "header": "View", 172 "header": "View",
173 "entries": [ 173 "entries": [
174 { 174 {
175 "displayText" : "Zoom In",
176 "hasSubMenu" : false,
177 "enabled": {
178 "value": false,
179 "boundObj": "documentController",
180 "boundProperty": "activeDocument",
181 "oneway": true,
182 "boundValueMutator": function(activeDocument){
183 if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;}
184 else{return false;}
185 }
186 }
187 },
188 {
189 "displayText" : "Zoom Out",
190 "hasSubMenu" : false,
191 "enabled": {
192 "value": false,
193 "boundObj": "documentController",
194 "boundProperty": "activeDocument",
195 "oneway": true,
196 "boundValueMutator": function(activeDocument){
197 if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;}
198 else{return false;}
199 }
200 }
201 },
202 {
203 "displayText" : "",
204 "separator": true
205 },
206 {
207 "displayText" : "Live Preview", 175 "displayText" : "Live Preview",
208 "hasSubMenu" : false, 176 "hasSubMenu" : false,
209 "enabled": { 177 "enabled": {
@@ -431,7 +399,7 @@ exports.MenuData = Montage.create( Montage, {
431 { 399 {
432 "displayText" : "Debug", 400 "displayText" : "Debug",
433 "hasSubMenu" : false, 401 "hasSubMenu" : false,
434 "enabled": true, 402 "enabled": false,
435 "checked": { 403 "checked": {
436 "value": true, 404 "value": true,
437 "boundProperty": "debug" 405 "boundProperty": "debug"
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js
index 52360302..7edc90d8 100755
--- a/js/data/pi/pi-data.js
+++ b/js/data/pi/pi-data.js
@@ -653,7 +653,146 @@ exports.PiData = Montage.create( Montage, {
653 ] 653 ]
654 } 654 }
655 ] 655 ]
656 } 656 },
657 SubpathPi: {
658 value: [
659 {
660 label: "Stroke",
661
662 Section: [
663 [
664 {
665 type : "color",
666 prop: "border",
667 id : "stroke"
668 },
669 {
670 type : "color",
671 id : "fill",
672 prop: "background",
673 divider : true
674 }
675 ],
676 [
677 {
678 type : "hottext",
679 id : "strokeSize",
680 prop : "strokeSize",
681 label : "Stroke",
682 valueMutator: parseFloat,
683 min : 1,
684 max : 100,
685 value : 1,
686 unit : "px",
687 acceptableUnits: ["pt", "px"]
688 }
689 ]
690 ]
691 }
692 ]
693 },
694 BrushStrokePi: {
695 value: [
696 {
697 label: "Stroke",
698
699 Section: [
700 [
701 {
702 type : "color",
703 prop: "border",
704 id : "stroke"
705 },
706 {
707 type : "color",
708 id : "fill",
709 prop: "background",
710 visible : false,
711 divider : true
712 }
713 ],
714 [
715 {
716 type : "hottext",
717 id : "strokeSize",
718 prop : "strokeSize",
719 label : "Stroke",
720 valueMutator: parseInt,
721 min : 1,
722 max : 100,
723 value : 1,
724 unit : "px",
725 acceptableUnits: ["pt", "px"]
726 },
727 {
728 type : "hottext",
729 id : "strokeHardness",
730 prop : "strokeHardness",
731 label : "Hardness",
732 valueMutator: parseInt,
733 min : 0,
734 max : 100,
735 value : 100,
736 unit : "%",
737 acceptableUnits: ["%"]
738 }
739 ]
740 ]
741 },
742 {
743 label: "Smoothing",
744 Section: [
745 [
746 {
747 type: "checkbox",
748 id: "doSmoothing",
749 prop: "doSmoothing",
750 defaultValue: false,
751 value: "Y/N",
752 checked: false
753 },
754 {
755 type : "hottext",
756 id : "strokeSmoothing",
757 prop : "strokeSmoothing",
758 label : "Amount",
759 valueMutator: parseFloat,
760 min : 0,
761 max : 100,
762 value : 0
763 }
764 ]
765 ]
766 },
767 {
768 label: "Calligraphic",
769 Section: [
770 [
771 {
772 type: "checkbox",
773 id: "isCalligraphic",
774 prop: "isCalligraphic",
775 defaultValue: false,
776 value: "Y/N",
777 checked: false,
778 divider : true
779 },
780 {
781 type : "hottext",
782 id : "strokeAngle",
783 prop : "strokeAngle",
784 label : "Angle",
785 valueMutator: parseFloat,
786 min : -90,
787 max : 90,
788 value : 0,
789 unit : "deg."
790 }
791 ]
792 ]
793 }
794 ] //value: [
795 } //BrushStrokePi: {
657}); 796});
658 797
659 798