aboutsummaryrefslogtreecommitdiff
path: root/js/data/pi/pi-data.js
diff options
context:
space:
mode:
authorEric Guzman2012-04-02 15:36:08 -0700
committerEric Guzman2012-04-02 15:36:08 -0700
commit0241bf331b7e06e206a54be441edf2f4c7261f63 (patch)
treeb7e2f9cad73eed4fc616cf1841cd0be02bd955d4 /js/data/pi/pi-data.js
parentdde5b5054f93db493e5d4d502e677f5781334b08 (diff)
parentc6de22bf42be90b403491b5f87b1818d9020310c (diff)
downloadninja-0241bf331b7e06e206a54be441edf2f4c7261f63.tar.gz
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/data/pi/pi-data.js')
-rwxr-xr-xjs/data/pi/pi-data.js209
1 files changed, 208 insertions, 1 deletions
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js
index ba03c347..7edc90d8 100755
--- a/js/data/pi/pi-data.js
+++ b/js/data/pi/pi-data.js
@@ -393,6 +393,17 @@ exports.PiData = Montage.create( Montage, {
393 ], 393 ],
394 [ 394 [
395 { 395 {
396 type: "checkbox",
397 id: "animate",
398 prop: "animate",
399 defaultValue: true,
400 value: "Animate",
401 checked: true,
402 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
403 }
404 ],
405 [
406 {
396 type: "dropdown", 407 type: "dropdown",
397 id: "strokeMaterial", 408 id: "strokeMaterial",
398 prop: "strokeMaterial", 409 prop: "strokeMaterial",
@@ -402,6 +413,13 @@ exports.PiData = Montage.create( Montage, {
402 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 413 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
403 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, 414 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
404 divider : true 415 divider : true
416 },
417 {
418 type: "button",
419 id: "editStrokeMaterial",
420 prop: "editStrokeMaterial",
421 label: "Edit",
422 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
405 } 423 }
406 ], 424 ],
407 [ 425 [
@@ -414,6 +432,13 @@ exports.PiData = Montage.create( Montage, {
414 dataField: "_name", 432 dataField: "_name",
415 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 433 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
416 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } 434 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
435 },
436 {
437 type: "button",
438 id: "editFillMaterial",
439 prop: "editFillMaterial",
440 label: "Edit",
441 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
417 } 442 }
418 ] 443 ]
419 ] 444 ]
@@ -472,6 +497,17 @@ exports.PiData = Montage.create( Montage, {
472 ], 497 ],
473 [ 498 [
474 { 499 {
500 type: "checkbox",
501 id: "animate",
502 prop: "animate",
503 defaultValue: true,
504 value: "Animate",
505 checked: true,
506 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
507 }
508 ],
509 [
510 {
475 type: "dropdown", 511 type: "dropdown",
476 id: "strokeMaterial", 512 id: "strokeMaterial",
477 prop: "strokeMaterial", 513 prop: "strokeMaterial",
@@ -481,6 +517,13 @@ exports.PiData = Montage.create( Montage, {
481 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 517 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
482 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, 518 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
483 divider : true 519 divider : true
520 },
521 {
522 type: "button",
523 id: "editStrokeMaterial",
524 prop: "editStrokeMaterial",
525 label: "Edit",
526 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
484 } 527 }
485 ] 528 ]
486 ] 529 ]
@@ -559,6 +602,17 @@ exports.PiData = Montage.create( Montage, {
559 ], 602 ],
560 [ 603 [
561 { 604 {
605 type: "checkbox",
606 id: "animate",
607 prop: "animate",
608 defaultValue: true,
609 value: "Animate",
610 checked: true,
611 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
612 }
613 ],
614 [
615 {
562 type: "dropdown", 616 type: "dropdown",
563 id: "strokeMaterial", 617 id: "strokeMaterial",
564 prop: "strokeMaterial", 618 prop: "strokeMaterial",
@@ -568,6 +622,13 @@ exports.PiData = Montage.create( Montage, {
568 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 622 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
569 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, 623 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
570 divider : true 624 divider : true
625 },
626 {
627 type: "button",
628 id: "editStrokeMaterial",
629 prop: "editStrokeMaterial",
630 label: "Edit",
631 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
571 } 632 }
572 ], 633 ],
573 [ 634 [
@@ -580,12 +641,158 @@ exports.PiData = Montage.create( Montage, {
580 dataField: "_name", 641 dataField: "_name",
581 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 642 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
582 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } 643 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
644 },
645 {
646 type: "button",
647 id: "editFillMaterial",
648 prop: "editFillMaterial",
649 label: "Edit",
650 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
583 } 651 }
584 ] 652 ]
585 ] 653 ]
586 } 654 }
587 ] 655 ]
588 } 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 }