25 |
29 |
32 |
├── my.conf.js ├── font ├── SourceSansPro-It.otf ├── SourceCodePro-Black.otf ├── SourceCodePro-Bold.otf ├── SourceCodePro-Light.otf ├── SourceSansPro-Black.otf ├── SourceSansPro-Bold.otf ├── SourceSansPro-Light.otf ├── SourceCodePro-Regular.otf ├── SourceCodePro-Semibold.otf ├── SourceSansPro-BlackIt.otf ├── SourceSansPro-BoldIt.otf ├── SourceSansPro-LightIt.otf ├── SourceSansPro-Regular.otf ├── SourceSansPro-Semibold.otf ├── SourceCodePro-ExtraLight.otf ├── SourceSansPro-ExtraLight.otf ├── SourceSansPro-SemiboldIt.otf ├── SourceSansPro-ExtraLightIt.otf └── LICENSE.txt ├── .travis.yml ├── docs └── draw2script_screenshot_ellipse_pixi_tiny.png ├── spec ├── support │ └── jasmine.json ├── index.html ├── pixitiny.spec.js ├── jasmine │ ├── boot.js │ ├── console.js │ ├── jasmine-html.js │ └── jasmine.css ├── createjs.spec.js └── pixigraphics.spec.js ├── css ├── theme.css └── style.css ├── CHANGELOG.md ├── js ├── eventHandler.js ├── parser │ ├── pixitiny.js │ ├── pixigraphics.js │ └── createjs.js └── themeManager.js ├── CSXS └── manifest.xml ├── index.html ├── README.md ├── host └── main.jsx ├── LICENSE └── lib └── CSInterface.js /my.conf.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /font/SourceSansPro-It.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-It.otf -------------------------------------------------------------------------------- /font/SourceCodePro-Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceCodePro-Black.otf -------------------------------------------------------------------------------- /font/SourceCodePro-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceCodePro-Bold.otf -------------------------------------------------------------------------------- /font/SourceCodePro-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceCodePro-Light.otf -------------------------------------------------------------------------------- /font/SourceSansPro-Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-Black.otf -------------------------------------------------------------------------------- /font/SourceSansPro-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-Bold.otf -------------------------------------------------------------------------------- /font/SourceSansPro-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-Light.otf -------------------------------------------------------------------------------- /font/SourceCodePro-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceCodePro-Regular.otf -------------------------------------------------------------------------------- /font/SourceCodePro-Semibold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceCodePro-Semibold.otf -------------------------------------------------------------------------------- /font/SourceSansPro-BlackIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-BlackIt.otf -------------------------------------------------------------------------------- /font/SourceSansPro-BoldIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-BoldIt.otf -------------------------------------------------------------------------------- /font/SourceSansPro-LightIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-LightIt.otf -------------------------------------------------------------------------------- /font/SourceSansPro-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-Regular.otf -------------------------------------------------------------------------------- /font/SourceSansPro-Semibold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-Semibold.otf -------------------------------------------------------------------------------- /font/SourceCodePro-ExtraLight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceCodePro-ExtraLight.otf -------------------------------------------------------------------------------- /font/SourceSansPro-ExtraLight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-ExtraLight.otf -------------------------------------------------------------------------------- /font/SourceSansPro-SemiboldIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-SemiboldIt.otf -------------------------------------------------------------------------------- /font/SourceSansPro-ExtraLightIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/font/SourceSansPro-ExtraLightIt.otf -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_s 2 | python: "0.12" 3 | install: 4 | - npm install -g jasmine 5 | script: 6 | - jasmine 7 | after_success: 8 | coveralls 9 | -------------------------------------------------------------------------------- /docs/draw2script_screenshot_ellipse_pixi_tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreyRook/Draw2Script/HEAD/docs/draw2script_screenshot_ellipse_pixi_tiny.png -------------------------------------------------------------------------------- /spec/support/jasmine.json: -------------------------------------------------------------------------------- 1 | { 2 | "spec_dir": "spec", 3 | "spec_files": [ 4 | "**/*[sS]pec.js" 5 | ], 6 | "helpers": [ 7 | "helpers/**/*.js", 8 | "../host/draw2script.jsx" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /css/theme.css: -------------------------------------------------------------------------------- 1 | body{ 2 | position: absolute; 3 | top: 0; 4 | right: 0; 5 | left: 0; 6 | bottom: 0; 7 | } 8 | 9 | #content { 10 | padding: 5px; 11 | } 12 | 13 | textarea { 14 | width: 100%; 15 | height: 100%; 16 | } -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | width: 100%; 3 | height: 100%; 4 | background-color: #333; 5 | padding: 5px; 6 | } 7 | 8 | textarea { 9 | width: 96%; 10 | } 11 | 12 | input[type=text] { 13 | height: 16px; 14 | } 15 | 16 | p { 17 | font-family: Helvetica, Arial, "Lucida Grande", sans-serif; 18 | color: #eee; 19 | font-size: 14px; 20 | margin-right: 30px; 21 | } 22 | 23 | #content { 24 | height: 100%; 25 | width: 100%; 26 | padding: 3px; 27 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # ROADMAP 2 | * CompoundPath Support 3 | 4 | # History 5 | * 2015-07-13: Alpha release 0.0.1 6 | * 2015-07-15: Alpha release 0.0.2 7 | * Support for [PIXI_tiny](https://github.com/GreyRook/PIXI_tiny) 8 | * RGB Color Support 9 | * 2015-07-17: Alpha release 0.0.3 10 | * Support for JSON 11 | * Better UI 12 | * Error handling for "nothing selected" and "overflow" 13 | * 2015-07-20: Beta release 0.1.07 14 | * Support for PIXI_graphics 15 | * Unit tests 16 | 17 | -------------------------------------------------------------------------------- /spec/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |requestOpenExtension("HLP", "");
616 | *
617 | */
618 | CSInterface.prototype.requestOpenExtension = function(extensionId, params)
619 | {
620 | window.__adobe_cep__.requestOpenExtension(extensionId, params);
621 | };
622 |
623 | /**
624 | * Retrieves the list of extensions currently loaded in the current host application.
625 | * The extension list is initialized once, and remains the same during the lifetime
626 | * of the CEP session.
627 | *
628 | * @param extensionIds Optional, an array of unique identifiers for extensions of interest.
629 | * If omitted, retrieves data for all extensions.
630 | *
631 | * @return Zero or more \c #Extension objects.
632 | */
633 | CSInterface.prototype.getExtensions = function(extensionIds)
634 | {
635 | var extensionIdsStr = JSON.stringify(extensionIds);
636 | var extensionsStr = window.__adobe_cep__.getExtensions(extensionIdsStr);
637 |
638 | var extensions = JSON.parse(extensionsStr);
639 | return extensions;
640 | };
641 |
642 | /**
643 | * Retrieves network-related preferences.
644 | *
645 | * @return A JavaScript object containing network preferences.
646 | */
647 | CSInterface.prototype.getNetworkPreferences = function()
648 | {
649 | var result = window.__adobe_cep__.getNetworkPreferences();
650 | var networkPre = JSON.parse(result);
651 |
652 | return networkPre;
653 | };
654 |
655 | /**
656 | * Initializes the resource bundle for this extension with property values
657 | * for the current application and locale.
658 | * To support multiple locales, you must define a property file for each locale,
659 | * containing keyed display-string values for that locale.
660 | * See localization documentation for Extension Builder and related products.
661 | *
662 | * Keys can be in the
663 | * form key.value="localized string", for use in HTML text elements.
664 | * For example, in this input element, the localized \c key.value string is displayed
665 | * instead of the empty \c value string:
666 | *
667 | *
668 | *
669 | * @return An object containing the resource bundle information.
670 | */
671 | CSInterface.prototype.initResourceBundle = function()
672 | {
673 | var resourceBundle = JSON.parse(window.__adobe_cep__.initResourceBundle());
674 | var resElms = document.querySelectorAll('[data-locale]');
675 | for (var n = 0; n < resElms.length; n++)
676 | {
677 | var resEl = resElms[n];
678 | // Get the resource key from the element.
679 | var resKey = resEl.getAttribute('data-locale');
680 | if (resKey)
681 | {
682 | // Get all the resources that start with the key.
683 | for (var key in resourceBundle)
684 | {
685 | if (key.indexOf(resKey) == 0)
686 | {
687 | var resValue = resourceBundle[key];
688 | if (key.length == resKey.length)
689 | {
690 | resEl.innerHTML = resValue;
691 | }
692 | else if ('.' == key.charAt(resKey.length))
693 | {
694 | var attrKey = key.substring(resKey.length + 1);
695 | resEl[attrKey] = resValue;
696 | }
697 | }
698 | }
699 | }
700 | }
701 | return resourceBundle;
702 | };
703 |
704 | /**
705 | * Writes installation information to a file.
706 | *
707 | * @return The file path.
708 | */
709 | CSInterface.prototype.dumpInstallationInfo = function()
710 | {
711 | return window.__adobe_cep__.dumpInstallationInfo();
712 | };
713 |
714 | /**
715 | * Retrieves version information for the current Operating System,
716 | * See http://www.useragentstring.com/pages/Chrome/ for Chrome \c navigator.userAgent values.
717 | *
718 | * @return A string containing the OS version, or "unknown Operation System".
719 | * If user customizes the User Agent by setting CEF command parameter "--user-agent", only
720 | * "Mac OS X" or "Windows" will be returned.
721 | */
722 | CSInterface.prototype.getOSInformation = function()
723 | {
724 | var userAgent = navigator.userAgent;
725 |
726 | if ((navigator.platform == "Win32") || (navigator.platform == "Windows"))
727 | {
728 | var winVersion = "Windows";
729 | var winBit = "";
730 | if (userAgent.indexOf("Windows") > -1)
731 | {
732 | if (userAgent.indexOf("Windows NT 5.0") > -1)
733 | {
734 | winVersion = "Windows 2000 ";
735 | }
736 | else if (userAgent.indexOf("Windows NT 5.1") > -1)
737 | {
738 | winVersion = "Windows XP ";
739 | }
740 | else if (userAgent.indexOf("Windows NT 5.2") > -1)
741 | {
742 | winVersion = "Windows Server 2003 ";
743 | }
744 | else if (userAgent.indexOf("Windows NT 6.0") > -1)
745 | {
746 | winVersion = "Windows Vista ";
747 | }
748 | else if (userAgent.indexOf("Windows NT 6.1") > -1)
749 | {
750 | winVersion = "Windows 7 ";
751 | }
752 | else if (userAgent.indexOf("Windows NT 6.2") > -1)
753 | {
754 | winVersion = "Windows 8 ";
755 | }
756 |
757 | if (userAgent.indexOf("WOW64") > -1)
758 | {
759 | winBit = "64-bit";
760 | }
761 | else
762 | {
763 | winBit = "32-bit";
764 | }
765 | }
766 |
767 | return winVersion + winBit;
768 | }
769 | else if ((navigator.platform == "MacIntel") || (navigator.platform == "Macintosh"))
770 | {
771 | var result = "Mac OS X";
772 | var agentStr = new String();
773 | agentStr = userAgent;
774 | if (agentStr.indexOf("Mac OS X") > -1)
775 | {
776 | var verLength = agentStr.indexOf(")") - agentStr.indexOf("Mac OS X");
777 | var verStr = agentStr.substr(agentStr.indexOf("Mac OS X"), verLength);
778 | result = verStr.replace("_", ".");
779 | result = result.replace("_", ".");
780 | }
781 |
782 | return result;
783 | }
784 |
785 | return "Unknown Operation System";
786 | };
787 |
788 | /**
789 | * Opens a page in the default system browser.
790 | *
791 | * Since 4.2.0
792 | *
793 | * @param url The URL of the page/file to open, or the email address.
794 | * Must use HTTP/HTTPS/file/mailto protocol. For example:
795 | * "http://www.adobe.com"
796 | * "https://github.com"
797 | * "file:///C:/log.txt"
798 | * "mailto:test@adobe.com"
799 | *
800 | * @return One of these error codes:\n
801 | *